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
Release files for typedpy 2.29.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| typedpy-2.29.0.tar.gz | 147.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| typedpy-2.29.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 246.8 kB
Release files / typedpy-2.29.0.tar.gz
| Download URL | typedpy-2.29.0.tar.gz |
|---|---|
| Size | 147.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4679fd7ca0878aae604eba201ffd74059da18a542f9ce46d1af8f01c1d67f13c
|
|
BLAKE2b-256 checksum How to use checksums |
06756917c91dd8485931f48625d541ad1292085d059cd04a5ccc644fb456676a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.10
|
Release files / typedpy-2.29.0-py3-none-any.whl
| Download URL | typedpy-2.29.0-py3-none-any.whl |
|---|---|
| Size | 99.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2694c9d33f3f0a37ec2c7298f69d95d5aff049feba26de7645b80292ccce84e5
|
|
BLAKE2b-256 checksum How to use checksums |
96a75ea396c647e07ec37d7591e7b61d90e5755d9ee8b2cbdffdf2d4e83111bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.10
|