{"id":19135134,"url":"https://github.com/dexpota/cpython-api-examples","last_synced_at":"2025-06-22T08:36:49.041Z","repository":{"id":119494883,"uuid":"91125613","full_name":"dexpota/cpython-api-examples","owner":"dexpota","description":"Some examples of using the C API of python 2.7.","archived":false,"fork":false,"pushed_at":"2022-11-24T10:21:08.000Z","size":22,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-06T19:32:00.618Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/dexpota.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-05-12T20:00:57.000Z","updated_at":"2024-03-15T07:34:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"625ae140-a987-4204-917e-e331f5c492f9","html_url":"https://github.com/dexpota/cpython-api-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dexpota/cpython-api-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dexpota%2Fcpython-api-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dexpota%2Fcpython-api-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dexpota%2Fcpython-api-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dexpota%2Fcpython-api-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dexpota","download_url":"https://codeload.github.com/dexpota/cpython-api-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dexpota%2Fcpython-api-examples/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261263294,"owners_count":23132553,"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-11-09T06:29:16.505Z","updated_at":"2025-06-22T08:36:44.029Z","avatar_url":"https://github.com/dexpota.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cpython cookbook\n\n[![License:MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n## Examples\n\n- 00 **Extending python with C/C++**: a simple python module written in C/C++ with an hello-world function;\n\n- 01 **Errors and exceptions**: this recipe shows how to create a custom exception and raise it back into Python;\n\n- 02 **Python callback inside a C/C++ module**: this recipe shows how to pass a python function into the module and call it inside the C/C++ module;\n\n- 03 **Variable-length arguments and keyword arguments**: this recipe shows how to handle variable-length arguments and keyword arguments;\n\n- 04 **Custom type**: this recipe shows how to define a custom data type inside the C/C++ module;\n\n- 05 **Embedding python inside C/C++**: this recipe shows how to integrate a python interpreter inside a C/C++ program;\n\n- 06 **Executing python inside C/C++**: this recipe shows how to run a simple C string as python code;\n\n## Contributing\n\n- Fork it!\n- Create your feature branch: `git checkout -b my-new-feature`\n- Commit your changes: `git commit -am 'Add some feature'`\n- Push to the branch: `git push origin my-new-feature`\n- Submit a pull request :D\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdexpota%2Fcpython-api-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdexpota%2Fcpython-api-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdexpota%2Fcpython-api-examples/lists"}