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.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.30.0.tar.gz | 154.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| typedpy-2.30.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 258.5 kB
Release files / typedpy-2.30.0.tar.gz
| Download URL | typedpy-2.30.0.tar.gz |
|---|---|
| Size | 154.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba17d105a984b877beff7ed42bface8ca8fdda49c532f228936968e5ac46b594
|
|
BLAKE2b-256 checksum How to use checksums |
bb1335cff1ad1e993cf01015ebd5151dddde4a3bf8783b38160f7d226421e58c
|
| 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.0-py3-none-any.whl
| Download URL | typedpy-2.30.0-py3-none-any.whl |
|---|---|
| Size | 103.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2830f2cfb789743d13a694a5fc6abe524c548a76ea1c8676e2f191f118cf7d97
|
|
BLAKE2b-256 checksum How to use checksums |
299b3f68b125334325646b6cadeb6ac204d9919a9bf2418a705bc2f19dd8d142
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|