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))

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
contrat-0.3.0.tar.gz 9.4 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

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