{"id":30002770,"url":"https://github.com/adrianvollmer/pycompgen","last_synced_at":"2026-04-17T12:33:56.140Z","repository":{"id":303106587,"uuid":"1014391474","full_name":"AdrianVollmer/pycompgen","owner":"AdrianVollmer","description":"Automatically generate shell completions for Python tools installed via uv and pipx.","archived":false,"fork":false,"pushed_at":"2025-10-19T15:00:37.000Z","size":169,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-24T13:06:01.159Z","etag":null,"topics":["bash","completion","pipx","python","tabcompletion","uv","zsh"],"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/AdrianVollmer.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-07-05T16:22:47.000Z","updated_at":"2025-10-17T10:53:06.000Z","dependencies_parsed_at":"2025-07-05T19:05:57.152Z","dependency_job_id":"fd59215b-0ccb-4b39-91c1-4195a9db47e5","html_url":"https://github.com/AdrianVollmer/pycompgen","commit_stats":null,"previous_names":["adrianvollmer/pycompgen"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/AdrianVollmer/pycompgen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdrianVollmer%2Fpycompgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdrianVollmer%2Fpycompgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdrianVollmer%2Fpycompgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdrianVollmer%2Fpycompgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdrianVollmer","download_url":"https://codeload.github.com/AdrianVollmer/pycompgen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdrianVollmer%2Fpycompgen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31929813,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T10:35:34.458Z","status":"ssl_error","status_checked_at":"2026-04-17T10:35:09.472Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["bash","completion","pipx","python","tabcompletion","uv","zsh"],"created_at":"2025-08-05T06:39:28.295Z","updated_at":"2026-04-17T12:33:56.135Z","avatar_url":"https://github.com/AdrianVollmer.png","language":"Python","readme":"# pycompgen\n\nAutomatically generate shell completions for Python tools installed via\nuv and pipx.\n\nCurrently, bash, zsh, and fish on Linux are supported. Also, only Python\ntools that use the `click` or `argcomplete` libraries are supported,\nbesides some select commands:\n\n- `uv`\n- `uvx`\n\n## Installation\n\n``` bash\nuv tool install pycompgen\n# Or if you prefer pipx:\npipx install pycompgen\n```\n\n## Usage\n\nRun pycompgen to generate completions for all installed tools:\n\n``` bash\npycompgen\n```\n\nThe tool will:\n\n1.  Detect Python packages installed via `uv tool` and `pipx` as well as\n    some select commands\n2.  Analyze which ones support shell completions\n3.  Generate completion files in `~/.cache/pycompgen/`\n4.  Create a source script to load all completions\n\nAdd the source script to your shell config:\n\n``` bash\n# For bash: - add to ~/.bashrc:\nsource \u003c(pycompgen --source) ; (pycompgen \u0026)\n\n# For zsh: - add to ~/.zshrc:\nsource \u003c(pycompgen --shell zsh --source) ; (pycompgen --shell zsh \u0026)\n```\n\nThis will load the generated shell completions and generate new\ncompletions for the next time.\n\nThe `fish` shell will automatically read the completions generated by\n`pycompgen` in `.cache/fish/generated_completions`.\n\n### Options\n\n- `--cache-dir PATH`: Override the default cache directory\n- `--force`: Force regeneration of all completions\n- `--shell`: Target shell - bash, zsh, or fish (default:\n  \\${PYCOMPGEN_SHELL:-bash})\n- `--verbose`: Enable detailed output\n- `--source`: Only write the source file contents to stdout and exit\n- `--cooldown-time`: Minimum amount of seconds between regenerations\n\n## Development\n\nInstall development dependencies:\n\n``` bash\nuv sync --group dev\nuv run pre-commit install\n```\n\nRun tests:\n\n``` bash\nuv run pytest\n```\n\nRun linting and formatting:\n\n``` bash\nuv run ruff check src tests\nuv run ruff format src tests\nuv run mypy src\n```\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianvollmer%2Fpycompgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrianvollmer%2Fpycompgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianvollmer%2Fpycompgen/lists"}