autoCppToPy
Q&A
Q: What is autoCppToPy?
A: autoCppToPy is an easy and fast way to compile C++ code into a Python module
Q: How does autoCppToPy work under the hood?
A: autoCppToPy uses pybind11 to compile your C++ code into a python module
Q: How can I use CppToPy
A: autoCppToPy can either be imported into your python code, allowing you to compile any C++ file yourself using autoCppToPy, or it can be used directly in the command line
CLI Documentation
Usage
(* = required)
python -m cpptopy -f <source file*> --header <header file*> -o <package name*> -l <language name = "C++"> --auto-stubs <generate auto .pyi files = False>
Example
main.hpp:
int add(int a, int b);
main.cpp:
#include "main.hpp"
int add(int a, int b) {
return a + b
}
cli:
python -m cpptopy -f "main.cpp" --header "main.hpp" -o "my_module" --auto-stubs True
main.py
import my_module
my_module.add(2, 3) # 5
Creator Notes
autoCppToPy is still under development. It may contain bugs and glitches or unfinished features.
Metadata
Release files for autoCppToPy 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| autocpptopy-0.0.1.tar.gz | 4.1 kB | Without provenance | Details for autocpptopy-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| autoCppToPy-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for autoCppToPy-0.0.1-py3-none-any.whl |
Total release size: 9.7 kB
Release files / autocpptopy-0.0.1.tar.gz
| Download URL | autocpptopy-0.0.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff77036e2813c6340241a34127f9b86ccca19a2ae5d66aef0081cba2502de3b3
|
|
BLAKE2b-256 checksum How to use checksums |
773f2c6a2c7efc463c09564c5d470914f0949aeeb41c7719c4adb8664533018b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / autoCppToPy-0.0.1-py3-none-any.whl
| Download URL | autoCppToPy-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
19a21fe4bdc6395bda151e686d7cc1090bb9a15e1146b1c99f14056f715d2c93
|
|
BLAKE2b-256 checksum How to use checksums |
a2eded5aadaeb8c75752294aab83b57318e223a4ec0d68284231f2546fa20c5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Security for autoCppToPy 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.