Skip to main content

A crontab-json translator

Project description

========TK_DRAFT=========

Cronk: a cron-json translator

OpenSSF Scorecard OpenSSF Best Practices


This repository is a part of the Google Open Source Blog's "From zero to supply-chain security hero" blog series. It is meant for demonstrative purposes, and should not be used in production!

All information beyond this point is fictional!


  • Student: Alice Doe (@nebraska-dev), 2018Q4
  • Course: TK_FUNNY_COURSE_NAME_42 @ Cottonwood University (TK Cottonwood is the Nebraska state tree, and there is no such university)

Cronk allows developers to convert files between the crontab and json formats.

To-do:

  • Add i18n of periodicity via Babel

Release to pypi.org

We provide a Dockerfile that sets up the correct environment to publish a new version of Cronk to PyPI.

*These instructions assume the build is executed on a Cloudtop instance.

First time Docker setup

Remove any previous Docker installation:

sudo apt remove docker-engine

Add Google's Docker distribution repository to `apt:

glinux-add-repo docker-ce-"$(lsb_release -cs)"

Install the Docker runtime:

sudo apt update  && sudo apt install docker-ce

Check that the Docker daemon is active:

systemctl status docker.service

The systemctl output should look something like this:

ltadeut@ltadeut-devbox:~/cronk$ systemctl status docker.service
● docker.service - Docker Application Container Engine
     Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; preset: enabled)
     Active: active (running) since Tue 2025-09-16 16:29:58 UTC; 1h 54min ago
 Invocation: f59978f5efe2458d904819d125f79a03
TriggeredBy: ● docker.socket
       Docs: https://docs.docker.com
   Main PID: 2421936 (dockerd)
      Tasks: 32
     Memory: 1.2G (peak: 1.2G)
        CPU: 2min 21.072s
     CGroup: /system.slice/docker.service
             └─2421936 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock

Update the cronk version

To release a new version, you must first update the version listed in the pyproject.toml file.

Open the pyproject.toml file at the root of this repository and edit the version field.

Generate the base image

Run the command below from the repository's root directory:

sudo docker build -t release-cronk-to-pypi -f docker/Dockerfile.release_pypi .

Publish to pypi.org

Run the command below to execute the release image (replace <PYPI_API_TOKEN> with the value found in https://valentine.corp.google.com/#/show/1757341155550459?tab=metadata):

sudo docker run -e TWINE_PASSWORD=<PYPI_API_TOKEN> release-cronk-to-pypi

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

cronk-0.0.19rc13.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cronk-0.0.19rc13-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file cronk-0.0.19rc13.tar.gz.

File metadata

  • Download URL: cronk-0.0.19rc13.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.6

File hashes

Hashes for cronk-0.0.19rc13.tar.gz
Algorithm Hash digest
SHA256 820c4d6f4d74b18ea785377b88c956c00a1ea5761639d9ff580fd1bf0734682b
MD5 01fcdf40cd7628135950aa55f99858aa
BLAKE2b-256 6828fdbb3ebb721f22092a393e9d31a064a5371035e0846741a938490871a113

See more details on using hashes here.

File details

Details for the file cronk-0.0.19rc13-py3-none-any.whl.

File metadata

  • Download URL: cronk-0.0.19rc13-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.6

File hashes

Hashes for cronk-0.0.19rc13-py3-none-any.whl
Algorithm Hash digest
SHA256 c087af9267dee733b4dbbe44a56b27bf5bc27492befcc3af8951413a2d0c4436
MD5 ba861e40d24ba060a4d50686c83c73f4
BLAKE2b-256 53bf78d82e58daa16511afd58429444634a080524668d550af2c0346656508eb

See more details on using hashes here.

Supported by

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