disco.types.base

Constants

{'type': 'assign', 'targets': ['DATETIME_FORMATS'], 'value': {'elts': ['%Y-%m-%dT%H:%M:%S.%f', '%Y-%m-%dT%H:%M:%S'], 'type': 'list'}}

UNSET = Unset()

{'type': 'assign', 'targets': ['Model'], 'value': 'None'}

{'type': 'assign', 'targets': ['SlottedModel'], 'value': 'None'}

Classes

Unset

Functions

nonzero(self)

bool(self)

ConversionError

Inherits From Exception

Functions

init(self, field, raw, e)

Field

Functions

init(self, value_type, alias, default=UNSET, create=True, ignore_dump=None, cast=None,**kwargs)

name(self)

name(self, name)

has_default(self)

try_convert(self, raw, client,**kwargs)

type_to_deserializer(typ)

serialize(value, inst)

call(self, raw, client,**kwargs)

DictField

Inherits From Field

Functions

init(self, key_type, value_type,**kwargs)

serialize(value, inst)

try_convert(self, raw, client,**kwargs)

ListField

Inherits From Field

Functions

serialize(value, inst)

try_convert(self, raw, client,**kwargs)

AutoDictField

Inherits From Field

Functions

init(self, value_type, key,**kwargs)

try_convert(self, raw, client,**kwargs)

ModelMeta

Inherits From type

Functions

new(mcs, name, parents, dct)

Model

Inherits From {'type': 'attribute', 'name': 'with_metaclass', 'value': 'six'}

Functions

init(self,*args,**kwargs)

after(self, delay)

validate(self)

_fields(self)

load(self,*args,**kwargs)

load_into(cls, inst, obj, consume)

inplace_update(self, other, ignored)

to_dict(self, ignore)

create(cls, client, data,**kwargs)

create_map(cls, client, data,*args,**kwargs)

create_hash(cls, client, key, data,**kwargs)

attach(cls, it, data)

SlottedModel

Inherits From Model

Functions

get_item_by_path(obj, path)

cached_property(method)

strict_cached_property(*args</code>)

_make(typ, data, client)

snowflake(data)

enum(typ)

datetime(data)

text(obj)

with_equality(field)

with_hash(field)

_get_cached_property(name, func)

results matching ""

    No results matching ""