contrat-0.3.0
توضیحات
Python module to keep function signature introspection compatibility between python version
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX |
| نام فایل | contrat-0.3.0 |
| نام | contrat |
| نسخه کتابخانه | 0.3.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Hervé Beraud |
| ایمیل نویسنده | herveberaud.pro@gmail.com |
| آدرس صفحه اصلی | https://github.com/4383/contrat/ |
| آدرس اینترنتی | https://pypi.org/project/contrat/ |
| مجوز | MIT |
[](https://travis-ci.org/4383/contrat)



[](https://github.com/ambv/black)
# contrat
Simple python module to keep function signature introspection compatibility between
python versions
## Install
```shell
pip install contrat
```
## Usage
The following example work for python 2.7 and python 3.0+:
```python
#!/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))
```
نیازمندی
| مقدار | نام |
|---|---|
| - | tox |
نحوه نصب
نصب پکیج whl contrat-0.3.0:
pip install contrat-0.3.0.whl
نصب پکیج tar.gz contrat-0.3.0:
pip install contrat-0.3.0.tar.gz