Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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 hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page