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.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea9096cbd4f1bad5f9b3581648ea0064f4b22dcd1a47088e373c153027db2fca |
|
MD5 | 6748e1f50523e1699fb99e9690a2d901 |
|
BLAKE2b-256 | 4fb3b5fde62694f5f5e7789cd5f53e342052d5661c8c000467b50917d6a324a9 |