{"id":13617313,"url":"https://github.com/ahawker/crython","last_synced_at":"2026-01-16T12:22:00.655Z","repository":{"id":6682027,"uuid":"7927051","full_name":"ahawker/crython","owner":"ahawker","description":"Lightweight task scheduler using cron expressions","archived":false,"fork":false,"pushed_at":"2023-09-21T01:02:39.000Z","size":244,"stargazers_count":204,"open_issues_count":14,"forks_count":20,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-09-30T10:42:36.007Z","etag":null,"topics":["cron","python","python3","scheduler"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahawker.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2013-01-31T00:24:22.000Z","updated_at":"2025-05-20T19:41:14.000Z","dependencies_parsed_at":"2024-01-17T00:54:10.687Z","dependency_job_id":"633be04c-74ab-4714-86a4-f1efc9d75c64","html_url":"https://github.com/ahawker/crython","commit_stats":{"total_commits":456,"total_committers":11,"mean_commits":41.45454545454545,"dds":0.5153508771929824,"last_synced_commit":"4b2bb28e31822e62c5a0daa1587ce0e09683a74f"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/ahawker/crython","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahawker%2Fcrython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahawker%2Fcrython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahawker%2Fcrython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahawker%2Fcrython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahawker","download_url":"https://codeload.github.com/ahawker/crython/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahawker%2Fcrython/sbom","scorecard":{"id":171582,"data":{"date":"2025-08-11","repo":{"name":"github.com/ahawker/crython","commit":"4b2bb28e31822e62c5a0daa1587ce0e09683a74f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":10,"reason":"all changesets reviewed","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T16:39:40.041Z","repository_id":6682027,"created_at":"2025-08-16T16:39:40.041Z","updated_at":"2025-08-16T16:39:40.041Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cron","python","python3","scheduler"],"created_at":"2024-08-01T20:01:39.840Z","updated_at":"2026-01-16T12:22:00.634Z","avatar_url":"https://github.com/ahawker.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# crython\n\n[![Join the chat at https://gitter.im/crython/Lobby](https://badges.gitter.im/crython/Lobby.svg)](https://gitter.im/crython/Lobby?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n[![Build Status](https://travis-ci.org/ahawker/crython.png)](https://travis-ci.org/ahawker/crython)\n[![Build status](https://ci.appveyor.com/api/projects/status/lrl0vof32pkl3tu9?svg=true)](https://ci.appveyor.com/project/ahawker/crython)\n[![codecov](https://codecov.io/gh/ahawker/crython/branch/master/graph/badge.svg)](https://codecov.io/gh/ahawker/crython)\n[![Code Climate](https://codeclimate.com/github/ahawker/crython/badges/gpa.svg)](https://codeclimate.com/github/ahawker/crython)\n[![Issue Count](https://codeclimate.com/github/ahawker/crython/badges/issue_count.svg)](https://codeclimate.com/github/ahawker/crython)\n\n[![PyPI version](https://badge.fury.io/py/crython.svg)](https://badge.fury.io/py/crython)\n[![PyPI versions](https://img.shields.io/pypi/pyversions/crython.svg)](https://pypi.python.org/pypi/crython)\n\n[![Stories in Ready](https://badge.waffle.io/ahawker/crython.svg?label=ready\u0026title=Ready)](http://waffle.io/ahawker/crython)\n\ncrython is a lightweight task (function) scheduler using [cron](http://en.wikipedia.org/wiki/Cron) expressions written in python.\n\n### Status\nThis module is actively maintained.\n\n### Installation\nTo install crython from [pip](https://pypi.python.org/pypi/pip):\n```bash\n    $ pip install crython\n```\n\nTo install crython from source:\n```bash\n    $ git clone git@github.com:ahawker/crython.git\n    $ python setup.py install\n```\n\n### Usage\nCrython supports seven fields (seconds, minutes, hours, day of month, month, weekday, year).\n\nCall a function once a minute:\n```python\n    import crython\n    \n    # Fire once a minute.\n    @crython.job(second=0)\n    def foo():\n        print \"... while heavy sack beatings are up a shocking nine hundred percent? - Kent Brockman\"\n```\n        \nCall a function every ten seconds:  \n```python\n    # Fire every 10 seconds.\n    @crython.job(second=range(0, 60, 10))\n    def foo():\n        print \"I'm a big four-eyed lame-o and I wear the same stupid sweater every day. - Homer's Brain\"\n```\n\nCall a function with a single cron expression:\n```python\n    # Fire every 10 seconds.\n    @crython.job(second='*/10')\n    def foo():\n        print \"Hail to the thee Kamp Krusty... - Kampers\"\n```\n        \nCall a function with a full cron expression:\n```python\n    # Fire once a week.\n    @crython.job(expr='0 0 0 * * 0 *')\n    def foo():\n        print \"Back in line, maggot! - Kearny\"\n```\n\nCall a function with positional and/or keyword arguments:\n```python\n    # Fire every second.\n    @job('safety gloves', second='*', name='Homer Simpson')\n    def foo(item, name):\n        print \"Well, I don't need {0}, because I'm {1}. -- Grimey\".format(item, name)\n```\n\nCall a function using [predefined keywords](https://github.com/ahawker/crython#keywords):\n```python\n    # Fire once a day.\n    @crython.job(expr='@daily')\n    def foo():\n        print \"That's where I saw the leprechaun. He tells me to burn things! - Ralph Wiggum\"\n```\n\n```python\n    # Fire once immediately after scheduler starts.\n    @crython.job(expr='@reboot')\n    def foo():\n        print \"I call the big one bitey. - Homer Simpson\"\n```\n\nCall a function and run it within a separate thread (default behaviour if `ctx` is not specified):\n```python\n    # Fire once a week.\n    @crython.job(expr='@weekly', ctx='thread')\n    def foo():\n        print \"No, no, dig up stupid. - Chief Wiggum\"\n```\n\nCall a function and run it within a separate process:\n```python\n    # Fire every hour.\n    @crython.job(expr='@hourly', ctx='multiprocess')\n    def foo():\n        print \"Eat my shorts. - Bart Simpson\"\n```\n\nStart the global job scheduler:  \n```python\n    if __name__ == '__main__':\n        crython.start()\n        crython.join()  ## This will block\n```\n\nStop the global job scheduler:\n```python\n    crython.stop()\n    crython.join(timeout=5000)  ## This will block 5s waiting for thread to stop.\n```\n\n### Keywords\n| Entry | Description | Equivalent To |\n| --- | --- | --- |\n| @yearly/@annually | Run once a year at midnight in the morning of January 1 | 0 0 0 0 1 1 * |\n| @monthly | Run once a month at midnight in the morning of the first of the month | 0 0 0 0 1 * * |\n| @weekly | Run once a week at midnight in the morning of Sunday | 0 0 0 0 * 0 * |\n| @daily | Run once a day at midnight | 0 0 0 * * * * |\n| @hourly | Run once an hour at the beginning of the hour | 0 0 * * * * * |\n| @minutely | Run once a minute at the beginning of the minute | 0 * * * * * * |\n| @reboot | Run once at startup | @reboot |\n\n### TODO\n- Support \"L\", \"W\" and \"#\" specials.\n- Determine time delta from now -\u003e next time expression is valid.\n\n### Contributing\nIf you would like to contribute, simply fork the repository, push your changes and send a pull request.\n\n### License\nCrython is available under the [MIT license](https://github.com/ahawker/crython/blob/master/LICENSE.md).\n\n### See Other\nThere are similar python cron libraries out there.\nSee:\n[pycron](http://www.kalab.com/freeware/pycron/pycron.htm),\n[python-crontab](http://pypi.python.org/pypi/python-crontab/),\n[cronex](https://github.com/jameseric/cronex).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahawker%2Fcrython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahawker%2Fcrython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahawker%2Fcrython/lists"}