{"id":28165527,"url":"https://github.com/alexdemure/gadopenapiconverter","last_synced_at":"2025-05-15T12:11:44.373Z","repository":{"id":285552821,"uuid":"954770651","full_name":"AlexDemure/gadopenapiconverter","owner":"AlexDemure","description":"A CLI tool that generates HTTP clients from an OpenAPI specification","archived":false,"fork":false,"pushed_at":"2025-04-15T16:08:36.000Z","size":85,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"production","last_synced_at":"2025-04-23T21:02:14.774Z","etag":null,"topics":["http-client","openapi-client","python-client","python-openapi"],"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/AlexDemure.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}},"created_at":"2025-03-25T15:35:07.000Z","updated_at":"2025-04-15T16:08:40.000Z","dependencies_parsed_at":"2025-04-01T11:43:26.855Z","dependency_job_id":"bd6bed67-9c96-4966-a79b-cde9114217c4","html_url":"https://github.com/AlexDemure/gadopenapiconverter","commit_stats":null,"previous_names":["alexdemure/fastclient","alexdemure/gadhttpclient","alexdemure/gadopenapiconverter","alexdemure/gadopenapiconv"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexDemure%2Fgadopenapiconverter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexDemure%2Fgadopenapiconverter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexDemure%2Fgadopenapiconverter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexDemure%2Fgadopenapiconverter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexDemure","download_url":"https://codeload.github.com/AlexDemure/gadopenapiconverter/tar.gz/refs/heads/production","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254337535,"owners_count":22054255,"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","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":["http-client","openapi-client","python-client","python-openapi"],"created_at":"2025-05-15T12:11:44.158Z","updated_at":"2025-05-15T12:11:44.360Z","avatar_url":"https://github.com/AlexDemure.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/AlexDemure/gadopenapiconverter\"\u003e\n    \u003ca href=\"https://ibb.co/k6D5VxP6\"\u003e\u003cimg src=\"https://i.ibb.co/Xk5jfbGk/logo.png\" alt=\"logo\" border=\"0\"\u003e\u003c/a\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  A CLI tool that generates HTTP clients from an OpenAPI specification.\n\u003c/p\u003e\n\n---\n\n### Installation\n\n```\npip install gadopenapiconverter\n```\n\n### Usage\n\n```sh\ngadopenapiconverter --file {config.toml} --context \"{}\"\n```\n\n#### General Structure\n\n```\nworkdir = \"myproject\"\n\n[[specifications]]\npath = \"{{name}}.py\"\ncontent = \"file:openapi.json\"\nclient = \"httpx\"\nmodel = \"pydantic\"\nasync = true\noperations = []\n\n[[scripts]]\ncommand = \"isort {{workdir}}\"\ncheck = true\n```\n\n### Sections Overview\n| Section              | Format                               | Description                                                                           |   |   |\n|----------------------|--------------------------------------|---------------------------------------------------------------------------------------|---|---|\n| `workdir`            | `\"\"`                                 | Uses the current directory                                                            |   |   |\n|                      | `\"myproject\"`                        | Uses the current directory + `/myproject`                                             |   |   |\n|                      | `\"/home/myproject\"`                  | Uses an absolute path                                                                 |   |   |\n| `[[specifications]]` |                                      | Defines file creation rules                                                           |   |   |\n|                      | `mode = \"a\"`                         | File writing mode: `\"a\"` (append), `\"w\"` (overwrite)                                  |   |   |\n|                      | `path = \"src/__init__.py\"`           | Relative to workdir, specifies file location.                                         |   |   |\n|                      | `content = \"\"\" ... \"\"\" / path / url` | Raw content, local file path, or URL for remote content.                              |   |   |\n|                      | `model = \"pydantic\"`                 | Type of models created (pydantic, dataclasses, typing, msgspec)                       |   |   |\n|                      | `client = \"httpx\"`                   | Type of http-client created (requests, httpx, aiohttp, urllib, urllib3, http.client)  |   |   |\n|                      | `async = \"true\"`                     | Type of methods (true, false)                                                         |   |   |\n|                      | `operations = []`                    | Filtering methods by operation_id                                                     |   |   |\n| `[[scripts]]`        |                                      | Defines commands to be executed after generation.                                     |   |   |\n|                      | `command = \"isort {{workdir}}\"`      | Command to execute, supports dynamic variables.                                       |   |   |\n|                      | `check = True\\False\"`                | If true, raises an error if the command fails, otherwise logs output.                 |   |   |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexdemure%2Fgadopenapiconverter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexdemure%2Fgadopenapiconverter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexdemure%2Fgadopenapiconverter/lists"}