Skip to main content

A simple Python project for enforcing runtime validation of function input and output data type.

Project description

Enforce is a simple Python 3.5 or higher application for enforcing a runtime type checking based on type hints.

Installation:

pip install enforce

Usage Examples:

import enforce

@enforce.runtime_validation
def foo(text: str) -> None:
    print(text)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for enforce, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size enforce-0.1.0.zip (4.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page