Boost
Libraries
arrow_drop_down
Boost.Python
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.

This Release

Dave Abrahams
Author
Stefan Seefeld
Stefan Seefeld
Maintainer
Jakob van Santen
Jakob van Santen
Contributor - New
Billy K. Poon
Billy K. Poon
Contributor - New
Konstantin Podsvirov
Konstantin Podsvirov
Contributor - New
Daniel Laügt
Daniel Laügt
Contributor - New
Vitaly Buka
Vitaly Buka
Contributor - New
Alexis DUBURCQ
Alexis DUBURCQ
Contributor - New
Rene Rivera
Rene Rivera
Contributor
Peter Dimov
Peter Dimov
Contributor

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.

Building Test Ubuntu Test OSX Test Windows

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.

All Time

Dave Abrahams
Dave Abrahams
Contributor
Ralf W. Grosse-Kunstleve
Contributor
Joel de Guzman
Joel de Guzman
Contributor
Bruno da Silva de Oliveira
Contributor
Jim Bosch
Jim Bosch
Contributor
nobody
Contributor
Beman Dawes
Beman Dawes
Contributor
Vladimir Prus
Vladimir Prus
Contributor
Ankit Daftery
Ankit Daftery
Contributor
Daniel James
Daniel James
Contributor
Jonathan Brandmeyer
Contributor
Aleksey Gurtovoy
Contributor
Stephen Kelly
Stephen Kelly
Contributor
Troy D. Straszheim
Troy D. Straszheim
Contributor
Eric Niebler
Eric Niebler
Contributor
John Maddock
John Maddock
Contributor
Gottfried Ganßauge
Contributor
Douglas Gregor
Douglas Gregor
Contributor
Jürgen Hunold
Jürgen Hunold
Contributor
Marshall Clow
Marshall Clow
Contributor
Jim Bosch
Jim Bosch
Contributor
Markus Schöpflin
Contributor
Gennaro Prota
Contributor
Nikolay Mladenov
Nikolay Mladenov
Contributor
Edward Diener
Edward Diener
Contributor
Thomas Kent
Thomas Kent
Contributor
Christoph Lassner
Christoph Lassner
Contributor
Pat Riehecky
Pat Riehecky
Contributor
Nikita Kniazev
Nikita Kniazev
Contributor
Stefan Slapeta
Contributor
Jeremiah Willcock
Jeremiah Willcock
Contributor
Raoul Gough
Raoul Gough
Contributor
Steven Watanabe
Steven Watanabe
Contributor
Giuseppe Corbelli
Giuseppe Corbelli
Contributor
Andrey Semashev
Andrey Semashev
Contributor
Paul Mensonides
Paul Mensonides
Contributor
Thomas Witt
Thomas Witt
Contributor
Darin Adler
Contributor
Gary Furnish
Gary Furnish
Contributor
Toshiki Teramura
Toshiki Teramura
Contributor
Dmitry Bely
Dmitry Bely
Contributor
Victor Stinner
Victor Stinner
Contributor
Cedric Schmeits
Cedric Schmeits
Contributor
uid30600
Contributor
Hajo Kirchhoff
Contributor
Ullrich Köthe
Contributor
Mikhail Matrosov
Mikhail Matrosov
Contributor
Neal D. Becker
Neal D. Becker
Contributor
Ilya Kolpakov
Ilya Kolpakov
Contributor
Wei-Ming Yang
Wei-Ming Yang
Contributor
SPKorhonen
SPKorhonen
Contributor
Tadeu Manoel
Tadeu Manoel
Contributor
John Kirkham
John Kirkham
Contributor
Victor A. Wagner Jr.
Contributor
Mark Borgerding
Mark Borgerding
Contributor
vmurashev
vmurashev
Contributor
Jonathan Wakely
Jonathan Wakely
Contributor
Michael A. Jackson
Michael A. Jackson
Contributor
Marvin Schmidt
Marvin Schmidt
Contributor
Bernhard Rosenkränzer
Bernhard Rosenkränzer
Contributor
Moritz Wanzenböck
Moritz Wanzenböck
Contributor
Markus Gerstel
Markus Gerstel
Contributor
The Gitter Badger
The Gitter Badger
Contributor
Owens
Owens
Contributor
Orivej Desh
Orivej Desh
Contributor
Austin Maliszewski
Austin Maliszewski
Contributor
Tyler Kieft
Contributor
Denis Arnaud
Denis Arnaud
Contributor
Kohei Takahashi
Kohei Takahashi
Contributor
TaWeiTu
TaWeiTu
Contributor
Frank Richter
Frank Richter
Contributor
Saliya Hamparawa
Saliya Hamparawa
Contributor
David Seifert
David Seifert
Contributor
Julien Schueller
Julien Schueller
Contributor
Gaurav
Gaurav
Contributor
Raphael Isemann
Raphael Isemann
Contributor
Raffi Enficiaud
Raffi Enficiaud
Contributor
Jim Douglas
Jim Douglas
Contributor
Shreyans Doshi
Shreyans Doshi
Contributor
Thomas Trummer
Thomas Trummer
Contributor
Hartmut Kaiser
Hartmut Kaiser
Contributor
Brett Calcott
Brett Calcott
Contributor
Axel Huebl
Axel Huebl
Contributor
David Siegel
David Siegel
Contributor
Peter Martini
Peter Martini
Contributor
vslashg
vslashg
Contributor
Chris Nixon
Chris Nixon
Contributor
Jason Newton
Jason Newton
Contributor
WKarel
WKarel
Contributor
Daniel Wallin
Contributor
Guillaume Dumont
Guillaume Dumont
Contributor
David Hawkes
Contributor
per
per
Contributor
Per
Per
Contributor
Jonas Hoersch
Jonas Hoersch
Contributor
Philip Miller
Philip Miller
Contributor
Aaron Wishnick
Contributor
barnabyrobson
barnabyrobson
Contributor
al3xst
al3xst
Contributor
John Zwinck
John Zwinck
Contributor
Krzysztof Trzciński
Krzysztof Trzciński
Contributor