Skip to main content

A runtime type enforcer for dataclasses.

Project description

Runtime Dataclass Enforcer

from rtdce import enforce 

from dataclasses import dataclass
from typing import Dict

@dataclass
class Test:
    hello: Dict[str, int]

t = Test(hello={'world': 123})

enforce(t)

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

rtdce-1.0.1.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

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

rtdce-1.0.1-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file rtdce-1.0.1.tar.gz.

File metadata

  • Download URL: rtdce-1.0.1.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for rtdce-1.0.1.tar.gz
Algorithm Hash digest
SHA256 beb442c46fb08fa7c5bc07750b4b1c738247c1a3ca331bd8ff7afbc930a192a6
MD5 eb9afffe0f19f465833ce059359dfa83
BLAKE2b-256 1082e81e9c86c4aaa402b11964762caa375904c979f2a343e29a5cd72780c7c4

See more details on using hashes here.

File details

Details for the file rtdce-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: rtdce-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for rtdce-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 43d00dcee73430ad682693b24bf2f3ca1ec7acbf68b8d83b076cb43cb0c811ae
MD5 fa2267fde2eebe3bd655dc85edfe959f
BLAKE2b-256 c22139b963e3316efa4581ce3a273a44d9d05892cbf2cd622296a2e3fefae205

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