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
- Host: GitHub
- URL: https://github.com/gduverger/crono-api-client
- Owner: gduverger
- License: mit
- Created: 2020-07-23T19:39:51.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-26T21:33:39.000Z (about 3 years ago)
- Last Synced: 2026-01-07T05:59:02.708Z (3 months ago)
- Topics: crono-api, job, job-scheduler, python-client, scheduler, task-scheduler
- Language: Python
- Homepage: https://crono.com/
- Size: 52.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/*
```