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
-
Includes Python stubs generator that provides static type checking within the IDE
-
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.16.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fbd9bbce9e5d63110d18b3dd7be8aa0986840dc7d93ad8deff93dc0a8bc8e1b |
|
MD5 | a1f2da1ca13fbf6a071a285963c6ab5d |
|
BLAKE2b-256 | 0e38e66fc9f72cd5787cac9247ef102c97217c9c3f9eefdfc526db9da6a9d365 |