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.6.tar.gz (4.2 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.6-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rutyva-0.0.6.tar.gz
  • Upload date:
  • Size: 4.2 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.6.tar.gz
Algorithm Hash digest
SHA256 c91c691e9b7c1f3088aa168c7d8f3821b9882adf805c4f6de8e2006894d7d89e
MD5 51a70feaced5a3a27274abd41926943a
BLAKE2b-256 1de62302a2e44aa19644cd9e103dd35455871a62434db845bf9ecb5673a1108e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rutyva-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 5.4 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 830464ead788903f3bb15f6a641ff56c1abe971e8a4b0d4e6f8b85f78ea3143e
MD5 6e9fe7e9d1c377ab820b52d0296de474
BLAKE2b-256 85d200f7399e97908671574b0eb7ed4668fef681fe37946584cc7aba2d5d73ad

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