swig/swig
SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages. observed · 2026-08-28
Health v2 · maintenance only
77/100
- Activity 99
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4995
- days_rel: n/a
- days_push: 9
- n_releases_24m: 0
Adoption not part of the score
6318 stars · 1315 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
SWIG is a compiler that reads annotated C/C++ header files and generates wrapper (glue) code so C/C++ libraries can be called from high-level languages like Python, Java, C#, Go, Ruby, PHP, Lua, and many others. It supports ISO C99 and C++98 through C++20 and can also export its parse tree as XML.
Use cases
- generate Python bindings for a C++ library
- expose a C library to Java or C#
- call C++ code from Ruby or PHP
- create scripting language extensions for a C/C++ application
- prototype and test C/C++ code from an interpreted language
- wrap a C++ API for use in Go or Lua
When to choose
- you need to make an existing C/C++ library usable from one or more high-level languages
- you want multi-language bindings from a single interface description
- you need broad C++ feature coverage including templates, namespaces, and STL support
When to avoid
- you only need Python bindings and prefer a Python-specific tool like pybind11
- your code relies heavily on template meta-programming requiring automatic template instantiation
- you need bindings for a language not on SWIG's supported list
Facets
cli-tool · maturity stable
compiler parser developer-tools sdk developer-tools programming-languages cross-platform windows cross-platform cli bindings-generator ffi wrapper-generator c-cpp scripting-language-interop glue-code code-generation linux macos
4 sources
- readme: https://github.com/swig/swig · fetched 2026-08-28 · 541f658540f0
- homepage: http://www.swig.org · fetched 2026-08-29 · dc665629ec99
- site_page: https://www.swig.org/compare.html · fetched 2026-08-29 · 6494199fcebc
- site_page: https://www.swig.org/doc.html · fetched 2026-08-29 · 6591eda36ed7
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| swig/swig | main | 77 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem