nanobind
« Back to VersTracker
Description:
Tiny and efficient C++/Python bindings
Type: Formula  |  Latest Version: 2.10.2@0  |  Tracked Since: Nov 9, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c++ python bindings library development
Install: brew install nanobind
About:
nanobind is a lightweight binding library that allows for seamless interoperability between C++11 and Python. It provides a simple and efficient API for creating Python bindings for C++ code, with a focus on performance and minimal overhead. The library leverages modern C++ features to reduce boilerplate and improve binding generation speed.
Key Features:
  • Minimal overhead and fast compilation times
  • Support for NumPy arrays and Eigen types
  • Header-only library design
  • Superior performance compared to pybind11
Use Cases:
  • Creating high-performance Python extensions for C++ libraries
  • Binding scientific computing libraries for Python access
  • Migrating existing C++ codebases to Python interfaces
Alternatives:
  • pybind11 – nanobind is a spiritual successor that offers significantly faster compilation and reduced binary size.
  • Cython – Cython uses a Python-like syntax and requires a compilation step, whereas nanobind uses pure C++.
Version History
Detected Version Rev Change Commit
Nov 9, 2025 6:45pm 0 VERSION_BUMP bf0095fd
Sep 28, 2025 9:09pm 0 VERSION_BUMP 43705295
Sep 19, 2024 8:28pm 0 VERSION_BUMP b25655f5
Sep 18, 2024 9:12am 0 VERSION_BUMP 828f84bf
Sep 18, 2024 2:13am 0 NEW 0f6340ee