{"id":35015166,"url":"https://github.com/metacall/embedding-python-example","last_synced_at":"2026-05-02T11:37:26.018Z","repository":{"id":104919544,"uuid":"256171847","full_name":"metacall/embedding-python-example","owner":"metacall","description":"An example of embedding Python into C/C++ using MetaCall.","archived":false,"fork":false,"pushed_at":"2025-02-21T07:42:19.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-28T19:03:11.338Z","etag":null,"topics":["c","cmake","cpp","embedding","python"],"latest_commit_sha":null,"homepage":"https://metacall.io","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/metacall.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":"2020-04-16T09:41:06.000Z","updated_at":"2025-02-21T07:42:23.000Z","dependencies_parsed_at":"2023-05-27T02:45:21.271Z","dependency_job_id":null,"html_url":"https://github.com/metacall/embedding-python-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/metacall/embedding-python-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metacall%2Fembedding-python-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metacall%2Fembedding-python-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metacall%2Fembedding-python-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metacall%2Fembedding-python-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metacall","download_url":"https://codeload.github.com/metacall/embedding-python-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metacall%2Fembedding-python-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32533344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T11:28:32.350Z","status":"ssl_error","status_checked_at":"2026-05-02T11:27:30.140Z","response_time":132,"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":["c","cmake","cpp","embedding","python"],"created_at":"2025-12-27T05:18:21.485Z","updated_at":"2026-05-02T11:37:26.007Z","avatar_url":"https://github.com/metacall.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MetaCall Embedding Python Example\n\nThis example shows how to embed Python into C/C++ source code. The instructions are focused on Linux but it can be ported to other platforms easily.\n\n## Dependencies\n\nFor building this example you need Python 3 to be installed in the system (including the dev dependencies). For debian based distros:\n\n```bash\nsudo apt-get install -y --no-install-recommends python3 python3-dev\n```\n\n## Build\n\nBuild the project, MetaCall dependency may require root permissions in order to be installed in the system.\n\n```bash\ngit clone https://github.com/metacall/embedding-python-example.git\nmkdir embedding-python-example/build \u0026\u0026 cd embedding-python-example/build\ncmake ..\ncmake --build . --target install\n```\n\n## Run\n\nFrom project root directory, run the following commands:\n\n```bash\nexport LOADER_LIBRARY_PATH=\"/usr/local/lib\"\nexport LOADER_SCRIPT_PATH=\"`pwd`\"\nembedding_python_example\n```\n\n## Docker\n\nBuilding and running with Docker:\n\n```bash\ndocker build --build-arg DISABLE_CACHE=`date +%s` -t metacall/embedding_python_example .\ndocker run --rm -it metacall/embedding_python_example\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetacall%2Fembedding-python-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetacall%2Fembedding-python-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetacall%2Fembedding-python-example/lists"}