simulation-schedule


Namesimulation-schedule JSON
Version 1.2.4 PyPI version JSON
download
home_pagehttps://github.com/dbader/schedule
SummaryJob scheduling for humans.
upload_time2024-04-18 06:38:41
maintainerNone
docs_urlNone
authorDaniel Bader
requires_python>=3.7
licenseMIT
keywords schedule periodic jobs scheduling clockwork cron scheduler job scheduling
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            `schedule <https://schedule.readthedocs.io/>`__
===============================================


.. image:: https://github.com/dbader/schedule/workflows/Tests/badge.svg
        :target: https://github.com/dbader/schedule/actions?query=workflow%3ATests+branch%3Amaster

.. image:: https://coveralls.io/repos/dbader/schedule/badge.svg?branch=master
        :target: https://coveralls.io/r/dbader/schedule

.. image:: https://img.shields.io/pypi/v/schedule.svg
        :target: https://pypi.python.org/pypi/schedule

Python job scheduling for humans. Run Python functions (or any other callable) periodically using a friendly syntax.

- A simple to use API for scheduling jobs, made for humans.
- In-process scheduler for periodic jobs. No extra processes needed!
- Very lightweight and no external dependencies.
- Excellent test coverage.
- Tested on Python and 3.7, 3.8, 3.9, 3.10, 3.11, 3.12

Usage
-----

.. code-block:: bash

    $ pip install schedule

.. code-block:: python

    import schedule
    import time

    def job():
        print("I'm working...")

    schedule.every(10).seconds.do(job)
    schedule.every(10).minutes.do(job)
    schedule.every().hour.do(job)
    schedule.every().day.at("10:30").do(job)
    schedule.every(5).to(10).minutes.do(job)
    schedule.every().monday.do(job)
    schedule.every().wednesday.at("13:15").do(job)
    schedule.every().day.at("12:42", "Europe/Amsterdam").do(job)
    schedule.every().minute.at(":17").do(job)

    def job_with_argument(name):
        print(f"I am {name}")

    schedule.every(10).seconds.do(job_with_argument, name="Peter")

    while True:
        schedule.run_pending()
        time.sleep(1)

Documentation
-------------

Schedule's documentation lives at `schedule.readthedocs.io <https://schedule.readthedocs.io/>`_.


Meta
----

Daniel Bader - `@dbader_org <https://twitter.com/dbader_org>`_ - mail@dbader.org

Inspired by `Adam Wiggins' <https://github.com/adamwiggins>`_ article `"Rethinking Cron" <https://adam.herokuapp.com/past/2010/4/13/rethinking_cron/>`_ and the `clockwork <https://github.com/Rykian/clockwork>`_ Ruby module.

Distributed under the MIT license. See `LICENSE.txt <https://github.com/dbader/schedule/blob/master/LICENSE.txt>`_ for more information.

