A Python library to enforce static typing at runtime
Project description
Rutyva - Runtime Type Validation for Python
Rutyva is a python library that enforces static typing at runtime using the type annotations of dataclasses.
It also allows dict parsing into classes, even with nested class objects (compositions).
Installation
Python version 3.9 or higher is required.
$ pip install rutyva
How to
At the moment, the classes need to be inherited from the BaseModel class, and need to be dataclasses, to have its type annotations enforced.
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 Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rutyva-0.0.9.tar.gz.
File metadata
- Download URL: rutyva-0.0.9.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd1531b2d70404b63c3ee84923c7e41fc12fe13981c74d21a207f90dcd298556
|
|
| MD5 |
c3a45dedcab1085937af4eed35092e29
|
|
| BLAKE2b-256 |
f2485ead004ccf5917a4a788d3015844b021045051de22415488744fe51a065d
|
File details
Details for the file rutyva-0.0.9-py3-none-any.whl.
File metadata
- Download URL: rutyva-0.0.9-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e13b12e8dc7d0ee86c302913d759b97fed296f9792c1438681db5b66cb7df14e
|
|
| MD5 |
84605e0e5118dbd4a9cc0cfa860d4fb8
|
|
| BLAKE2b-256 |
b83eaea62089ed81ff8d424269df9f55f1cff2e432f370c947df4d4fd1ecfa0a
|