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


pip install codeviking.contracts


See the project home page at 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.

Files for CodeViking.contracts, version 0.17.0
Filename, size File type Python version Upload date Hashes
Filename, size CodeViking.contracts-0.17.0.tar.gz (15.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring 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