Boost
Libraries
arrow_drop_down
Boost.Python
M
D
C++ 03 Added in Boost 1.19.0
Categories:   Inter-language

The Boost Python Library is a framework for interfacing Python and C++. It allows you to quickly and seamlessly expose C++ classes functions and objects to Python, and vice-versa, using no special tools -- just your C++ compiler.

Commits Per Release3030252520201515101055000140000181580008000002771.69.01.69.01.70.01.70.01.71.01.71.01.72.01.72.01.73.01.73.01.74.01.74.01.75.01.75.01.76.01.76.01.77.01.77.01.78.01.78.01.79.01.79.01.80.01.80.01.81.01.81.01.82.01.82.01.83.01.83.01.84.01.84.01.85.01.85.01.86.01.86.01.87.01.87.01.88.01.88.0

This Release

Dave Abrahams
Author
Stefan Seefeld
Stefan Seefeld
Maintainer

logo

Synopsis

Join the chat at https://gitter.im/boostorg/python

Welcome to Boost.Python, a C++ library which enables seamless interoperability between C++ and the Python programming language. The library includes support for:

  • References and Pointers
  • Globally Registered Type Coercions
  • Automatic Cross-Module Type Conversions
  • Efficient Function Overloading
  • C++ to Python Exception Translation
  • Default Arguments
  • Keyword Arguments
  • Manipulating Python objects in C++
  • Exporting C++ Iterators as Python Iterators
  • Documentation Strings

See the Boost.Python documentation for details.

Hint : Check out the development version of the documentation to see work in progress.

Test WindowsTest OSXTest UbuntuBuilding

While Boost.Python is part of the Boost C++ Libraries super-project, and thus can be compiled as part of Boost, it can also be compiled and installed stand-alone, i.e. against a pre-installed Boost package.

Prerequisites

Build

Run

faber

to build the library.

Test

Run

faber test.report

to run the tests.

Build docs

Run

faber doc.html

to build the documentation.