cronberry


Namecronberry JSON
Version 4.0.0.post0 PyPI version JSON
download
home_pageNone
SummaryLibrary and CLI for working with multiple cron jobs within a single cron table
upload_time2024-04-04 19:35:19
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseGPL-3.0-or-later
keywords cron crontab tools scheduler
VCS
bugtrack_url
requirements click typing-extensions
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ..
   SPDX-FileCopyrightText: 2024 Alec Delaney
   SPDX-License-Identifier: GPL-3.0-or-later

cronberry
---------

.. image:: https://img.shields.io/pypi/pyversions/cronberry
   :target: https://pypi.org/project/cronberry/
   :alt: PyPI - Python Version

.. image:: https://img.shields.io/github/actions/workflow/status/tekktrik/cronberry/push.yml
   :target: https://github.com/tekktrik/cronberry/actions
   :alt: GitHub Actions Workflow Status

.. image:: https://codecov.io/gh/tekktrik/cronberry/graph/badge.svg?token=9KR7QQH65H
   :target: https://codecov.io/gh/tekktrik/cronberry
   :alt: Codecov Report

.. image:: https://img.shields.io/readthedocs/cronberry
   :target: https://cronberry.readthedocs.io/en/latest/
   :alt: Read the Docs

.. image:: https://img.shields.io/pypi/wheel/cronberry
   :target: https://pypi.org/project/cronberry/
   :alt: PyPI - Wheel

.. image:: https://img.shields.io/pypi/dm/cronberry
   :target: https://pypi.org/project/cronberry/
   :alt: PyPI - Downloads

Library and CLI for working with multiple cron jobs within a single cron table

Example
^^^^^^^

