Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rutyva-0.0.3.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rutyva-0.0.3-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file rutyva-0.0.3.tar.gz.

File metadata

  • Download URL: rutyva-0.0.3.tar.gz
  • Upload date:
  • Size: 3.7 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

Hashes for rutyva-0.0.3.tar.gz
Algorithm Hash digest
SHA256 0d4df34d9abd9b108c2bfbf504253db02157c739fc9e8a7cb83d5eaed110cd36
MD5 e58849cf9e43c52ff876d2737ee14957
BLAKE2b-256 654f54f22b9f1eb2991f30ca27a14793afda5d3c4d78bec8d93cfebb80e392b1

See more details on using hashes here.

File details

Details for the file rutyva-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: rutyva-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.2 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

Hashes for rutyva-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7e4673001a626dff22db49915518583af7f10c65e98a2736c7ff9371c35270d7
MD5 319f8261b27ed1e941eed4630a706615
BLAKE2b-256 fd6e25d71fce2c2e47f37f35c503cb5d3f39584fb51c9487ada9ad0c02cc38a4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page