{"id":22931038,"url":"https://github.com/m32/cindex2ffi","last_synced_at":"2026-05-02T01:35:10.036Z","repository":{"id":252149002,"uuid":"839571250","full_name":"m32/cindex2ctypes","owner":"m32","description":"Using LLVM cindex to generate ctypes bindings","archived":false,"fork":false,"pushed_at":"2024-08-17T22:32:43.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T20:23:59.701Z","etag":null,"topics":["clang","ctypes","generator","python","wrapper"],"latest_commit_sha":null,"homepage":"","language":"C","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/m32.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}},"created_at":"2024-08-07T22:20:58.000Z","updated_at":"2024-09-18T22:48:07.000Z","dependencies_parsed_at":"2024-08-08T01:37:30.172Z","dependency_job_id":"ec4a1f02-e55b-4c76-8c2b-0d11f1d38879","html_url":"https://github.com/m32/cindex2ctypes","commit_stats":null,"previous_names":["m32/cindex2ctypes"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m32%2Fcindex2ctypes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m32%2Fcindex2ctypes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m32%2Fcindex2ctypes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m32%2Fcindex2ctypes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m32","download_url":"https://codeload.github.com/m32/cindex2ctypes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239516476,"owners_count":19651963,"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":["clang","ctypes","generator","python","wrapper"],"created_at":"2024-12-14T10:34:47.560Z","updated_at":"2026-05-02T01:35:10.030Z","avatar_url":"https://github.com/m32.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\n\nThe cindex2ctypes is a project to generate python bindings for C code using clang python bindings. \n\n# Dependencies\n\n**C++**\n`sudo apt install -y clang-16 python3-clang-16`\n\n**Python**\n`sudo pip install -r requirements.txt`\n\n# Demonstration\n\nRun: `cd demo`\n\nRun: `gcc -fPIC -shared -o democ.so democ.c`\n\nRun: `../cindex2ctypes.sh demo`\n\nThe binding code will be available in `demo.py` file.\n\nRun: `python3 main.py`\n\nOutput:\n```\ndo_something called with: p1=0x7efd099a2800 c1=49 c2=50 s1=3 s2=4 i1=5 i2=6 l1=7 l2=8 f=9.000000 d=10.000000\ncb called with: 0x1234, c_int(5)\np1.proc1 result: 0x1234\ndo_something returning: 132\ndo_something result: 132\nvoidproc called\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm32%2Fcindex2ffi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm32%2Fcindex2ffi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm32%2Fcindex2ffi/lists"}