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.28-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bd8584a72189616dfb1b431032a361b1779b8bf8751023923d9d6b59db389a8 |
|
MD5 | 5417a2df56a0d45c9a1cf0fbc6de30f2 |
|
BLAKE2b-256 | b3fd7ed4e72f0924e8e8051829e1da6c781e1991d1b1647949e50913d96de493 |