crono-api-client-0.1.9
توضیحات
Crono API client
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | crono-api-client-0.1.9 |
| نام | crono-api-client |
| نسخه کتابخانه | 0.1.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Georges Duverger |
| ایمیل نویسنده | georges.duverger@gmail.com |
| آدرس صفحه اصلی | https://github.com/gduverger/crono-api-client |
| آدرس اینترنتی | https://pypi.org/project/crono-api-client/ |
| مجوز | MIT |
# Crono API Client
Python client for the 🔮 Crono API: https://crono.com/
```python
>>> import crono_api_client as crono
>>> crono.request('POST', https://your.app/').after(hours=42)
```
## How to
Install package:
```console
$ pip install crono_api_client
```
Configure `.env` variables:
```
CRONO_API_URL=…
CRONO_API_KEY=…
```
Get all jobs:
```python
>>> job_uuids = crono.jobs()
```
Get a job:
```python
>>> job_json = crono.job(<string:job_uuid>)
```
Schedule a job:
```python
>>> job_uuid = crono.<task>(<args>, <kwargs>).<trigger>(<args>, <kwargs>)
>>> # or
>>> job_uuid = crono.<trigger>(<args>, <kwargs>).<task>(<args>, <kwargs>)
```
Delete a job:
```python
>>> job_uuid = crono.delete(<string:job_uuid>)
```
## Development
Packaging
```console
# Generating distribution archives
$ python setup.py sdist bdist_wheel
# Uploading the distribution archives
$ twine upload --skip-existing dist/*
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3 | Python |
نحوه نصب
نصب پکیج whl crono-api-client-0.1.9:
pip install crono-api-client-0.1.9.whl
نصب پکیج tar.gz crono-api-client-0.1.9:
pip install crono-api-client-0.1.9.tar.gz