dkron-python
Command line interface client and python library for Dkron.
Prerequisites
Pytnon 3
Installing
To install use pip:
pip install dkron
Or clone the repo:
git clone https://github.com/Eyjafjallajokull/dkron-python.git
python setup.py install
CLI Usage
Before you begin, set environment variable DKRON_HOSTS to point running dkron instance.
export DKRON_HOSTS=http://my-dkron.example.com,http://my-dkron-2.example.com:8080
Alternatively, you can instert --hosts argument to every invocation of dkron-cli.
Fetch all jobs
dkron-cli get jobs
It works well with jq, to list all job names:
dkron-cli get jobs | jq '.[].name'
Fetch specific job
dkron-cli get job [job_name]
Create or update job
dkron-cli apply job [json_file] ...
You can pass multiple files at once.
Execute job
dkron-cli run [job_name]
Delete job
dkron-cli delete job [job_name]
Export all jobs
dkron-cli export [backup_dir]
Cluster status
dkron-cli get status
dkron-cli get leader
dkron-cli get members
Library Usage
from dkron import Dkron
hosts = ['http://localhost:8080']
api = Dkron(hosts)
print(api.get_job('my-dkron-job')['error_count'])
api.run_job('my-dkron-job')
Running tests
make test
make coverage
Metadata
Release files for dkron 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dkron-0.0.5.tar.gz | 4.2 kB | Without provenance | Details for dkron-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dkron-0.0.5-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for dkron-0.0.5-py2.py3-none-any.whl |
Total release size: 10.6 kB
Release files / dkron-0.0.5.tar.gz
| Download URL | dkron-0.0.5.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a68c0a4a32faccbdcbaa5a0e56dbb7bd0bdaf8682c9efcfd55de1977281d732
|
|
BLAKE2b-256 checksum How to use checksums |
0c4e0fc79de5c62a70d4696d60bba75655d563a39cf222d6f376dc8206f6107a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / dkron-0.0.5-py2.py3-none-any.whl
| Download URL | dkron-0.0.5-py2.py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
513b124b1dd19579565e56ca7e36ec2d10e3aad10e82e3a63097aa317a8ab1a9
|
|
BLAKE2b-256 checksum How to use checksums |
8fd00bf3cc4b505cb0a282c71da7ba1cd3ff25ae1afde22767ce7def8d753b55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for dkron 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.