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-0.0.14.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: rtdce-0.0.14.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for rtdce-0.0.14.tar.gz
Algorithm Hash digest
SHA256 ea3fd361d546eeecd19a246d5e6f5579acc9dd0310232dbce5caa4f92af4684e
MD5 bee76b0c06d1093f6a0e5142ca7c3a37
BLAKE2b-256 354cf0950984b2b6133b23961a9bd2718f992999e515a327922a91616871382e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for rtdce-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 609c76fc04c8cd11674fa8b5167672c90d31eee52858ddf0560e8deb4dcfd6fc
MD5 7ddd9d5b237c3877161174649c7236dd
BLAKE2b-256 87b22109680a291d40f8e81fbb8a553f191dbb2dbc0cd388231a43d0a9c72246

See more details on using hashes here.

Supported by

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