pybind11 VS nanobind

Compare pybind11 vs nanobind and see what are their differences.

pybind11

Seamless operability between C++11 and Python (by pybind)

nanobind

nanobind: tiny and efficient C++/Python bindings (by wjakob)
Our great sponsors
  • SonarCloud - Analyze your C and C++ projects with just one click.
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • Mergify - Updating dependencies is time-consuming.
pybind11 nanobind
41 10
13,553 1,634
2.3% -
8.6 0.0
7 days ago 5 days ago
C++ C++
GNU General Public License v3.0 or later BSD 3-clause "New" or "Revised" License
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.

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-07-18.

nanobind

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

What are some alternatives?

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

PyO3 - Rust bindings for the Python interpreter

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

setuptools-rust - Setuptools plugin for Rust support

PEGTL - Parsing Expression Grammar Template Library

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

sparsehash - C++ associative containers

dynamic_bitset - Simple Useful Libraries: C++17/20 header-only dynamic bitset

py2many - Transpiler of Python to many other languages

wasmtime - A fast and secure runtime for WebAssembly

cpp-subprocess - Subprocessing with modern C++

LSHBOX - A c++ toolbox of locality-sensitive hashing (LSH), provides several popular LSH algorithms, also support python and matlab.

sparsehash-c11 - Experimental C++11 version of sparsehash