pybind11
« Back to VersTracker
Description:
Seamless operability between C++11 and Python
Type: Formula  |  Latest Version: 3.0.1@0  |  Tracked Since: Oct 10, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c++ python bindings header-only development
Install: brew install pybind11
About:
pybind11 is a lightweight header-only library that exposes C++ types in Python and vice versa, mainly for creating Python bindings of existing C++ code. It uses a C++11-compatible macro-based interface that automatically generates the boilerplate code needed to interface with Python's C API. Its main value proposition is enabling seamless interoperability for performance-critical code.
Key Features:
  • Header-only library requiring no compilation
  • Supports modern C++11 features including lambdas and move semantics
  • Minimal boilerplate compared to other binding tools like Boost.Python
Use Cases:
  • Creating Python bindings for existing C++ libraries
  • Exposing performance-critical C++ code to Python for optimization
Alternatives:
  • Cython – Cython uses a Python-like language and requires a compilation step, while pybind11 uses pure C++ macros
  • Boost.Python – Boost.Python is more heavyweight with extensive dependencies, while pybind11 is lightweight and header-only
Version History
Detected Version Rev Change Commit
Oct 10, 2025 1:56pm 1 VERSION_BUMP 5e50618d
Nov 3, 2024 2:38pm 1 VERSION_BUMP a8ba918f
Oct 9, 2024 10:08am 1 VERSION_BUMP 2fc9241b
Sep 14, 2024 2:00am 0 VERSION_BUMP d546829c