Skip to main content

Boilerplate tool for Python C/C++ extension

Project description

sebae

A simple tool for generating Python C/C++ extension boilerplate code.

Note the boilerplate code generated by sebae is self-contained. The only necessary dependency is Python itself.

Usage

Installation

pip install sebae

Create boilerplate project

Initialize a boilerplate project

> sebae init [optional project directory]
Select init schema:
1.pybind11
selection ([q]uit):
> 1
Package name:
> test_pkg
Author:
> actcwlf
Author email:
> abc@def.com
Initializing pybind11 schema project test_pkg
Finish!

If no project directory is specified, sebae will use pybind11_project as default project directory.

Install C++ extension

cd pybind11_project
pip install .

Use the extension in python

To avoid name conflict, make sure you are not in project directory

cd ..
python

In python cmd

Python 3.7 ....
>>> import test_pkg
>>> test_pkg.add(1, 2)
3.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

sebae-0.1.4-py3-none-any.whl (31.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page