{"id":29097260,"url":"https://github.com/dymmond/sayer","last_synced_at":"2025-08-21T11:17:18.301Z","repository":{"id":294900297,"uuid":"984050700","full_name":"dymmond/sayer","owner":"dymmond","description":"The Modern Python CLI Framework","archived":false,"fork":false,"pushed_at":"2025-07-21T19:27:24.000Z","size":379,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-08-18T02:55:35.491Z","etag":null,"topics":["attrs","click","command-line","dataclass","msgspec","pydantic","rich","rich-text-editor","sayer","serialization"],"latest_commit_sha":null,"homepage":"https://sayer.dymmond.com","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/dymmond.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/contributing.md","funding":".github/FUNDING.yml","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},"funding":{"github":["tarsil"]}},"created_at":"2025-05-15T10:15:36.000Z","updated_at":"2025-07-21T19:26:56.000Z","dependencies_parsed_at":"2025-05-22T18:21:01.542Z","dependency_job_id":null,"html_url":"https://github.com/dymmond/sayer","commit_stats":null,"previous_names":["tarsil/sayer","dymmond/sayer"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/dymmond/sayer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dymmond%2Fsayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dymmond%2Fsayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dymmond%2Fsayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dymmond%2Fsayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dymmond","download_url":"https://codeload.github.com/dymmond/sayer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dymmond%2Fsayer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271469227,"owners_count":24765124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["attrs","click","command-line","dataclass","msgspec","pydantic","rich","rich-text-editor","sayer","serialization"],"created_at":"2025-06-28T13:09:04.344Z","updated_at":"2025-08-21T11:17:18.292Z","avatar_url":"https://github.com/dymmond.png","language":"Python","funding_links":["https://github.com/sponsors/tarsil"],"categories":[],"sub_categories":[],"readme":"# Sayer\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://sayer.dymmond.com\"\u003e\u003cimg src=\"https://res.cloudinary.com/tarsild/image/upload/v1747661493/packages/Sayer/Logo/w8bq4nqcphyd99kns0wl.svg\" alt='Sayer logo'\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cem\u003eFast. Scalable. Elegant. Command the CLI like a boss. 🧙‍♂️\u003c/em\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/dymmond/sayer/actions/workflows/test-suite.yml/badge.svg?event=push\u0026branch=main\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://github.com/dymmond/sayer/actions/workflows/test-suite.yml/badge.svg?event=push\u0026branch=main\" alt=\"Test Suite\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://pypi.org/project/sayer\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/v/sayer?color=%2334D058\u0026label=pypi%20package\" alt=\"Package version\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://pypi.org/project/sayer\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/pyversions/sayer.svg?color=%2334D058\" alt=\"Supported Python versions\"\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n**Documentation**: [https://sayer.dymmond.com](https://sayer.dymmond.com) 📚\n\n**Source Code**: [https://github.com/dymmond/sayer](https://github.com/dymmond/sayer)\n\n**The official supported version is always the latest released**.\n\n---\n\n## 🤔 What is Sayer?\n\nSayer is a modern, async-native Python CLI framework built for developers who want more:\n\n- More structure.\n- More power.\n- More expressiveness.\n\nLess boilerplate. Less headache. Less \"why doesn't this just work?\".\n\nDesigned to scale from weekend scripts to enterprise-grade CLI suites — with a touch of magic.\n\n---\n\n## 📦 Installation\n\n**Using [pip](https://pip.pypa.io/):**\n\n```bash\npip install sayer\n```\n\n**Or with [uv](https://github.com/astral-sh/uv) (blazing fast):**\n\n```bash\nuv pip install sayer\n```\n\n---\n\n## 🧩 Features\n\n* ✅ Fully async support out-of-the-box\n* ✅ Param metadata via `Option(...)`, `Argument(...)`, `Env(...)` — inspired by the best\n* ✅ Declarative CLI building with decorators\n* ✅ Built-in middleware system (yes, for CLI!)\n* ✅ Shared app state and lifecycle management\n* ✅ Terminal-rich output via `rich`\n* ✅ Easy testing with `SayerTestClient`\n* ✅ Flexible help and docs rendering\n* ✅ Clean project scaffolding, sensible defaults\n* ✅ 100% type annotated.\n\n---\n\n## 🔥 Why Sayer?\n\n| Feature               | Sayer        | Notes                             |\n| --------------------- | ------------ | --------------------------------- |\n| Async Support         | ✅ Yes        | Truly async from top to bottom    |\n| Param Metadata        | ✅ Yes        | With rich options, env vars, etc. |\n| Middleware Support    | ✅ Yes        | Per-command, app-wide, scoped     |\n| Lifecycle Hooks       | ✅ Yes        | `on_startup`, `on_shutdown`       |\n| State Management      | ✅ Yes        | Like a Flask `g` but better       |\n| Testability           | ✅ Yes        | CLI client for unit tests         |\n| Output Styling        | ✅ Yes        | Built-in `rich` integration       |\n| Based on Modern Tools | ✅ Hatch + UV | Modern dev setup from day 1       |\n| Full Typing           | ✅ Yes        | Mypy + Ruff compliant             |\n| Fun to Use?           | 🕺 Extremely | Let the code dance with you       |\n\n---\n\n## 🚀 Getting Started\n\nCreate your first CLI app:\n\n```python\nfrom sayer import Sayer, Option\n\napp = Sayer()\n\n@app.command()\ndef hello(name: str = Option(..., help=\"Your name\")):\n    \"\"\"Say hello to someone\"\"\"\n    print(f\"Hello, {name}!\")\n\nif __name__ == \"__main__\":\n    app()\n```\n\nRun it:\n\n```bash\n$ python app.py hello --name Ada\nHello, Ada!\n```\n\n---\n\n## 🧪 Testing\n\n```bash\nhatch run test:test\n```\n\nOr with pytest:\n\n```bash\npytest -v\n```\n\n---\n\n## 📚 Documentation\n\nFull docs available at: [https://sayer.dymmond.com](https://sayer.dymmond.com)\n\nYou’ll find:\n\n* Full API reference\n* Command examples\n* Parameter deep dives\n* Middleware patterns\n* Configuration strategies\n* ... and some fun easter eggs 🐣\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdymmond%2Fsayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdymmond%2Fsayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdymmond%2Fsayer/lists"}