{"id":25085913,"url":"https://github.com/bornalgo/py-cpp-bindings","last_synced_at":"2026-05-08T00:45:18.562Z","repository":{"id":196553919,"uuid":"695275481","full_name":"bornalgo/py-cpp-bindings","owner":"bornalgo","description":"This is a Python utility for generating seamless bindings to C++ libraries, enabling you to effortlessly interface Python with existing C++ codebases.","archived":false,"fork":false,"pushed_at":"2023-09-25T16:51:33.000Z","size":421,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T13:46:14.140Z","etag":null,"topics":["bash","batch","bindings","castxml","cpp","ctypes","ctypes-bindings","dll","header","pyinstaller","python"],"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/bornalgo.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}},"created_at":"2023-09-22T18:40:00.000Z","updated_at":"2023-09-23T03:12:52.000Z","dependencies_parsed_at":"2023-09-26T04:30:37.948Z","dependency_job_id":null,"html_url":"https://github.com/bornalgo/py-cpp-bindings","commit_stats":null,"previous_names":["bornalgo/py-cpp-bindings"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bornalgo/py-cpp-bindings","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bornalgo%2Fpy-cpp-bindings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bornalgo%2Fpy-cpp-bindings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bornalgo%2Fpy-cpp-bindings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bornalgo%2Fpy-cpp-bindings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bornalgo","download_url":"https://codeload.github.com/bornalgo/py-cpp-bindings/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bornalgo%2Fpy-cpp-bindings/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259490544,"owners_count":22865766,"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":["bash","batch","bindings","castxml","cpp","ctypes","ctypes-bindings","dll","header","pyinstaller","python"],"created_at":"2025-02-07T08:30:45.720Z","updated_at":"2026-05-08T00:45:13.504Z","avatar_url":"https://github.com/bornalgo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# py-cpp-bindings\n## _Seamless Python-C++ Integration Made Effortless_\n\n![Example3_h](res/imgs/example3_h.svg)\n![Example3_py](res/imgs/example3_py.svg)\n\n\"py-cpp-bindings\" is a handy Python utility for generating seamless bindings to C++ libraries, enabling you to effortlessly interface Python with existing C++ codebases. This versatile tool streamlines the process of creating Pythonic wrappers around C++ classes, functions, and enums, making it easier than ever to harness the capabilities of C++ libraries from within Python.\n\n## Features\n\n- **Automated Binding Generation:** Quickly generate Python bindings for C++ code with minimal effort.\n- **Versatile Compatibility:** Works with a wide range of C++ libraries and projects.\n- **Effortless Integration:** Seamlessly incorporate C++ functionality into Python applications.\n- **Advanced Type Handling:** Handle complex C++ types, including pointer types and circular type definitions.\n- **Flexible Configuration:** Fine-tune the binding generation process to meet your specific needs.\n- **Intuitive Usage:** Enjoy a user-friendly interface for creating Pythonic wrappers.\n- **Documentation and Examples:** Documentation and illustrative examples to guide you through the process.\n\nUnlock the full potential of your C++ libraries in Python with \"py-cpp-bindings.\" Start bridging the gap between these two powerful programming languages today!\n\n## Prerequisites\n\n- **Python Packages:** You must have the following Python packages installed:\n\n  - [pygccxml](https://pygccxml.readthedocs.io/en/latest/)\n  - [pyinstaller](https://www.pyinstaller.org/)\n\n- **XML Generator:** An XML generator tool is required to extract information from your C++ codebase. In this project, we have used the following XML generator tools:\n\n  - [castxml](https://github.com/CastXML/CastXML)\n  - [castxml-patch](https://pypi.org/project/castxml-patch/)\n\n## Build\n\n### Windows\n\nExecute the following command\n```bat\n.\\buildWindows.bat\n```\n\n### Linux\n\nExecute the following command\n```sh\n./buildLinux.sh\n```\n\n## Usage\n\n### Linux\n```sh\nbuild/LINUX-x86_64/dist/py-cpp-bindings/py-cpp-bindings --filenames examples/example1.h --output example/example1.py\n```\n\n### Windows\n\nNote that you need to change the `--include-paths` based on your OS file system.\n\n```bat\nbuild\\Win64\\dist\\py-cpp-bindings\\py-cpp-bindings.exe --filenames examples\\example1.h --include-paths \"C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\ucrt\" \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\include\" --output examples\\example1.py\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbornalgo%2Fpy-cpp-bindings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbornalgo%2Fpy-cpp-bindings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbornalgo%2Fpy-cpp-bindings/lists"}