{"id":26116584,"url":"https://github.com/apoorvalal/richcli","last_synced_at":"2026-02-26T20:07:40.100Z","repository":{"id":281578611,"uuid":"945594400","full_name":"apoorvalal/richcli","owner":"apoorvalal","description":"python CLI for interacting with unix tools built for people who haven't committed manpages to memory","archived":false,"fork":false,"pushed_at":"2026-01-13T05:02:52.000Z","size":28,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-13T08:33:08.671Z","etag":null,"topics":["cli","ffmpeg","pdftk","python","unix"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apoorvalal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-03-09T19:28:30.000Z","updated_at":"2026-01-13T05:02:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"7d35a9ea-f944-4750-b72f-3a1f73a2a604","html_url":"https://github.com/apoorvalal/richcli","commit_stats":null,"previous_names":["apoorvalal/richcli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/apoorvalal/richcli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apoorvalal%2Frichcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apoorvalal%2Frichcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apoorvalal%2Frichcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apoorvalal%2Frichcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apoorvalal","download_url":"https://codeload.github.com/apoorvalal/richcli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apoorvalal%2Frichcli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29870635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T18:42:30.764Z","status":"ssl_error","status_checked_at":"2026-02-26T18:41:47.936Z","response_time":89,"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":["cli","ffmpeg","pdftk","python","unix"],"created_at":"2025-03-10T09:46:55.304Z","updated_at":"2026-02-26T20:07:40.095Z","avatar_url":"https://github.com/apoorvalal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `richcli`: user-friendly terminal interfaces\n\nUser-friendly Terminal User Interfaces (TUI) for intimidating unix tools, built with the [rich](https://rich.readthedocs.io/en/stable/introduction.html) python library for modern terminal interfaces. The flagship “magnet” mode parses a CLI’s `-h/--help` output and walks new users through building a safe, explicit command line. Prebuilt FFmpeg and pdftk flows remain available for the most common media and PDF operations.\n\n## Features\n\n### Magnet: interactive builder for any CLI\n  - Parse a command’s help text and list detected options and arguments\n  - Add flags, positional arguments, and values with prompts that explain requirements\n  - Pipe help text in (`mytool --help | richcli magnet mytool`) when the tool needs special flags to show usage\n  - Save or run the assembled command after preview\n\nExample of building up a pandoc command to convert a markdown file to html:\n[![asciicast](https://asciinema.org/a/YLkkZAKHf3fMEVKoZD2mTYgRW.svg)](https://asciinema.org/a/YLkkZAKHf3fMEVKoZD2mTYgRW)\n\n### Media conversion/slicing: FFmpeg presets\n  - Convert between media formats\n  - Resize videos\n  - Trim media files\n  - Adjust audio settings\n\nExample of slicing an mp3 with timestamps:\n[![asciicast](https://asciinema.org/a/9RO8sgs6USJcdUtfAXNp0icZe.svg)](https://asciinema.org/a/9RO8sgs6USJcdUtfAXNp0icZe)\n\n### PDF tools: pdftk and ghostscript operations\n  - Extract pages\n  - Merge PDFs\n  - Compress PDFs\n  - Rotate pages\n  - Add page numbers\n  - Split PDFs\n\nExample of slicing a pdf (potentially to upload into a RAG / LLM's context):\n[![asciicast](https://asciinema.org/a/ORABjxo0qCnuAKX6IUYvaUO6r.svg)](https://asciinema.org/a/ORABjxo0qCnuAKX6IUYvaUO6r)\n\n\n## Installation\n\n### From Source\n\n```bash\ngit clone https://github.com/apoorvalal/richcli.git\ncd richcli\npip install -e .\n```\n\n### Dependencies\n\n- Python 3.7+\n- Rich library (installed automatically by pip)\n- External tools:\n  - PDF Tools requires:\n    - pdftk\n    - ghostscript\n  - FFmpeg UI requires:\n    - ffmpeg\n\n## Usage\n\n### Launch specific tools directly:\n\n```bash\nrichcli magnet \u003ccommand\u003e  # Generic builder for any CLI (magnet mode)\nrichcli \u003ccommand\u003e         # Shortcut: jump straight into magnet for that command\nrichcli ffmpeg            # FFmpeg UI presets\nrichcli pdf               # PDF Tools presets\n```\n\n### Launch the main UI:\n\n```bash\nrichcli\n```\n\nThe main menu defaults to magnet mode so first-time CLI users can start with the guided builder, with FFmpeg and pdftk available as ready-made presets.\n\n### Navigation\n\nAt any prompt you can type `b` to go back to the previous menu or `q`/`quit` to exit the current tool without relying on Ctrl+C/Ctrl+D.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapoorvalal%2Frichcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapoorvalal%2Frichcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapoorvalal%2Frichcli/lists"}