Crono API client
Project description
Crono API Client
Python client for the 🔮 Crono API: https://crono.com/
>>> import crono_api_client as crono
>>> crono.request('POST', https://your.app/').after(hours=42)
How to
Install package:
$ pip install crono_api_client
Configure .env
variables:
CRONO_API_URL=…
CRONO_API_KEY=…
Get all jobs:
>>> job_uuids = crono.jobs()
Get a job:
>>> job_json = crono.job(<string:job_uuid>)
Schedule a job:
>>> job_uuid = crono.<task>(<args>, <kwargs>).<trigger>(<args>, <kwargs>)
>>> # or
>>> job_uuid = crono.<trigger>(<args>, <kwargs>).<task>(<args>, <kwargs>)
Delete a job:
>>> job_uuid = crono.delete(<string:job_uuid>)
Development
Packaging
# Generating distribution archives
$ python setup.py sdist bdist_wheel
# Uploading the distribution archives
$ twine upload --skip-existing dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for crono_api_client-0.1.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4970f28900cb2883a6d3db8264e62813964b721ddc3ef67d9ab7a82c52cf5554 |
|
MD5 | f2d9d38f45c6cc20aabcdb9d4f160a43 |
|
BLAKE2b-256 | bfe025a0ef6ca2c80f69c5f2566d190e4ecfba64845d422b3a8b37f47e2fec5d |