indivo package

Subpackages

Submodules

indivo.validators module

Validators useful for attaching to data models.

class indivo.validators.ExactValueValidator(valid_value, nullable=False)

Bases: indivo.validators.ValueInSetValidator

Validates that a value is exactly equal to a certain value.

The optional ‘nullable’ flag determines whether or not the value may also be empty.

class indivo.validators.NonNullValidator

Bases: object

Validates that a value is not null.

A ‘null’ value is anything that Django would store as NULL in a database: None, "", [], (), or {}. Note that other python objects that evaluate to false (0, False) are not actually null values, as they represent data.

This validator is useful for validating that strings are non-empty, for example.

class indivo.validators.ValueInSetValidator(valid_values, nullable=False)

Bases: object

Validates that a value is within a set of possible values.

The optional ‘nullable’ flag determines whether or not the value may also be empty.

Module contents

The Indivo Application.

A Django app which implements a Personally-Controlled Health Record platform, exposing an oAuth authenticated, RESTful API for substitutable medical apps.

indivo.check_safety()

Ensure that the Authorization Module is in place before serving API calls.