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
Metadata
Release files for typedpy 2.30.1
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.30.1.tar.gz | 155.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| typedpy-2.30.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 259.5 kB
Release files / typedpy-2.30.1.tar.gz
| Download URL | typedpy-2.30.1.tar.gz |
|---|---|
| Size | 155.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f827eb057da06092c8ae91e250120994bbd4cab50f5c0f1cd59fb68e6bca00da
|
|
BLAKE2b-256 checksum How to use checksums |
068b9cd8eac2d7c919aa76a5fbfe6612b3189e876525283bde71f04b6c2bd6fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|
Release files / typedpy-2.30.1-py3-none-any.whl
| Download URL | typedpy-2.30.1-py3-none-any.whl |
|---|---|
| Size | 104.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dfaa039dd617835fa85cbf34fb6e42383b9d0e906bd1c57f230bda9380b8a826
|
|
BLAKE2b-256 checksum How to use checksums |
acfa0fde8a8aa9ef8cf8125d967a369c2644a9a4a094770cfd508ef82be6b166
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|