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.1.0.tar.gz (4.8 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.1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rutyva-0.1.0.tar.gz
  • Upload date:
  • Size: 4.8 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.1.0.tar.gz
Algorithm Hash digest
SHA256 bbf93aaba26ab0f45213aeaa008e24cb51ad0493780361e16fa8bc232291c55d
MD5 67805426206cd1eaab82fe76d4bef260
BLAKE2b-256 c37d487196e6ae9d7309fdaa000c7f9580f14d3581d1efd4414c6862840ccc5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rutyva-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a7867d5e35e67d78f14121310932fae6b0e218b5ce507959a213031873ca687
MD5 17364a33274e051c709d6a4fe8df39cc
BLAKE2b-256 9b3d1281292d044c8eff855fe1ddfce06e6c118703a0ddddfab101389e475dd9

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