Skip to main content

Function and method call contracts

Project description

Provides easy-to-use contract enforcement for Python 3

This software is currently in beta testing. Please file a bug report if you find anything that does not work is described in the documentation.

Provides the following types of contracts:

  • function signature checking (automatically extracted from function annotations)

  • preconditions

  • postconditions

  • invariants

Installation

pip install codeviking.contracts

Documentation

http://codeviking-contracts.readthedocs.org/

Support

See the project home page at https://bitbucket.org/codeviking/python-codeviking.contracts/ to file a bug report or request a feature.

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

CodeViking.contracts-0.17.0.tar.gz (15.6 kB view details)

Uploaded Source

File details

Details for the file CodeViking.contracts-0.17.0.tar.gz.

File metadata

File hashes

Hashes for CodeViking.contracts-0.17.0.tar.gz
Algorithm Hash digest
SHA256 5302e61958cdff6f7b34c1cba96574c56bc514bd9b642d15a9bba71a2f08ded8
MD5 70cf09f647b2ccef524a4e738819174b
BLAKE2b-256 32d2a2b70df673dc1132e359f13eea00cd1d36c17cf7b6a6c7715a8b4c533045

See more details on using hashes here.

Provenance

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