Module Expr Str Import alias ImportFrom alias Import alias Import alias Import alias identifier Import alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Return NameLoad Assert Call NameLoad NameLoad AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Return NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Assign NameStore Call NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return CompareNotEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Return NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If Call AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse Raise Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body If CompareNotIn Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Return Call NameLoad NameLoad Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list
N/A N/A JSONB data utilities. N/A datetime decimal Decimal N/A copy N/A json N/A inspect python_inspect N/A iso8601 sqlalchemy inspect sqlalchemy.orm.attributes flag_modified sqlalchemy.orm.attributes set_attribute N/A jsonpointer BadJSONData N/A Exception N/A N/A You tried to save something which cannot be stick into JSON data. N/A BadStoredData N/A Exception N/A N/A We found something which is non-JSON like from the database. N/A CannotLookupData N/A Exception N/A N/A Member get failed. N/A CannotProcessISO8601 N/A Exception N/A N/A You passed in a naive datetime without explicit timezone information. N/A NullConverter N/A object N/A serialize N/A N/A self val N/A N/A N/A val N/A deserialize N/A N/A self val N/A N/A N/A val N/A N/A ISO8601DatetimeConverter N/A object N/A N/A Serialize datetime to ISO8601 unless it's None. serialize N/A N/A self val N/A N/A N/A N/A val None N/A N/A val N/A N/A isinstance val N/A datetime datetime N/A N/A Got type {} format N/A type val N/A N/A N/A val tzinfo N/A N/A N/A CannotProcessISO8601 N/A N/A datetime lacks timezone information: {}. Please use datetime.datetime.utcnow(datetime.timezone.utc) format val N/A N/A N/A val isoformat N/A deserialize N/A N/A self val N/A N/A N/A N/A val None N/A N/A val N/A N/A N/A iso8601 parse_date val N/A N/A N/A _marker N/A object JSONBProperty N/A object N/A N/A Define a Python class property which can set/get JSONB field data.

    The location of the propety is defined using JSON Pointer notation.

    - `JSON Pointer Notation specification <https://tools.ietf.org/html/rfc6901>`_

    - Underlying `jsonpointer Python module documentation <http://python-json-pointer.readthedocs.org/en/latest/index.html>`_

    In the case the field value is not yet set and you try to access it, a Falsy valud ``JSONBField.UNDEFINED` is returned.

    You must be aware of JSON data limitations when using JSONB properties

    - All numbers are floats

    - No native support for datetime storage

    :param data_field: The name of the SQLAlchemy field holding JSONB data on this model.

    :param pointer: RFC6901 pointer to the field.

    :param converter: JSON serializer/deserializer. Can be a class or instance with serialize() / deserialize() methods.

    :param graceful: If set, return this value when the member is not found instead of raising exception
     N/A UNDEFINED N/A jsonpointer _nothing __init__ N/A N/A self data_field pointer graceful converter N/A _marker NullConverter N/A N/A N/A self data_field data_field N/A N/A self pointer pointer N/A N/A N/A type converter type N/A N/A converter N/A converter N/A N/A self converter converter N/A N/A self graceful graceful N/A ensure_valid_data N/A N/A self obj N/A N/A N/A Handle freshly created objects and corrupted data more gracefully. N/A N/A obj None N/A N/A None N/A field N/A getattr obj N/A self data_field N/A N/A field None N/A N/A insp N/A inspect obj N/A N/A N/A insp persistent N/A insp detached N/A N/A N/A BadStoredData N/A N/A Field {} contained None (NULL) - make sure it is initialized with empty dictionary format N/A self data_field N/A N/A column N/A getattr N/A obj __class__ N/A self data_field N/A default N/A N/A column default arg N/A N/A setattr obj N/A self data_field default N/A default N/A field N/A is_graceful N/A N/A self N/A N/A N/A N/A N/A self graceful _marker N/A __get__ N/A N/A self obj objtype N/A None N/A N/A data N/A N/A self ensure_valid_data obj N/A N/A data None N/A N/A None N/A N/A N/A val N/A N/A jsonpointer resolve_pointer data N/A self pointer default N/A JSONBProperty UNDEFINED N/A N/A N/A N/A jsonpointer JsonPointerException N/A e N/A N/A N/A N/A self is_graceful N/A N/A val N/A self graceful N/A N/A N/A CannotLookupData N/A N/A Could not find {} on data {} format N/A self pointer obj N/A N/A N/A N/A self converter deserialize val N/A __set__ N/A N/A self obj val N/A N/A N/A data N/A N/A copy deepcopy N/A N/A self ensure_valid_data obj N/A val N/A N/A N/A self converter serialize val N/A N/A val None N/A N/A N/A N/A type val N/A str float bool int dict N/A N/A N/A BadJSONData N/A N/A Cannot update field at {} as it has unsupported type {} for JSONB data format N/A self pointer N/A type val N/A N/A N/A jsonpointer set_pointer data N/A self pointer val N/A N/A set_attribute obj N/A self data_field data N/A is_json_property N/A N/A cls obj name N/A N/A N/A Check if given attribute on an object is JSONBProperty.

        :param obj: Python object

        :return: True or False
         N/A attr N/A N/A python_inspect getattr_static obj name N/A N/A isinstance attr JSONBProperty N/A classmethod N/A _DecimalEncoder N/A N/A json JSONEncoder N/A default N/A N/A self o N/A N/A N/A N/A isinstance o Decimal N/A N/A N/A str o N/A N/A N/A N/A super _DecimalEncoder self default o N/A N/A complex_json_dumps N/A N/A d N/A N/A N/A Dump JSON so that we handle decimal and dates.

    Decimals are converted to strings.

    Dates are converted to ISO8601.
     N/A N/A N/A json dumps d cls _DecimalEncoder N/A