{"id":46718171,"url":"https://github.com/tbaldarelli/cron-query","last_synced_at":"2026-03-09T11:05:17.534Z","repository":{"id":317432482,"uuid":"1059776808","full_name":"tbaldarelli/cron-query","owner":"tbaldarelli","description":"Tool to help people query the crontab for jobs based on time or day.","archived":false,"fork":false,"pushed_at":"2025-12-02T01:16:37.000Z","size":352,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-04T17:06:02.425Z","etag":null,"topics":["crontab","crontab-task"],"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/tbaldarelli.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-18T23:50:29.000Z","updated_at":"2025-12-02T00:50:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"676c2cde-6ec7-4d8b-a4ba-dd393a9ca5eb","html_url":"https://github.com/tbaldarelli/cron-query","commit_stats":null,"previous_names":["tbaldarelli/cron-query"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/tbaldarelli/cron-query","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbaldarelli%2Fcron-query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbaldarelli%2Fcron-query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbaldarelli%2Fcron-query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbaldarelli%2Fcron-query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tbaldarelli","download_url":"https://codeload.github.com/tbaldarelli/cron-query/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbaldarelli%2Fcron-query/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30291856,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"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":["crontab","crontab-task"],"created_at":"2026-03-09T11:05:16.781Z","updated_at":"2026-03-09T11:05:17.521Z","avatar_url":"https://github.com/tbaldarelli.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cron-query\n\nA natural language interface for querying and analyzing cron schedules.\n\n## Features\n\n- Natural language queries: \"Which jobs run on weekends?\" or \"What runs at 8 AM?\"\n- Support for relative dates: \"this Saturday\", \"next Monday\"\n- Time range queries: \"between 9 AM and 5 PM\", \"after 10 PM\"\n- System crontab support: Query jobs from user crontab, system crontab, or both\n- Multiple output formats: list, table, JSON, CSV, YAML\n- Color-coded terminal output\n- Custom output templates\n- Cross-platform: Works on Linux and Windows (with mock data)\n\n## Installation\n\n```bash\n# From PyPI (recommended)\npip install cron-query\n\n# From source\ngit clone https://github.com/yourusername/cron-query.git\ncd cron-query\npip install -e .\n```\n\n## Quick Start\n\n```bash\n# Basic queries\ncron-query \"jobs on Saturday\"\ncron-query \"jobs at 8 AM\"\ncron-query \"jobs on weekdays\"\n\n# Relative dates\ncron-query \"jobs this Saturday\"\ncron-query \"jobs next Monday\"\ncron-query \"jobs coming weekend\"\n\n# Time ranges\ncron-query \"jobs after 10 AM\"\ncron-query \"jobs before 5 PM\"\ncron-query \"jobs between 9 AM and 5 PM\"\n\n# Combined queries\ncron-query \"jobs on weekdays between 9 AM and 5 PM\"\ncron-query \"jobs this Saturday after 10 AM\"\n```\n\n## Output Formats\n\n```bash\n# Default list format\ncron-query \"jobs on Saturday\"\n\n# Table format\ncron-query --format table \"jobs on Saturday\"\n\n# JSON format (useful for scripting)\ncron-query --format json \"jobs on Saturday\"\n\n# CSV format (spreadsheet-friendly)\ncron-query --format csv \"jobs on Saturday\"\n\n# YAML format\ncron-query --format yaml \"jobs on Saturday\"\n```\n\n## Templates\n\n```bash\n# List available templates\ncron-query --list-templates\n\n# Use a predefined template\ncron-query --template compact \"jobs on Saturday\"\n\n# Custom template\ncron-query --template \"Job {index}: {command} ({expression})\" \"jobs on Saturday\"\n\n# Get template help\ncron-query --template-help\n```\n\n## Sources\n\n```bash\n# Query user's crontab (default)\ncron-query \"jobs on weekdays\"\n\n# Query system crontabs (/etc/crontab and /etc/cron.d/*)\ncron-query --source system \"jobs on weekdays\"\n\n# Query both user and system crontabs\ncron-query --source all \"jobs on weekdays\"\n\n# Query a specific crontab file\ncron-query --file /path/to/crontab \"jobs on weekdays\"\n```\n\n## Options\n\n```bash\n# Show verbose output\ncron-query -v \"jobs on weekdays\"\n\n# Disable colors\ncron-query --no-color \"jobs on weekdays\"\n\n# Control pagination\ncron-query --page-size 10 --page 2 \"jobs on weekdays\"\ncron-query --no-pager \"jobs on weekdays\"\n```\n\n## Requirements\n\n- Python 3.7 or higher\n- `croniter` package (installed automatically)\n- Optional: `pyyaml` package for YAML output format\n\n## Contributing\n\nPull requests are welcome! Please make sure tests pass and add tests for new features.\n\n## License\n\nMIT License - see LICENSE file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbaldarelli%2Fcron-query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftbaldarelli%2Fcron-query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbaldarelli%2Fcron-query/lists"}