.. code-block:: shell

    # 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

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "cronberry",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "cron, crontab, tools, scheduler",
    "author": null,
    "author_email": "Alec Delaney <tekktrik@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/18/0d/b371843266352a6de7ede2feb54efca95aa2088af92a7e4576a398833d98/cronberry-4.0.0.post0.tar.gz",
    "platform": null,
    "description": "..\n   SPDX-FileCopyrightText: 2024 Alec Delaney\n   SPDX-License-Identifier: GPL-3.0-or-later\n\ncronberry\n---------\n\n.. image:: https://img.shields.io/pypi/pyversions/cronberry\n   :target: https://pypi.org/project/cronberry/\n   :alt: PyPI - Python Version\n\n.. image:: https://img.shields.io/github/actions/workflow/status/tekktrik/cronberry/push.yml\n   :target: https://github.com/tekktrik/cronberry/actions\n   :alt: GitHub Actions Workflow Status\n\n.. image:: https://codecov.io/gh/tekktrik/cronberry/graph/badge.svg?token=9KR7QQH65H\n   :target: https://codecov.io/gh/tekktrik/cronberry\n   :alt: Codecov Report\n\n.. image:: https://img.shields.io/readthedocs/cronberry\n   :target: https://cronberry.readthedocs.io/en/latest/\n   :alt: Read the Docs\n\n.. image:: https://img.shields.io/pypi/wheel/cronberry\n   :target: https://pypi.org/project/cronberry/\n   :alt: PyPI - Wheel\n\n.. image:: https://img.shields.io/pypi/dm/cronberry\n   :target: https://pypi.org/project/cronberry/\n   :alt: PyPI - Downloads\n\nLibrary and CLI for working with multiple cron jobs within a single cron table\n\nExample\n^^^^^^^\n\n.. code-block:: shell\n\n    # The following examples assume you have the following example\n    # crontab file jobs.tab.  Note that due to the way the examples\n    # are laid out, they will not run in the order shown below.\n    #\n    # jobs.tab contents:\n    # # [Frequent Job]\n    # MAILTO=user\n    # MAILFROM=root\n    # PATH=/home/user\n    # SHELL=/bin/sh\n    # CRON_TZ=/Etc/UTC\n    # * * * * * echo \"This runs frequently\"\n    #\n    # # [Specific Job]\n    # MAILTO=\"\"\n    # MAILFROM=\"user\"\n    # PATH=/some/specific/dir\n    # SHELL=/bin/bash\n    # CRON_TZ=/Etc/Universal\n    # 1 2 3 4 5 echo \"This runs... oddly specifically\n\n    # Add a job to the crontab\n    cronberry add jobs.tab\n\n    # Add a specific job to the crontab\n    cronberry add jobs.tab --title \"Specific Job\"\n\n    # Add a job manually to the crontab\n    cronberry enter \"Manually Added\" '5 4 3 2 1 echo \"Custom cronjob\"'\n\n    # You can also pass environment variables\n    cronberry enter \"With Env Vars\" '1 1 2 3 5 echo \"This uses bash!\"' --shell /bin/bash\n\n    # Remove a job from the crontab\n    cronberry remove \"Specific Job\"\n\n    # Clear the current crontab\n    cronberry clear\n\n    # Save the current crontab to a file\n    cronberry save \"saved.tab\"\n\n    # Get the specific job with the given title, from a diff\n    cronberry view \"Frequent Job\"\n    # Returns:\n    # * * * * * echo \"This runs frequently\"\n\n    # See the environment variables of a given job as well\n    cronberry view \"Frequect Job\" -v\n    # Returns:\n    # [Frequent Job]\n    # MAILTO=user\n    # MAILFROM=root\n    # PATH=/home/user\n    # SHELL=/bin/sh\n    # CRON_TZ=/Etc/UTC\n    # * * * * * echo \"This runs frequently\"\n\n    # See all the jobs in crontab (you can also use the -v flag)\n    cronberry list\n    # Returns:\n    # jobs.tab contents:\n    # * * * * * echo \"This runs frequently\"\n    #\n    # # [Specific Job]\n    # 1 2 3 4 5 echo \"This runs... oddly specifically\n\n    # Get all the job titles from the crontab\n    cronberry jobs\n    # Returns:\n    # Frequent Job\n    # Specific Job\n",
    "bugtrack_url": null,
    "license": "GPL-3.0-or-later",
    "summary": "Library and CLI for working with multiple cron jobs within a single cron table",
    "version": "4.0.0.post0",
    "project_urls": {
        "Documentation": "https://cronberry.readthedocs.io/en/latest/",
        "Homepage": "https://github.com/tekktrik/cronberry",
        "Repository": "https://github.com/tekktrik/cronberry"
    },
    "split_keywords": [
        "cron",
        " crontab",
        " tools",
        " scheduler"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "89619bc7cd2e425c523763f80a074687bed885e810429ccade2adf702f2e2d77",
                "md5": "b21a5b3ab1344ba85387fed82befadeb",
                "sha256": "f5fbb962e8817c3463798a73f47a30decf39c2f6cb36e81ed7aad50dda3f91b5"
            },
            "downloads": -1,
            "filename": "cronberry-4.0.0.post0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b21a5b3ab1344ba85387fed82befadeb",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 21495,
            "upload_time": "2024-04-04T19:35:18",
            "upload_time_iso_8601": "2024-04-04T19:35:18.468458Z",
            "url": "https://files.pythonhosted.org/packages/89/61/9bc7cd2e425c523763f80a074687bed885e810429ccade2adf702f2e2d77/cronberry-4.0.0.post0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "180db371843266352a6de7ede2feb54efca95aa2088af92a7e4576a398833d98",
                "md5": "13dd2a19be3d40261a62dfb331328e2a",
                "sha256": "e44afca9c04fbad9e1c68801416aa32f942bb7d7aa2f6abbea5a4644505ffd85"
            },
            "downloads": -1,
            "filename": "cronberry-4.0.0.post0.tar.gz",
            "has_sig": false,
            "md5_digest": "13dd2a19be3d40261a62dfb331328e2a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 41076,
            "upload_time": "2024-04-04T19:35:19",
            "upload_time_iso_8601": "2024-04-04T19:35:19.601279Z",
            "url": "https://files.pythonhosted.org/packages/18/0d/b371843266352a6de7ede2feb54efca95aa2088af92a7e4576a398833d98/cronberry-4.0.0.post0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-04 19:35:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "tekktrik",
    "github_project": "cronberry",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "click",
            "specs": [
                [
                    "~=",
                    "8.1"
                ]
            ]
        },
        {
            "name": "typing-extensions",
            "specs": [
                [
                    "~=",
                    "4.0"
                ]
            ]
        }
    ],
    "lcname": "cronberry"
}
        
Elapsed time: 0.30512s