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.tar.gz (6.5 kB view hashes)

Uploaded Source

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