{"id":48288050,"url":"https://github.com/offscale/cdd-python-all","last_synced_at":"2026-06-07T03:06:39.911Z","repository":{"id":340878650,"uuid":"1167973648","full_name":"offscale/cdd-python-all","owner":"offscale","description":"OpenAPI ↔ Python","archived":false,"fork":false,"pushed_at":"2026-05-15T03:27:25.000Z","size":387,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-15T05:11:18.568Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/offscale.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2026-02-26T22:09:11.000Z","updated_at":"2026-05-15T03:04:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/offscale/cdd-python-all","commit_stats":null,"previous_names":["offscale/cdd-python-client","offscale/cdd-python-all"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/offscale/cdd-python-all","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offscale%2Fcdd-python-all","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offscale%2Fcdd-python-all/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offscale%2Fcdd-python-all/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offscale%2Fcdd-python-all/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/offscale","download_url":"https://codeload.github.com/offscale/cdd-python-all/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offscale%2Fcdd-python-all/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33372739,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-22T21:56:13.512Z","status":"ssl_error","status_checked_at":"2026-05-22T21:56:10.769Z","response_time":265,"last_error":"SSL_read: 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":"2026-04-04T22:59:52.287Z","updated_at":"2026-05-22T22:07:19.841Z","avatar_url":"https://github.com/offscale.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"cdd-python-all\n==============\n[![License](https://img.shields.io/badge/license-Apache--2.0%20OR%20MIT-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![interactive WASM web demo](https://img.shields.io/badge/interactive-WASM_web_demo-blue.svg)](https://offscale.io/wasm_web_demo)\n[![CI](https://github.com/offscale/cdd-python-all/actions/workflows/ci.yml/badge.svg)](https://github.com/offscale/cdd-python-all/actions)\n[![Test Coverage](https://img.shields.io/badge/test_coverage-99%25-brightgreen.svg)](#)\n[![Doc Coverage](https://img.shields.io/badge/doc_coverage-100%25-brightgreen.svg)](#)\n\n----\n\nOpenAPI ↔ Python. This is one compiler in a suite, all focussed on the same task: Compiler Driven Development (CDD).\n\nEach compiler is written in its target language, is whitespace and comment sensitive, and has both an SDK and CLI.\n\nThe core philosophy of Compiler Driven Development (CDD) is synchronization without compromise. Where traditional generators silo your API boundaries into read-only files, this compiler natively merges changes into your codebase via a robust, [whitespace and comment aware] Abstract Syntax Tree (AST) driven parser \u0026 emitter. It bridges the gap between design and implementation, allowing you to seamlessly generate SDKs from a spec or extract a spec from existing code. By keeping your APIs, SDKs, and tests in continuous, automated alignment, it drastically improves both delivery speed and software reliability.\n\nThe CLI—at a minimum—has:\n\n- `cdd-python-all --help`\n- `cdd-python-all --version`\n- `cdd-python-all from_openapi to_sdk_cli -i spec.json`\n- `cdd-python-all from_openapi to_sdk -i spec.json`\n- `cdd-python-all from_openapi to_server -i spec.json`\n- `cdd-python-all to_openapi -f path/to/code`\n- `cdd-python-all to_docs_json --no-imports --no-wrapping -i spec.json`\n- `cdd-python-all serve_json_rpc --port 8080 --listen 0.0.0.0`\n\n## SDK Example\n\n```py\nfrom cdd import generate_sdk, Config\n\nif __name__ == '__main__':\n    config = Config(input_path='spec.json', output_dir='src/models')\n    generate_sdk(config)\n    print(\"SDK generation complete.\")\n```\n\n## Installation\n\n```bash\npython3 -m pip install -e .\n```\n\n## Development\n\nYou can use standard tooling commands or the included cross-platform Makefiles to fetch dependencies, build, and test:\n\n```bash\npython3 -m pip install -e .\npython3 -m pytest\n# or\nmake deps\nmake build\nmake test\n# or on Windows\n.\\make.bat deps\n.\\make.bat build\n.\\make.bat test\n```\n\nSee [PUBLISH.md](PUBLISH.md) for packaging and releasing.\n\n## Features\n\nThe `cdd-python-all` compiler leverages a unified architecture to support various facets of API and code lifecycle management. For a deep dive into the compiler's design, see [ARCHITECTURE.md](ARCHITECTURE.md).\n\n- **Compilation**:\n    - **OpenAPI → `Python`**: Generate idiomatic native models, network routes, client SDKs, and boilerplate directly from OpenAPI (`.json` / `.yaml`) specifications.\n    - **`Python` → OpenAPI**: Statically parse existing `Python` source code and emit compliant OpenAPI specifications.\n- **AST-Driven \u0026 Safe**: Employs static analysis instead of unsafe dynamic execution or reflection, allowing it to safely parse and emit code even for incomplete or un-compilable project states.\n- **Seamless Sync**: Keep your docs, tests, database, clients, and routing in perfect harmony. Update your code, and generate the docs; or update the docs, and generate the code.\n\n**Uncommon Features:**\n\n`cdd-python-all` supports standard CDD features.\n\n## CLI Options\n\n```text\nUsage: cdd-python-all [OPTIONS] \u003cCOMMAND\u003e\n```\n\n---\n\n## License\n\nLicensed under either of\n\n- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or \u003chttps://www.apache.org/licenses/LICENSE-2.0\u003e)\n- MIT license ([LICENSE-MIT](LICENSE-MIT) or \u003chttps://opensource.org/licenses/MIT\u003e)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foffscale%2Fcdd-python-all","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foffscale%2Fcdd-python-all","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foffscale%2Fcdd-python-all/lists"}