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.9+.
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 Distributions
Built Distribution
File details
Details for the file typedpy-2.28.3-py3-none-any.whl
.
File metadata
- Download URL: typedpy-2.28.3-py3-none-any.whl
- Upload date:
- Size: 97.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7d3b69b4f6b06681eca8929ddf6da28e2d9a129ff15bec812f0113dd4924928 |
|
MD5 | 09b61df08af29ec2cf835e36d0730f9a |
|
BLAKE2b-256 | 1c04fa47af27762899de2a727f8c079fad4079496a6b5aa1b3e8240983df977d |