https://github.com/dbader/schedule

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/dbader/schedule",
    "name": "simulation-schedule",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "schedule, periodic, jobs, scheduling, clockwork, cron, scheduler, job scheduling",
    "author": "Daniel Bader",
    "author_email": "mail@dbader.org",
    "download_url": "https://files.pythonhosted.org/packages/67/c2/e57c1355d3d3a5bd893131deac3da3bb6491dae76a6547b40f83f88ff3f6/simulation_schedule-1.2.4.tar.gz",
    "platform": null,
    "description": "`schedule <https://schedule.readthedocs.io/>`__\n===============================================\n\n\n.. image:: https://github.com/dbader/schedule/workflows/Tests/badge.svg\n        :target: https://github.com/dbader/schedule/actions?query=workflow%3ATests+branch%3Amaster\n\n.. image:: https://coveralls.io/repos/dbader/schedule/badge.svg?branch=master\n        :target: https://coveralls.io/r/dbader/schedule\n\n.. image:: https://img.shields.io/pypi/v/schedule.svg\n        :target: https://pypi.python.org/pypi/schedule\n\nPython job scheduling for humans. Run Python functions (or any other callable) periodically using a friendly syntax.\n\n- A simple to use API for scheduling jobs, made for humans.\n- In-process scheduler for periodic jobs. No extra processes needed!\n- Very lightweight and no external dependencies.\n- Excellent test coverage.\n- Tested on Python and 3.7, 3.8, 3.9, 3.10, 3.11, 3.12\n\nUsage\n-----\n\n.. code-block:: bash\n\n    $ pip install schedule\n\n.. code-block:: python\n\n    import schedule\n    import time\n\n    def job():\n        print(\"I'm working...\")\n\n    schedule.every(10).seconds.do(job)\n    schedule.every(10).minutes.do(job)\n    schedule.every().hour.do(job)\n    schedule.every().day.at(\"10:30\").do(job)\n    schedule.every(5).to(10).minutes.do(job)\n    schedule.every().monday.do(job)\n    schedule.every().wednesday.at(\"13:15\").do(job)\n    schedule.every().day.at(\"12:42\", \"Europe/Amsterdam\").do(job)\n    schedule.every().minute.at(\":17\").do(job)\n\n    def job_with_argument(name):\n        print(f\"I am {name}\")\n\n    schedule.every(10).seconds.do(job_with_argument, name=\"Peter\")\n\n    while True:\n        schedule.run_pending()\n        time.sleep(1)\n\nDocumentation\n-------------\n\nSchedule's documentation lives at `schedule.readthedocs.io <https://schedule.readthedocs.io/>`_.\n\n\nMeta\n----\n\nDaniel Bader - `@dbader_org <https://twitter.com/dbader_org>`_ - mail@dbader.org\n\nInspired by `Adam Wiggins' <https://github.com/adamwiggins>`_ article `\"Rethinking Cron\" <https://adam.herokuapp.com/past/2010/4/13/rethinking_cron/>`_ and the `clockwork <https://github.com/Rykian/clockwork>`_ Ruby module.\n\nDistributed under the MIT license. See `LICENSE.txt <https://github.com/dbader/schedule/blob/master/LICENSE.txt>`_ for more information.\n\nhttps://github.com/dbader/schedule\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Job scheduling for humans.",
    "version": "1.2.4",
    "project_urls": {
        "Download": "https://github.com/dbader/schedule/tarball/1.2.4",
        "Homepage": "https://github.com/dbader/schedule"
    },
    "split_keywords": [
        "schedule",
        " periodic",
        " jobs",
        " scheduling",
        " clockwork",
        " cron",
        " scheduler",
        " job scheduling"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "05a1e4abf7d92fb7f493248120f53ccff5025f64e5b3a1f6cb171d5f81250835",
                "md5": "6acf433b623f64df27a9b2925aabb112",
                "sha256": "0934c6cd39005f15e3495b069883cd843c4f0ef6797035eb311752c12e29b487"
            },
            "downloads": -1,
            "filename": "simulation_schedule-1.2.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6acf433b623f64df27a9b2925aabb112",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 12254,
            "upload_time": "2024-04-18T06:38:39",
            "upload_time_iso_8601": "2024-04-18T06:38:39.747169Z",
            "url": "https://files.pythonhosted.org/packages/05/a1/e4abf7d92fb7f493248120f53ccff5025f64e5b3a1f6cb171d5f81250835/simulation_schedule-1.2.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "67c2e57c1355d3d3a5bd893131deac3da3bb6491dae76a6547b40f83f88ff3f6",
                "md5": "9799b36d1aea08c5c4079d9f17b1f5c2",
                "sha256": "442960000797b0e17a8a6e38c1e96305c425bc46f1622886d8c88464db199272"
            },
            "downloads": -1,
            "filename": "simulation_schedule-1.2.4.tar.gz",
            "has_sig": false,
            "md5_digest": "9799b36d1aea08c5c4079d9f17b1f5c2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 22839,
            "upload_time": "2024-04-18T06:38:41",
            "upload_time_iso_8601": "2024-04-18T06:38:41.509040Z",
            "url": "https://files.pythonhosted.org/packages/67/c2/e57c1355d3d3a5bd893131deac3da3bb6491dae76a6547b40f83f88ff3f6/simulation_schedule-1.2.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-18 06:38:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dbader",
    "github_project": "schedule",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "simulation-schedule"
}
        
Elapsed time: 0.23285s