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 custom 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.15.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70b94ab482c28b5f18b1503e4d9c10f2277967385b76a1b5a5b60b11469e8afe |
|
MD5 | 7d1622c013c3c783a7bf9cb069d15bdc |
|
BLAKE2b-256 | 908c68b94c8b62be032a7e0a4272c52d0edb79e776d66e886fc5a2d68359f8b0 |