{"id":16563899,"url":"https://github.com/kanzure/ctypesgen","last_synced_at":"2025-03-05T07:18:45.820Z","repository":{"id":10675736,"uuid":"12912641","full_name":"kanzure/ctypesgen","owner":"kanzure","description":"A pure-python wrapper generator for ctypes","archived":false,"fork":false,"pushed_at":"2016-06-03T11:38:49.000Z","size":417,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"develop","last_synced_at":"2025-02-24T07:07:34.272Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kanzure.png","metadata":{"files":{"readme":"README","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}},"created_at":"2013-09-18T02:54:17.000Z","updated_at":"2016-06-03T11:38:50.000Z","dependencies_parsed_at":"2022-09-01T22:12:07.741Z","dependency_job_id":null,"html_url":"https://github.com/kanzure/ctypesgen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanzure%2Fctypesgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanzure%2Fctypesgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanzure%2Fctypesgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanzure%2Fctypesgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kanzure","download_url":"https://codeload.github.com/kanzure/ctypesgen/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241982691,"owners_count":20052548,"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":[],"created_at":"2024-10-11T20:42:36.096Z","updated_at":"2025-03-05T07:18:45.794Z","avatar_url":"https://github.com/kanzure.png","language":"Python","readme":"                              ctypesgen\n                              ---------\n\n                  (c) Ctypesgen developers 2007-2015\n                 https://github.com/davidjamesca/ctypesgen\n\nctypesgen is a pure-python ctypes wrapper generator. It can also\noutput JSON, which can be used with Mork, which generates bindings for\nLua, using the alien module (which binds libffi to Lua).\n\nDocumentation\n-------------\n\nSee https://github.com/davidjamesca/ctypesgen/wiki for full documentation.\n\nBasic Usage\n-----------\n\nThis project automatically generates ctypes wrappers for header files written\nin C.\n\nFor example, if you'd like to generate Neon bindings, you can do so using this\nrecipe:\n\n  $ python ctypesgen.py -lneon /usr/local/include/neon/ne_*.h -o neon.py\n\nSome libraries, such as APR, need special flags to compile. You can pass these\nflags in on the command line.\n\nFor example:\n\n$ FLAGS = `apr-1-config --cppflags --includes`\n$ python ctypesgen.py $FLAGS -llibapr-1.so $HOME/include/apr-1/apr*.h -o apr.py\n\nSometimes, libraries will depend on each other. You can specify these\ndependencies using -mmodule, where module is the name of the dependency module.\n\nHere's an example for apr_util:\n\n$ python ctypesgen.py $FLAGS -llibaprutil-1.so $HOME/include/apr-1/ap[ru]*.h \\\n    -mapr -o apr_util.py\n\n\nIf you want JSON output (e.g. for generating Lua bindings), use\n--output-language=json. When outputting JSON, you will probably want to use\n--all-headers --builtin-symbols --no-stddef-types --no-gnu-types\n--no-python-types too.\n\nLicense\n-------\n\nctypesgen is distributed under the New (2-clause) BSD License:\nhttp://www.opensource.org/licenses/bsd-license.php\n\nlibffi is a portable Foreign Function Interface library:\nhttp://sources.redhat.com/libffi/\n\nMork, the friendly alien, can be found at:\nhttps://github.com/rrthomas/mork\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanzure%2Fctypesgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkanzure%2Fctypesgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanzure%2Fctypesgen/lists"}