An open API service indexing awesome lists of open source software.

https://github.com/gduverger/crono-api-client

🔮 Crono (programmatic time-based job scheduler) API Python client
https://github.com/gduverger/crono-api-client

crono-api job job-scheduler python-client scheduler task-scheduler

Last synced: 2 months ago
JSON representation

🔮 Crono (programmatic time-based job scheduler) API Python client

Awesome Lists containing this project

README

          

# 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()
```

Schedule a job:
```python
>>> job_uuid = crono.(, ).(, )
>>> # or
>>> job_uuid = crono.(, ).(, )
```

Delete a job:
```python
>>> job_uuid = crono.delete()
```

## Development

Packaging

```console
# Generating distribution archives
$ python setup.py sdist bdist_wheel

# Uploading the distribution archives
$ twine upload --skip-existing dist/*
```