Skip to main content

Build Status PyPI PyPI - Python Version PyPI - Status Code style: black

contrat

Simple python module to keep function signature introspection compatibility between python versions

Install

pip install contrat

Usage

The following example work for python 2.7 and python 3.0+:

#!/usr/bin/python
from contrat import getargspec

def sample(arg1, arg2=True, arg3=1):
    pass


print(str(getargspec(sample)))
# will display
# ArgSpec(args=['arg1', 'arg2', 'arg3'], varargs=None, keywords=None, defaults=(True, 1))

Metadata

Release files for contrat 0.3.0

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

Source distribution (sdist)

Source distribution for contrat 0.3.0
File Size Uploaded Provenance Actions
contrat-0.3.0.tar.gz 9.4 kB Without provenance Details for contrat-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for contrat 0.3.0
File Interpreter ABI Platform Actions
contrat-0.3.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for contrat-0.3.0-py2.py3-none-any.whl

Total release size: 15.9 kB

Release files / contrat-0.3.0.tar.gz

Download URL contrat-0.3.0.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
94ddab33aaf432691a53c48b0bb9270cb02aab836f1802698fce63842c29b602
BLAKE2b-256 checksum
How to use checksums
f9a39ce09bc79f14717b1584072f87d74048574b6f79b942165adb5ec2b58ae3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.15

Release files / contrat-0.3.0-py2.py3-none-any.whl

Download URL contrat-0.3.0-py2.py3-none-any.whl
Size 6.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
396fdb5d8d021315817603b12fd6705058a3c3eae3aa10d790067de8dbe7bf52
BLAKE2b-256 checksum
How to use checksums
774916560792ded54452e59ba29da4a452080bd365203cc187d324ec56a687be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.15

Security for contrat 0.3.0

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.

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