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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file sebae-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: sebae-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 31.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.8

File hashes

Hashes for sebae-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2e790625da2e9934de969ed0a98a1cd4f17e3cf9e6349d29bcf369e281f4da28
MD5 0fe70fa4b30e30b2c3ba988d94a67ca1
BLAKE2b-256 9202eab2b812c9e9711b9a6cfc116735ce114916480740038ee786d1b1d6fe4c

See more details on using hashes here.

Supported by

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