
Welcome to Boost.Python, a C++ library which enables seamless interoperability between C++ and the Python programming language. The library includes support for:
See the Boost.Python documentation for details.
Hint : Check out the development version of the documentation to see work in progress.
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.
Simply run
scons config [options]
to prepare a build. See scons -h for a description of the available options. For example
scons config --boost=/path/to/boost --python=/path/to/python
will configure Boost.Python to be built against the two specific versions of Boost and Python.
Run
scons
to build the library.
Run
scons test
to run the tests.
Run
scons doc
to build the documentation.
<p><img src="https://raw.githubusercontent.com/boostorg/python/develop/doc/images/bpl.png" alt="logo" /></p> <h1>Synopsis</h1> <p>Welcome to Boost.Python, a C++ library which enables seamless interoperability between C++ and the Python programming language. The library includes support for:</p> <ul> <li>References and Pointers</li> <li>Globally Registered Type Coercions</li> <li>Automatic Cross-Module Type Conversions</li> <li>Efficient Function Overloading</li> <li>C++ to Python Exception Translation</li> <li>Default Arguments</li> <li>Keyword Arguments</li> <li>Manipulating Python objects in C++</li> <li>Exporting C++ Iterators as Python Iterators</li> <li>Documentation Strings</li> </ul> <p>See the <a href="http://boostorg.github.io/python">Boost.Python</a> documentation for details.</p> <p><strong>Hint :</strong> Check out the <a href="http://boostorg.github.io/python/develop">development version</a> of the documentation to see work in progress.</p> <h1>Building <img src="https://travis-ci.org/boostorg/python.svg?branch=develop" alt="Build Status" /></h1> <p>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.</p> <h2>Prerequisites</h2> <ul> <li><a href="http://www.python.org">Python</a></li> <li><a href="http://www.boost.org">Boost</a></li> <li><a href="http://www.scons.org">SCons</a></li> </ul> <h2>Configure</h2> <p>Simply run</p> <pre class="highlightjs highlight"><code class="language- hljs">scons config [options] </code></pre> <p>to prepare a build. See <code>scons -h</code> for a description of the available options. For example</p> <pre class="highlightjs highlight"><code class="language- hljs">scons config --boost=/path/to/boost --python=/path/to/python </code></pre> <p>will configure Boost.Python to be built against the two specific versions of Boost and Python.</p> <h2>Build</h2> <p>Run</p> <pre class="highlightjs highlight"><code class="language- hljs">scons </code></pre> <p>to build the library.</p> <h2>Test</h2> <p>Run</p> <pre class="highlightjs highlight"><code class="language- hljs">scons test </code></pre> <p>to run the tests.</p> <h2>Build docs</h2> <p>Run</p> <pre class="highlightjs highlight"><code class="language- hljs">scons doc </code></pre> <p>to build the documentation.</p>
<p><img src="https://raw.githubusercontent.com/boostorg/python/develop/doc/images/bpl.png" alt="logo" /></p> <h1>Synopsis</h1> <p>Welcome to Boost.Python, a C++ library which enables seamless interoperability between C++ and the Python programming language. The library includes support for:</p> <ul> <li>References and Pointers</li> <li>Globally Registered Type Coercions</li> <li>Automatic Cross-Module Type Conversions</li> <li>Efficient Function Overloading</li> <li>C++ to Python Exception Translation</li> <li>Default Arguments</li> <li>Keyword Arguments</li> <li>Manipulating Python objects in C++</li> <li>Exporting C++ Iterators as Python Iterators</li> <li>Documentation Strings</li> </ul> <p>See the <a href="http://boostorg.github.io/python">Boost.Python</a> documentation for details.</p> <p><strong>Hint :</strong> Check out the <a href="http://boostorg.github.io/python/develop">development version</a> of the documentation to see work in progress.</p> <h1>Building <img src="https://travis-ci.org/boostorg/python.svg?branch=develop" alt="Build Status" /></h1> <p>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.</p> <h2>Prerequisites</h2> <ul> <li><a href="http://www.python.org">Python</a></li> <li><a href="http://www.boost.org">Boost</a></li> <li><a href="http://www.scons.org">SCons</a></li> </ul> <h2>Configure</h2> <p>Simply run</p> <pre class="highlightjs highlight"><code class="language- hljs">scons config [options] </code></pre> <p>to prepare a build. See <code>scons -h</code> for a description of the available options. For example</p> <pre class="highlightjs highlight"><code class="language- hljs">scons config --boost=/path/to/boost --python=/path/to/python </code></pre> <p>will configure Boost.Python to be built against the two specific versions of Boost and Python.</p> <h2>Build</h2> <p>Run</p> <pre class="highlightjs highlight"><code class="language- hljs">scons </code></pre> <p>to build the library.</p> <h2>Test</h2> <p>Run</p> <pre class="highlightjs highlight"><code class="language- hljs">scons test </code></pre> <p>to run the tests.</p> <h2>Build docs</h2> <p>Run</p> <pre class="highlightjs highlight"><code class="language- hljs">scons doc </code></pre> <p>to build the documentation.</p>