Type-safe Python
Project description
Typedpy - Strict Type System for Python
typedpy
is a library for type-safe, strict, Python structures. It supports Python 3.6+.
Features
-
Full featured, sophisticated, class-based type system
-
Supports JSON schema draft4 features, including mapping schema-to-code and code-to-schema
-
Serialization, deserialization between JSON-like dict and typedpy objects, including costumes mapping. Support for pickling.
-
Easily extensible. Wrapper of any class as a Field
-
Embedded structures within structures/fields and fields within fields
-
Supports the common collections
-
Clean Java-generics-like definitions, but more flexible. e.g.: Set[AnyOf[Integer(minimum=10), Array]], Map[String(maxLength=8), String]
-
No dependencies on third-party libs
There are many examples under "tests/".
Documentation
Detailed documentation is here
Installation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for typedpy-2.0.0.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a41042a95268632700ec2017f7d8960f5fbd6a9e896bbd6c9c53ecd8fdf8fbb |
|
MD5 | 12b58ce3e16fb6ef177d10345f0c5234 |
|
BLAKE2b-256 | 568205ce694712d7b2c0824f487b3dfbc515dd26e6931c1b3c022d260d4d22ee |