{"id":50604494,"url":"https://github.com/danielunderwood/swig-example","last_synced_at":"2026-06-05T21:03:39.346Z","repository":{"id":49519400,"uuid":"76209021","full_name":"danielunderwood/swig-example","owner":"danielunderwood","description":"An example for using CMake with the SWIG code generator","archived":false,"fork":false,"pushed_at":"2021-06-16T01:37:33.000Z","size":52,"stargazers_count":49,"open_issues_count":0,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-03-29T19:11:02.313Z","etag":null,"topics":["cpp","python","swig","swig-binding"],"latest_commit_sha":null,"homepage":"","language":"CMake","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/danielunderwood.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}},"created_at":"2016-12-12T00:29:44.000Z","updated_at":"2025-06-10T02:39:26.000Z","dependencies_parsed_at":"2022-08-29T18:40:28.914Z","dependency_job_id":null,"html_url":"https://github.com/danielunderwood/swig-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danielunderwood/swig-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielunderwood%2Fswig-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielunderwood%2Fswig-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielunderwood%2Fswig-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielunderwood%2Fswig-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielunderwood","download_url":"https://codeload.github.com/danielunderwood/swig-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielunderwood%2Fswig-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33959537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","python","swig","swig-binding"],"created_at":"2026-06-05T21:03:37.983Z","updated_at":"2026-06-05T21:03:39.338Z","avatar_url":"https://github.com/danielunderwood.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SWIG Example\n\nThis is an example of how to use CMake with the [SWIG](http://www.swig.org) interface generator. It is meant for those\ninterested to use as a guide to setting up a project built by CMake with interfaces in other languages generated by\nSWIG.\n\n## Getting Started\n\n### Docker\n\nIf you have docker installed, the following should get you started with a sample environment\n\n```shell\n$ docker build -t swig-example .\n$ docker run --name swig-example -it swig-example\n$ # Now in container\n# python swig/python/test.py\n```\n\n### Local Build\nTo build locally, the following should be installed:\n- cmake\n- swig\n- python Headers (python-dev for debian-based systems)\n\nIt can then be built and run with\n\n```shell\n$ # Build libraries\n$ mkdir build \u0026\u0026 cd build\n$ cmake ..\n$ make -j4\n$ # Note that this currently installs in /usr/lib, which isn't ideal\n$ make install\n$ make install-python\n$ # Go back to root dir to run\n$ cd ..\n$ python swig/python/test.sh\n```\n\n## Languages\nThis example currently generates interfaces for the following languages:\n\n* Python\n\nI will add languages as I need to use them. Anyone that wishes to add another language, feel free to open a pull request\nand let me know if there are any issues with using the installation procedure described below with your language.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielunderwood%2Fswig-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielunderwood%2Fswig-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielunderwood%2Fswig-example/lists"}