Library and CLI for working with multiple cron jobs within a single cron table
Project description
Library and CLI for working with multiple cron jobs within a single cron table
Example
# The following examples assume you have the following example
# crontab file jobs.tab. Note that due to the way the examples
# are laid out, they will not run in the order shown below.
#
# jobs.tab contents:
# # [Frequent Job]
# MAILTO=user
# MAILFROM=root
# PATH=/home/user
# SHELL=/bin/sh
# CRON_TZ=/Etc/UTC
# * * * * * echo "This runs frequently"
#
# # [Specific Job]
# MAILTO=""
# MAILFROM="user"
# PATH=/some/specific/dir
# SHELL=/bin/bash
# CRON_TZ=/Etc/Universal
# 1 2 3 4 5 echo "This runs... oddly specifically
# Add a job to the crontab
cronberry add jobs.tab
# Add a specific job to the crontab
cronberry add jobs.tab --title "Specific Job"
# Add a job manually to the crontab
cronberry enter "Manually Added" '5 4 3 2 1 echo "Custom cronjob"'
# You can also pass environment variables
cronberry enter "With Env Vars" '1 1 2 3 5 echo "This uses bash!"' --shell /bin/bash
# Remove a job from the crontab
cronberry remove "Specific Job"
# Clear the current crontab
cronberry clear
# Save the current crontab to a file
cronberry save "saved.tab"
# Get the specific job with the given title, from a diff
cronberry view "Frequent Job"
# Returns:
# * * * * * echo "This runs frequently"
# See the environment variables of a given job as well
cronberry view "Frequect Job" -v
# Returns:
# [Frequent Job]
# MAILTO=user
# MAILFROM=root
# PATH=/home/user
# SHELL=/bin/sh
# CRON_TZ=/Etc/UTC
# * * * * * echo "This runs frequently"
# See all the jobs in crontab (you can also use the -v flag)
cronberry list
# Returns:
# jobs.tab contents:
# * * * * * echo "This runs frequently"
#
# # [Specific Job]
# 1 2 3 4 5 echo "This runs... oddly specifically
# Get all the job titles from the crontab
cronberry jobs
# Returns:
# Frequent Job
# Specific Job
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cronberry-5.0.0.post0.tar.gz.
File metadata
- Download URL: cronberry-5.0.0.post0.tar.gz
- Upload date:
- Size: 41.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf15d1fc0e529b539e373b8b44a3374c5fb006c3f491b000e0517728623df1e8
|
|
| MD5 |
4f2a57d2aded4c08c604ea3b352156fe
|
|
| BLAKE2b-256 |
ebec355b06bab18489df3d7fa475ea7c475cef687c9393e9a29bbb4156bcf931
|
Provenance
The following attestation bundles were made for cronberry-5.0.0.post0.tar.gz:
Publisher:
publish.yml on tekktrik/cronberry
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cronberry-5.0.0.post0.tar.gz -
Subject digest:
cf15d1fc0e529b539e373b8b44a3374c5fb006c3f491b000e0517728623df1e8 - Sigstore transparency entry: 164685275
- Sigstore integration time:
-
Permalink:
tekktrik/cronberry@0a01de96dae9f39e6aa210da5b0cda6921fc8c92 -
Branch / Tag:
refs/tags/5.0.0.post0 - Owner: https://github.com/tekktrik
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0a01de96dae9f39e6aa210da5b0cda6921fc8c92 -
Trigger Event:
release
-
Statement type:
File details
Details for the file cronberry-5.0.0.post0-py3-none-any.whl.
File metadata
- Download URL: cronberry-5.0.0.post0-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86dbbef83a4a5a8e09a1286288caa43e873f6d720f25ff6b3432dd7dc1f39a65
|
|
| MD5 |
0ba76d001d4fcb12573b40bfa881f579
|
|
| BLAKE2b-256 |
d53a988a5653b270cca3f3620a2551647e07f53542fc833bbfc4d120dbfd754b
|
Provenance
The following attestation bundles were made for cronberry-5.0.0.post0-py3-none-any.whl:
Publisher:
publish.yml on tekktrik/cronberry
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cronberry-5.0.0.post0-py3-none-any.whl -
Subject digest:
86dbbef83a4a5a8e09a1286288caa43e873f6d720f25ff6b3432dd7dc1f39a65 - Sigstore transparency entry: 164685280
- Sigstore integration time:
-
Permalink:
tekktrik/cronberry@0a01de96dae9f39e6aa210da5b0cda6921fc8c92 -
Branch / Tag:
refs/tags/5.0.0.post0 - Owner: https://github.com/tekktrik
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0a01de96dae9f39e6aa210da5b0cda6921fc8c92 -
Trigger Event:
release
-
Statement type: