SWIG VS pybind11

Compare SWIG vs pybind11 and see what are their differences.

SWIG

SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages. (by swig)

pybind11

Seamless operability between C++11 and Python (by pybind)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
SWIG pybind11
25 42
5,537 14,916
1.3% 1.9%
9.7 8.6
8 days ago 10 days ago
C++ C++
GNU General Public License v3.0 or later GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

SWIG

Posts with mentions or reviews of SWIG. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-18.

pybind11

Posts with mentions or reviews of pybind11. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-06.

What are some alternatives?

When comparing SWIG and pybind11 you can also consider the following projects:

cffi

PyO3 - Rust bindings for the Python interpreter

CppSharp - Tools and libraries to glue C/C++ APIs to high-level languages

nanobind - nanobind: tiny and efficient C++/Python bindings

Cython - The most widely used Python to C compiler

Optional Argument in C++ - Named Optional Arguments in C++17

djinni

setuptools-rust - Setuptools plugin for Rust support

JavaCPP - The missing bridge between Java and native C++

sol2 - Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:

JNA - Java Native Access

PEGTL - Parsing Expression Grammar Template Library