Metadata-Version: 2.4
Name: runtype
Version: 0.5.3
Summary: Type dispatch and validation for run-time
Home-page: https://github.com/erezsh/runtype
Download-URL: https://github.com/erezsh/runtype/tarball/master
Author: Erez Shinan
Author-email: erezshin@gmail.com
License: MIT
Keywords: types typing dispatch dataclass runtime
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Utilities
Classifier: License :: OSI Approved :: MIT License
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: download-url
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: summary


Runtype is a collection of run-time type utilities for Python.

It is:

🏃 Fast! (benchmarks coming soon)

🧠 Smart! Supports typing, constraints, auto-casting, and much more.

⚙️ Very customizable. You can use dataclass and dispatch with your own typesystem!

Modules
⭐ validation - Provides a smarter alternative to isinstance and issubclass

    Supports typing module, and type constraints.

⭐ dataclass - Adds run-time type validation to the built-in dataclass.

    Improves dataclass ergonomics.
    Supports automatic value casting, Pydantic-style. (Optional, off by default)
    Supports types with constraints. (e.g. String(max_length=10))

⭐ dispatch - Provides fast multiple-dispatch for functions and methods, via a decorator.

    Inspired by Julia.

⭐ base_types - Provides a set of classes to implement your own type-system.

    Used by runtype itself, to emulate the Python type-system.

