{"full_name":"pybind/pybind11","owner":"pybind","name":"pybind11","shard":"1","url":"https://github.com/pybind/pybind11","description":"Seamless operability between C++11 and Python","homepage":"https://pybind11.readthedocs.io/","topics":["python","bindings"],"tag_pages":["python"],"language":"C++","license":"NOASSERTION","avatar":"https://avatars.githubusercontent.com/u/17565521?v=4","created_at":"2015-07-05T19:46:48Z","pushed_at":"2026-11-13T22:15:51Z","metrics":{"stars":18033,"forks":2334,"watchers":243,"issues":2263,"prs":3083,"releases":41,"issues_open":480,"issues_closed":1783,"prs_open":148,"prs_closed":557,"prs_merged":2378,"discussions":788},"growth":{"day":{"stars":2,"forks":0,"base_day":"2026-11-15"},"week":{"stars":7,"forks":-2,"base_day":"2026-11-04"},"month":{"stars":6,"forks":6,"base_day":"2026-10-17"}},"history":{"dates":["2026-09-06","2026-09-07","2026-09-08","2026-09-09","2026-09-10","2026-09-11","2026-09-12","2026-09-13","2026-09-14","2026-09-15","2026-09-16","2026-09-17","2026-09-18","2026-09-19","2026-09-20","2026-09-21","2026-09-22","2026-09-23","2026-09-24","2026-09-25","2026-09-26","2026-09-27","2026-09-28","2026-09-29","2026-09-30","2026-10-01","2026-10-02","2026-10-03","2026-10-04","2026-10-05","2026-10-06","2026-10-07","2026-10-08","2026-10-09","2026-10-10","2026-10-11","2026-10-12","2026-10-13","2026-10-14","2026-10-15","2026-10-16","2026-10-17","2026-10-18","2026-10-19","2026-10-20","2026-10-21","2026-10-22","2026-10-23","2026-10-24","2026-10-25","2026-10-26","2026-10-27","2026-10-28","2026-10-29","2026-10-30","2026-10-31","2026-11-01","2026-11-02","2026-11-03","2026-11-04","2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[18010,18009,18008,18006,18008,18008,18008,18008,18008,18008,18008,18008,18010,18009,18011,18012,18012,18013,18014,18016,18017,18016,18017,18020,18022,18020,18020,18022,18022,18023,18025,18022,18023,18025,18024,18024,18024,18025,18025,18027,18025,18027,18026,18024,18026,18027,18030,18028,18029,18028,18026,18025,18025,18025,18025,18025,18025,18026,18027,18026,18028,18029,18031,18031,18031,18031,18033],"forks":[2322,2321,2322,2323,2323,2322,2321,2321,2321,2322,2322,2322,2322,2322,2323,2323,2323,2324,2321,2320,2320,2321,2321,2322,2322,2322,2323,2323,2323,2324,2326,2326,2326,2326,2327,2327,2327,2326,2328,2328,2328,2328,2328,2328,2328,2328,2328,2329,2329,2331,2332,2334,2334,2334,2333,2333,2333,2335,2336,2336,2333,2333,2334,2334,2335,2334,2334],"watchers":[249,249,249,249,249,249,249,249,249,249,249,249,250,250,250,250,250,250,250,250,250,250,250,250,249,249,249,249,249,249,249,249,249,249,249,250,250,250,250,250,249,249,249,249,249,249,249,249,249,244,244,244,244,244,244,244,244,244,244,244,null,244,244,244,243,243,243],"issues_open":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,570,486,484,482,480,480],"prs_open":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,165,163,155,140,145,148]},"boards":{},"same_owner":[],"issues":[{"number":376,"title":"Iterators efficiency and instance tracking","comments":45,"created_at":"2016-08-31T13:13:35Z"},{"number":1042,"title":"Not clear how to expose existing C++ vector as numpy array","comments":37,"created_at":"2017-08-30T07:46:05Z"},{"number":5767,"title":"[BUG]: SupportsInt and SupportsFloat changes cause type checking failures on python classes that override these functions","comments":28,"created_at":"2025-07-24T20:29:46Z"},{"number":2855,"title":"[BUG] Embedding documentation is wrong","comments":27,"created_at":"2021-02-11T16:11:39Z"},{"number":3403,"title":"[BUG]: Windows Python with Debug Libraries Installed causes linker error","comments":24,"created_at":"2021-10-24T05:36:54Z"},{"number":1049,"title":"Is clone pattern supported with classes overloaded in python?","comments":24,"created_at":"2017-08-31T15:13:31Z"},{"number":945,"title":"Set the __text_signature__ attribute of callables","comments":24,"created_at":"2017-07-13T17:18:09Z"},{"number":2322,"title":"Would you consider merging a patch that optionally splits pybind11 into declarations vs definitions in a backwards compatible opt-in manner?","comments":23,"created_at":"2020-07-23T16:31:09Z"}],"discussions":[{"number":6270,"title":"Proposal for pybind11 4.0","comments":0,"category":"General","created_at":"2026-11-14T02:08:49Z"},{"number":6256,"title":"Open PR triage, 2026-11-12","comments":1,"category":"General","created_at":"2026-11-12T17:12:13Z"},{"number":6152,"title":"Changed constructor override order in Pybind11 3.1.0","comments":1,"category":"General","created_at":"2026-08-24T14:44:54Z"},{"number":6118,"title":"Precompilation plan","comments":0,"category":"Ideas","created_at":"2026-07-29T15:12:45Z"},{"number":6112,"title":"AI Issue analysis","comments":1,"category":"General","created_at":"2026-07-25T16:09:41Z"},{"number":6104,"title":"Roadmap: Python limited API / stable ABI support (CPython 3.12+)","comments":0,"category":"Ideas","created_at":"2026-07-22T23:32:55Z"},{"number":6103,"title":"pybind11 warning in O3 optimization with gcc","comments":1,"category":"Q&A","created_at":"2026-07-15T21:19:45Z"},{"number":6101,"title":"Proposal: `pybind11-debug` — a gdb wrapper that diagnoses \"Caught an unknown exception!\" and native crashes direct from python console","comments":1,"category":"Ideas","created_at":"2026-07-15T15:34:00Z"}],"latest_release":{"name":"Version 3.1.0","tag":"v3.1.0","published_at":"2026-08-06T23:30:36Z","body":"New Features:\r\n\r\n- Support for Python 3.8 was removed. The minimum supported version is now Python 3.9. [#6110](https://github.com/pybind/pybind11/pull/6110)\r\n\r\n- Support for MSVC 2017 has been dropped. [#6110](https://github.com/pybind/pybind11/pull/6110)\r\n\r\n- Changed strict-mode numeric conversions for PEP 484 compatibility: `float` now accepts `int`, and `complex` now accepts `int` and `float`. [#5879](https://github.com/pybind/pybind11/pull/5879)\r\n\r\n- Small extra features added to the pybind11 command line tool based on python-config. [#4272](https://github.com/pybind/pybind11/pull/4272)\r\n\r\n- Added `subinterpreter_thread_state`, an RAII wrapper that owns a reusable `PyThreadState` for a sub-interpreter, together with a `subinterpreter_scoped_activate` overload that activates it. This lets an OS thread re-enter one or more sub-interpreters without creating and destroying a `PyThreadState` on every activation. [#6073](https://github.com/pybind/pybind11/pull/6073)\r\n\r\n- Add `py::mod_gil_used()` as replacement spelling to `py::mod_gil_not_used(false)`. [#5797](https://github.com/pybind/pybind11/pull/5797)\r\n\r\nBug fixes:\r\n\r\n- Fixed a crash in `py::subinterpreter::create()` when called without a current `PyThreadState`, which its documentation explicitly allows — for example from an embedder that ended initialization with `PyEval_SaveThread()`, or from a worker thread that has never touched Python. `error_scope` is now constructed after a thread state has been attached instead of before. [#6127](https://github.com/pybind/pybind11/pull/6127)\r\n\r\n- Make `py::print` delegate to the current frame/interpreter built-ins `print` entry, fixing handling of `sys.stdout = None`, following the active runtime's stream, keyword, and error semantics, and remaining a no-op if the entry is unavailable during teardown. [#6121](https://github.com/pybind/pybind11/pull/6121)\r\n\r\n- Include the builtin `complex` type in the input annotation of the `std::complex<T>` type caster. [#6113](https://github.com/pybind/pybind11/pull/6113)\r\n\r\n- String views (e.g. `std::string_view`) are now kept alive only when loaded from a transient source (such as a generator), fixing both a use-after-free and a regression where casting a view from a durable object outside a bound function would throw. [#6096](https://github.com/pybind/pybind11/pull/6096)\r\n\r\n- Drop Python 2 prepend to evaluated source, causing errors to be off by one. [#6089](https://github.com/pybind/pybind11/pull/6089)\r\n\r\n- Fix data race on `last_storage_ptr_` cache in `gil_safe_call_once_and_store`. [#6087](https://github.com/pybind/pybind11/pull/6087)\r\n\r\n- Allow user defined `__str__` on `enum_`. [#6078](https://github.com/pybind/pybind11/pull/6078)\r\n\r\n- Fix generated `Callable` type annotations for Python callbacks passed into C++ by inverting the callback's argument/return I/O context relative to the enclosing function signature. [#6055](https://github.com/pybind/pybind11/pull/6055)\r\n\r\n- Correct `__delitem__` for negative-step slices and re-enable contiguous erase fast path. [#6088](https://github.com/pybind/pybind11/pull/6088)\r\n\r\n- Do not pass `-fno-fat-lto-objects` to GCC on macOS, which made all LTO probes fail and silently disabled LTO. [#6114](https://github.com/pybind/pybind11/pull/6114)\r\n\r\n- Fixed cross-compilation to Emscripten/Pyodide with CMake ≥ 4.1 by no longer overriding an explicitly set `PYBIND11_USE_CROSSCOMPILING` when `CMAKE_CROSSCOMPILING_EMULATOR` is defined. [#6094](https://github.com/pybind/pybind11/pull/6094)\r\n\r\n- Unset stale `PYTHON_MODULE_DEBUG_POSTFIX` and correct `USE_PYTHON_INCLUDE_DIR` variable. [#6086](https://github.com/pybind/pybind11/pull/6086)\r\n\r\n- Apply `-undefined dynamic_lookup` to all Apple platforms. [#6075](https://github.com/pybind/pybind11/pull/6075)\r\n\r\nInternal:\r\n\r\n- Improved `py::enum_` operator performance by restoring type-specific implementations. [#5887](https://github.com/pybind/pybind11/pull/5887)\r\n\r\n- Optimized internal `std::unordered_map`/`std::unordere","is_prerelease":false},"readme":false,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}