Skip to main content

Command line interface client and python library for Dkron

Project description

Build Status

Command line interface client and python library for Dkron.


  • Pytnon 3


To install use pip:

pip install dkron

Or clone the repo:

git clone
python install

CLI Usage

Before you begin, set environment variable DKRON_HOSTS to point running dkron instance.

export DKRON_HOSTS=,

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]

Cluster status

dkron-cli get status
dkron-cli get leader
dkron-cli get members

Library Usage

from dkron import Dkron

api = Dkron('http://localhost:8080')

Running tests

make test
make coverage

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dkron-0.0.3.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

dkron-0.0.3-py2.py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page