{"id":26863,"library":"cronex","title":"cronex","description":"Provides an easy-to-use interface for cron-like task scheduling. Version 0.1.3.1. Release cadence is low, no recent updates.","status":"maintenance","version":"0.1.3.1","language":"python","source_language":"en","source_url":"https://github.com/ericpruitt/cronex","tags":["cron","scheduling","task-scheduler"],"install":[{"cmd":"pip install cronex","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"CronEx is the main class, not the module.","wrong":"import cronex","symbol":"CronEx","correct":"from cronex import CronEx"}],"quickstart":{"code":"import time\nfrom cronex import CronEx\n\ncron = CronEx('*/5 * * * *')\nwhile True:\n    if cron.test():\n        print(\"Task triggered\")\n    time.sleep(60)","lang":"python","description":"Create a CronEx instance with a cron expression and call test() to check if the current time matches."},"warnings":[{"fix":"Consider alternatives like 'croniter' or 'python-crontab'.","message":"The package is no longer actively maintained. It may not work with newer Python versions beyond 3.x.","severity":"breaking","affected_versions":">= 0.1.3.1"},{"fix":"Ensure your cron expression has 5 fields (minute hour day month weekday).","message":"The test() method only works with minute-level granularity. It does not support seconds.","severity":"gotcha","affected_versions":"all"},{"fix":"Manually convert times to local timezone before using.","message":"The library does not handle timezones. All times are assumed to be local.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use 'from cronex import CronEx'.","cause":"Using 'import cronex' and then 'cronex.CronEx' when CronEx is not a module-level attribute.","error":"AttributeError: module 'cronex' has no attribute 'CronEx'"},{"fix":"Ensure the cron expression is a valid 5-field string like '*/5 * * * *'.","cause":"Passing an empty string or malformed cron expression to CronEx.","error":"ValueError: invalid literal for int() with base 10: ''"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}