Skip to main content

contrapy

Contracts for Python 3

https://snyk.io/test/github/digitalmensch/contrapy/badge.svg https://travis-ci.org/digitalmensch/contrapy.svg?branch=master https://coveralls.io/repos/github/digitalmensch/contrapy/badge.svg?branch=master https://img.shields.io/pypi/pyversions/contrapy.svg https://img.shields.io/pypi/l/contrapy.svg

Examples

import contrapy

@contrapy.check(lambda a, b, _return: a + b == _return, lambda a, b: a < b)
def demo(a : 22, b : float) -> float:
    return a + b

>>> demo(22, 33.0)
55.0
>>> demo(21, 33.0)
[...]
ValueError: a should be 22

Metadata

Release files for contrapy 2018.1.30

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for contrapy 2018.1.30
File Size Uploaded Provenance Actions
contrapy-2018.1.30.tar.gz 2.3 kB Without provenance Details for contrapy-2018.1.30.tar.gz

Release files / contrapy-2018.1.30.tar.gz

Download URL contrapy-2018.1.30.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2a5818c8aeeaf1c8f4a927a5dba39a85ebe1c3921adafd426c1c888c4aa586ea
BLAKE2b-256 checksum
How to use checksums
f54201dc90f81234494640044a8de03ea5e9d7fd71cbc877c36e7a5a9c511e6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for contrapy 2018.1.30

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2018.1.30 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page