Skip to main content

pydkron - Python Library for Interacting with Dkron

Build Status

Requirements

requests

Installing

Pip

pip install pydkron

Manually

git clone https://github.com/oldmantaiter/pydkron
cd pydkron
python setup.py install

Usage Examples

from pydkron.client import DkronClient

# Return all the configured jobs
client = DkronClient(hosts=["dkron01:8080", "dkron02:8080"])
for job in client.jobs():
    print "%s runs %s" % (job.name, job.schedule)

# Get a job by name
job = client.get_job("job1")

# Delete a job
job.delete()

# Create a new job
data = {
    "name": "job2",
    "schedule": "@every 2m",
    "command": "run stuff",
    "owner": "Tait Clarridge",
    "tags": {
        "role": "dkron:1",
    }
}

job = client.create_job(data)

# Update a job (change the schedule)

job.schedule = "@every 2m"
job.save()

# Run a job
job.run()

# List executions
print job.executions()

Metadata

Release files for pydkron 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydkron 0.2.4
File Size Uploaded
pydkron-0.2.4.tar.gz 3.8 kB Details

Release files / pydkron-0.2.4.tar.gz

Download URL pydkron-0.2.4.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f93266e6d00d67d866260b3517d45e7b10e9260d898a04255ee1a9c0582cc5af
BLAKE2b-256 checksum
How to use checksums
4307293d8c887767c1e9bab19eff80c3e1f0399eb854f69c7f0abcb1cdefe5d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.5

Release history Release notifications | RSS feed

This release

0.2.4 This release

1 release file

0.2.3

1 release file

0.2.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page