Skip to main content

Type dispatch and validation for run-time

Project description

runtype is composed of several utility modules:

  1. dispatch - Provides a decorator for fast multi-dispatch at run-time for functions, with sophisticated ambiguity resolution.

  2. dataclass - Improves on Python’s existing dataclass, by verifying the type-correctness of its attributes at run-time. Also provides a few useful methods for dataclasses.

  3. isa - Provides alternative functions to isinstance and issubclass, that undestand Python’s typing module.

Runtype’s integration with the typing module allows to use type signatures such as List[int], Optional[str], or Union[int, str, Callable].

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

runtype-0.1.3.tar.gz (8.4 kB view details)

Uploaded Source

File details

Details for the file runtype-0.1.3.tar.gz.

File metadata

  • Download URL: runtype-0.1.3.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.8

File hashes

Hashes for runtype-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0fb55c133db7a0d55f14e0493635a6a1c984365e62bff3926bbe371082cfc78a
MD5 03b7ff2b273b53ce73c159911f487ca9
BLAKE2b-256 ad6ad44158a103bf26cee17169f3401dd5a0e46760790f11309c062d0fdfc3d0

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