{"id":23231200,"url":"https://github.com/maxhumber/hickory","last_synced_at":"2025-05-07T17:42:36.623Z","repository":{"id":56557450,"uuid":"277125142","full_name":"maxhumber/hickory","owner":"maxhumber","description":"Command line tool for scheduling Python scripts","archived":false,"fork":false,"pushed_at":"2021-06-02T14:51:00.000Z","size":779,"stargazers_count":148,"open_issues_count":7,"forks_count":11,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-19T02:12:48.489Z","etag":null,"topics":["hacktoberfest","schedule","scheduling-python-scripts"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxhumber.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"maxhumber","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-07-04T14:26:22.000Z","updated_at":"2024-10-05T04:37:44.000Z","dependencies_parsed_at":"2022-08-15T20:50:56.418Z","dependency_job_id":null,"html_url":"https://github.com/maxhumber/hickory","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxhumber%2Fhickory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxhumber%2Fhickory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxhumber%2Fhickory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxhumber%2Fhickory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxhumber","download_url":"https://codeload.github.com/maxhumber/hickory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240783138,"owners_count":19856780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","schedule","scheduling-python-scripts"],"created_at":"2024-12-19T02:13:35.251Z","updated_at":"2025-02-26T03:15:41.414Z","avatar_url":"https://github.com/maxhumber.png","language":"Python","funding_links":["https://github.com/sponsors/maxhumber"],"categories":[],"sub_categories":[],"readme":"\u003ch3 align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/maxhumber/hickory/master/logo/hickory.png\" width=\"125px\" alt=\"hickory\"\u003e\n\u003c/h3\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://pypi.python.org/pypi/hickory\"\u003e\u003cimg alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/hickory.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://pepy.tech/project/hickory\"\u003e\u003cimg alt=\"Downloads\" src=\"https://pepy.tech/badge/hickory\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n\n\n### About\n\n`hickory` is a simple command line tool for scheduling Python scripts.\n\n\n\n### Support\n\n| Operating System | Scheduler                                        |\n| ---------------- | ------------------------------------------------ |\n| macOS            | [launchd](https://en.wikipedia.org/wiki/Launchd) |\n| Linux            | [systemd](https://en.wikipedia.org/wiki/Systemd) |\n| Windows          | ❌                                                |\n\n\n\n### Install\n\n```sh\npip install hickory\n```\n\n\n\n### Quickstart\n\n\u003ca href=\"https://asciinema.org/a/355543\" target=\"_blank\"\u003e\u003cimg src=\"https://asciinema.org/a/355543.svg\" /\u003e\u003c/a\u003e\n\nCreate a file called `foo.py`:\n\n```python\nimport datetime\nimport time\n\nstamp = datetime.datetime.now().strftime(\"%H:%M:%S\")\ntime.sleep(5)\n\nprint(f\"Foo - {stamp} + 5 seconds\")\n```\n\nSchedule `foo.py` to execute every ten minutes:\n\n```sh\nhickory schedule foo.py --every=10minutes\n```\n\nCheck the status of all queued schedules:\n\n```sh\nhickory status\n```\n\nStop and delete the schedule for `foo.py`:\n\n```sh\nhickory kill foo.py\n```\n\n\n\n### Logs\n\nmacOS - logs are stored in the same directory as the scheduled script:\n\n```sh\ntail -f hickory.log\n```\n\nLinux - logs are written to the journal:\n\n```sh\njournalctl -f\n```\n\n\n\n### `--every` Examples\n\n| Repeat                                                  |                          |\n| ------------------------------------------------------- | ------------------------ |\n| Every ten minutes                                       | `--every=10minutes`      |\n| Every day at 10:10 AM                                   | `--every=@10:10`         |\n| Every Monday at 10:10 AM                                | `--every=monday@10:10am` |\n| Every 10th day of the month at 10:10 AM                 | `--every=10th@10:10am`   |\n| Every last day of the month at 10:10 AM                 | `--every=eom@10:10am`    |\n| Every 10th and last day of the month at 10 AM and 10 PM | `--every=10,eom@10,10pm` |\n\n\n\n### `--every` Table\n\n| Interval         |                                               |\n| ---------------- | --------------------------------------------- |\n| 10 seconds       | `10`, `10s`, `10sec`, `10secs`, `10seconds`   |\n| 10 minutes       | `10m`, `10min`, `10mins`, `10minutes`         |\n| 10 hours         | `10h`, `10hr`, `10hrs`, `10hours`             |\n| **Time**         |                                               |\n| 10:00 AM         | `@10`, `@10am`                                |\n| 10:00 PM         | `@22`, `@10pm`                                |\n| 10:10 AM         | `@10:10`, `@10:10am`                          |\n| 10:10 PM         | `@22:10`, `@10:10pm`                          |\n| **Weekday**      |                                               |\n| Monday           | `m@`, `mon@`, `monday@`                       |\n| Tuesday          | `t@`, `tue@`, `tues@`, `tuesday@`             |\n| Wednesday        | `w@`, `wed@`, `weds@`, `wednesday@`           |\n| Thursday         | `th@`, `thu@`, `thur@`, `thurs@`, `thursday@` |\n| Friday           | `f@`, `fri@`, `friday@`                       |\n| Saturday         | `s@`, `sat@`, `saturday@`                     |\n| Sunday           | `su@`, `sun@`, `sunday@`                      |\n| **Calendar Day** |                                               |\n| 1st              | `1@`, `1st@`                                  |\n| 2nd              | `2@`, `2nd@`                                  |\n| 3rd              | `3@`, `3rd@`                                  |\n| 4th              | `4@`, `4th@`                                  |\n| 15th             | `15@`, `15th@`                                |\n| 31st             | `31@`, `31st@`                                |\n| **Other Day**    |                                               |\n| Every Day        | `day@`                                        |\n| Every Weekday    | `weekday@`                                    |\n| End of Month     | `eom@`                                        |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxhumber%2Fhickory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxhumber%2Fhickory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxhumber%2Fhickory/lists"}