{"id":17354174,"url":"https://github.com/dovyski/dopy","last_synced_at":"2026-05-03T16:32:31.389Z","repository":{"id":140595776,"uuid":"138149621","full_name":"Dovyski/dopy","owner":"Dovyski","description":"A simple tool to transcribe C++ function signatures and comments into Python","archived":false,"fork":false,"pushed_at":"2018-06-26T06:35:40.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T13:25:53.243Z","etag":null,"topics":["cpp","documentation","php","python"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/Dovyski.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2018-06-21T09:31:02.000Z","updated_at":"2018-06-26T06:35:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"e20f697d-f1a1-4132-af73-eb65c23ec5de","html_url":"https://github.com/Dovyski/dopy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Dovyski/dopy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dovyski%2Fdopy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dovyski%2Fdopy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dovyski%2Fdopy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dovyski%2Fdopy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dovyski","download_url":"https://codeload.github.com/Dovyski/dopy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dovyski%2Fdopy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32577121,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"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":["cpp","documentation","php","python"],"created_at":"2024-10-15T17:19:17.111Z","updated_at":"2026-05-03T16:32:31.368Z","avatar_url":"https://github.com/Dovyski.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dopy\n\nDopy is a simple tool to transcribe documentation and signatures of C++ function into their equivalent in Python. The main goal of the tool is to help developers port their C++ libraries into Python.\n\n## Getting started\n\n### 1. Prerequisites\n\nYou need [PHP](https://php.net) available in the command line to run Dopy.\n\n### 2. Installing\n\nClone Dopy's repository in a folder of your choice, e.g. `/opt/local/`:\n\n```\ncd /opt/local \u0026\u0026 git clone https://github.com/Dovyski/dopy.git dopy\n```\n\n## Usage\n\nDopy expects that all functions in the C++ file to be transcribed have a `/** ... */` comment block whose documentation uses `\\tag` marks, as illustrated below:\n\n```cpp\n\n/**\n Here goes the description of the function.\n You might have descriptions with multiple lines as well.\n\n \\param theParam information about the param.\n \\return true if something.\n\n \\sa init()\n*/\nbool update(int theParam);\n```\n\nAssuming the function above is in the C++ file `mylib.h`, you can transcribe it into Python using the following command:\n\n```\n/opt/local/dopy/dopy --input=mylib.h --output=mylib.py\n```\n\nDopy will print to stdout any warnings and a message informing if everything went ok. All transcribed content will be output in the file informed via `--output`, i.e. `mylib.py` in this case.\n\n## Limitations\n\nDopy is not a C++ to Python transpiler or compiler. It simply aims to speed up the manual process of porting C++ code into Python by automating some tedious steps, e.g. port of documentation and function signatures. Dopy also expects the input C++ code to be formatted in a certain way, which might not be the one you are using. Finally the transcribed Python code follows [Google's Python Style Guide](https://google.github.io/styleguide/pyguide.html).\n\n## License\n\nDopy is licensed under the terms of the [MIT](https://choosealicense.com/licenses/mit/) Open Source\nlicense and is available for free.\n\n## Changelog\n\nSee all changes in the [CHANGELOG](CHANGELOG.md) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdovyski%2Fdopy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdovyski%2Fdopy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdovyski%2Fdopy/lists"}