Ciri: API¶
Schemas¶
Schema Fields¶
-
class
ciri.fields.
AbstractBaseField
[source]¶ Bases:
abc.ABCMeta
-
ciri.fields.
Bool
¶ alias of
ciri.fields.Boolean
-
class
ciri.fields.
Boolean
(*args, **kwargs)[source]¶ Bases:
ciri.fields.Field
-
deserialize
(value)[source]¶ Deserialization method
Parameters: value – value to be deserialized as a basic python type Raises: SerializationError, NotImplementedError
-
-
class
ciri.fields.
Date
(*args, **kwargs)[source]¶ Bases:
ciri.fields.Field
-
deserialize
(value)[source]¶ Deserialization method
Parameters: value – value to be deserialized as a basic python type Raises: SerializationError, NotImplementedError
-
-
class
ciri.fields.
DateTime
(*args, **kwargs)[source]¶ Bases:
ciri.fields.Field
-
deserialize
(value)[source]¶ Deserialization method
Parameters: value – value to be deserialized as a basic python type Raises: SerializationError, NotImplementedError
-
-
class
ciri.fields.
Dict
(*args, **kwargs)[source]¶ Bases:
ciri.fields.Field
-
deserialize
(value)[source]¶ Deserialization method
Parameters: value – value to be deserialized as a basic python type Raises: SerializationError, NotImplementedError
-
-
class
ciri.fields.
Field
(*args, **kwargs)[source]¶ Bases:
ciri.abstract.AbstractField
Base Field Class that all other Fields extend from
-
deserialize
(value)[source]¶ Deserialization method
Parameters: value – value to be deserialized as a basic python type Raises: SerializationError, NotImplementedError
-
-
class
ciri.fields.
Float
(*args, **kwargs)[source]¶ Bases:
ciri.fields.Field
-
deserialize
(value)[source]¶ Deserialization method
Parameters: value – value to be deserialized as a basic python type Raises: SerializationError, NotImplementedError
-
-
ciri.fields.
Int
¶ alias of
ciri.fields.Integer
-
class
ciri.fields.
Integer
(*args, **kwargs)[source]¶ Bases:
ciri.fields.Field
-
deserialize
(value)[source]¶ Deserialization method
Parameters: value – value to be deserialized as a basic python type Raises: SerializationError, NotImplementedError
-
-
class
ciri.fields.
List
(*args, **kwargs)[source]¶ Bases:
ciri.fields.Field
-
deserialize
(value)[source]¶ Deserialization method
Parameters: value – value to be deserialized as a basic python type Raises: SerializationError, NotImplementedError
-
-
class
ciri.fields.
Schema
(*args, **kwargs)[source]¶ Bases:
ciri.fields.Field
-
deserialize
(value)[source]¶ Deserialization method
Parameters: value – value to be deserialized as a basic python type Raises: SerializationError, NotImplementedError
-
-
ciri.fields.
Str
¶ alias of
ciri.fields.String
-
class
ciri.fields.
String
(*args, **kwargs)[source]¶ Bases:
ciri.fields.Field
-
deserialize
(value)[source]¶ Deserialization method
Parameters: value – value to be deserialized as a basic python type Raises: SerializationError, NotImplementedError
-
-
class
ciri.fields.
UUID
(*args, **kwargs)[source]¶ Bases:
ciri.fields.Field
-
deserialize
(value)[source]¶ Deserialization method
Parameters: value – value to be deserialized as a basic python type Raises: SerializationError, NotImplementedError
-