{"id":19120730,"url":"https://github.com/waylonwalker/engorgio","last_synced_at":"2026-02-15T12:37:09.287Z","repository":{"id":172272335,"uuid":"649069736","full_name":"WaylonWalker/engorgio","owner":"WaylonWalker","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-13T01:34:42.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-08T23:13:51.477Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/WaylonWalker.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2023-06-03T17:15:33.000Z","updated_at":"2024-11-05T19:14:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"9d405273-d5cf-46d3-8da0-156929dbdaef","html_url":"https://github.com/WaylonWalker/engorgio","commit_stats":null,"previous_names":["waylonwalker/engorgio"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/WaylonWalker/engorgio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WaylonWalker%2Fengorgio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WaylonWalker%2Fengorgio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WaylonWalker%2Fengorgio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WaylonWalker%2Fengorgio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WaylonWalker","download_url":"https://codeload.github.com/WaylonWalker/engorgio/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WaylonWalker%2Fengorgio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29478354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T11:35:25.641Z","status":"ssl_error","status_checked_at":"2026-02-15T11:34:57.128Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-11-09T05:14:48.967Z","updated_at":"2026-02-15T12:37:09.258Z","avatar_url":"https://github.com/WaylonWalker.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# engorgio\n\n\u003cimg src=\"https://github.com/WaylonWalker/engorgio/assets/22648375/e2577efd-cb4b-417a-8139-ef2a7d75c8d9\" width=100%\u003e\n\nExpands function arguments into fields.\n\nhttps://user-images.githubusercontent.com/22648375/235036031-a9dc6589-e350-4a18-9114-6568cb362f74.mp4\n\n\n## Installation\n\npypi package to come if this works out, and I can decide\nwhat to call it. I think its possible to do this for other\nobjects like dataclasses as well.\n\n```console\npip install git+https://github.com/WaylonWalker/engorgio.gi\n```\n\n## Usage\n\nSetup your models.\n\n```python\nfrom typing import Optional\n\nfrom pydantic import BaseModel, Field\n\n\nclass Alpha(BaseModel):\n    a: int\n\n\nclass Color(BaseModel):\n    r: int\n    g: int\n    b: int\n    alpha: Alpha\n\n\nclass Hair(BaseModel):\n    color: Color\n    length: int\n\n\nclass Person(BaseModel):\n    name: str\n    other_name: Optional[str] = None\n    age: int\n    email: Optional[str]\n    pet: str = \"dog\"\n    address: str = Field(\"123 Main St\", description=\"Where the person calls home.\")\n    hair: Hair\n```\n\nNow create a typer command using your models.\n`engorgio` will expand all of the typer fields\nfor you.\n\n```python\nimport typer\nfrom engorgio import engorgio\napp = typer.Typer(\n    name=\"engorgio\",\n    help=\"a demo app\",\n)\n\n@app.command()\n@engorgio\ndef get_person(person: Person) -\u003e Person:\n    \"\"\"Get a person's information.\"\"\"\n    from rich import print\n\n    print(person)\n```\n\nGet the help message.\n\n```console\nengorgio get-person --help\n\n Usage: engorgio get-person [OPTIONS]\n\n Get a person's information.\n\n╭─ Options ──────────────────────────────────────────────────────────────────────────────╮\n│ --help          Show this message and exit.                                            │\n╰────────────────────────────────────────────────────────────────────────────────────────╯\n╭─ Person ───────────────────────────────────────────────────────────────────────────────╮\n│ *  --name              TEXT     [default: None] [required]                             │\n│    --other-name        TEXT     [default: None]                                        │\n│ *  --age               INTEGER  [default: None] [required]                             │\n│    --email             TEXT     [default: None]                                        │\n│    --pet               TEXT     [default: dog]                                         │\n│    --address           TEXT     Where the person calls home. [default: 123 Main St]    │\n╰────────────────────────────────────────────────────────────────────────────────────────╯\n╭─ Person.Hair ──────────────────────────────────────────────────────────────────────────╮\n│ *  --length        INTEGER  [default: None] [required]                                 │\n╰────────────────────────────────────────────────────────────────────────────────────────╯\n╭─ Person.Hair.Color ────────────────────────────────────────────────────────────────────╮\n│ *  --r        INTEGER  [default: None] [required]                                      │\n│ *  --g        INTEGER  [default: None] [required]                                      │\n│ *  --b        INTEGER  [default: None] [required]                                      │\n╰────────────────────────────────────────────────────────────────────────────────────────╯\n╭─ Person.Hair.Color.Alpha ──────────────────────────────────────────────────────────────╮\n│ *  --a        INTEGER  [default: None] [required]                                      │\n╰────────────────────────────────────────────────────────────────────────────────────────╯\n```\n\nCalling the cli will print out a Person object.\n\n```console\nengorgio get-person --name me --age 1 --r 1 --g 1 --b 1 --a 1 --length 1\n```\n\nCalling the cli while not specifying required arguments will automatically prompt for them.\n\n```console\nengorgio get-person\n```\n\n## License\n\n`engorgio` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaylonwalker%2Fengorgio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaylonwalker%2Fengorgio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaylonwalker%2Fengorgio/lists"}