district42 experimental types

district42 experimental types
Installation
pip3 install district42-exp-types
Usage
numeric
from d42 import schema
from d42.declaration import register_type
from district42_exp_types.numeric import NumericSchema
register_type("numeric", NumericSchema)
print(schema.numeric)
uuid
from d42 import schema
from d42.declaration import register_type
from district42_exp_types.uuid import UUIDSchema
register_type("uuid", UUIDSchema)
print(schema.uuid)
uuid_str
from d42 import schema
from d42.declaration import register_type
from district42_exp_types.uuid_str import UUIDStrSchema
register_type("uuid_str", UUIDStrSchema)
print(schema.uuid_str)
sdict
from d42 import schema
from d42.declaration import register_type
from district42_exp_types.sdict import SDictSchema
register_type("sdict", SDictSchema)
print(schema.sdict)
unordered
from d42 import schema
from d42.declaration import register_type
from district42_exp_types.unordered import UnorderedSchema
register_type("unordered", UnorderedSchema)
print(schema.unordered)