Cypyler
A cython compiler for compiling source code in string form.
Example:
from cypyler import TMPCypyler
code = """
def add(x, y):
return x + y
"""
cp = TMPCypyler()
built_module = cp.build(code)
built_module.add(2, 3)
Usage
Cypyler
Instantiation
from cypyler import Cypyler
cp = Cypyler('<build_dir>', '<libraries>', '<include_dirs>')
Where build_dir is the desired directory (path) for the module to be built on. The arguments libraries and include_dirs are lists containing libraries and include directories that should be passed to Cython when compiling.
Building
cp.build('<code>', '<suffix>')
Where code is the code in string form. The suffix argument defaults to .pyx.
TMPCypyler
Instantiation
from cypyler import TMPCypyler
cp = Cypyler('<build_dir_prefix>', '<libraries>', '<include_dirs>')
Where build_dir_prefix is a prefix for the temporary build directory. The build directory is created using the tempfile.mkdtemp function from the Python standard library.
Building
cp.build('<code>', '<suffix>')
Where code is the code in string form. The suffix argument defaults to .pyx.
Free software: MIT license
Metadata
Release files for cypyler 0.2.0
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 |
|---|---|---|---|---|
| cypyler-0.2.0.tar.gz | 4.2 kB | Without provenance | Details for cypyler-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cypyler-0.2.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for cypyler-0.2.0-py2.py3-none-any.whl |
Total release size: 9.3 kB
Release files / cypyler-0.2.0.tar.gz
| Download URL | cypyler-0.2.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94d99b853d83089b7690eb1b52ede9bcad3f98210e09e2611e2499f7722f45fb
|
|
BLAKE2b-256 checksum How to use checksums |
999c2a9d0151fe4301a7e77fc74caa6b68bcda57b318348a49434db7435db926
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / cypyler-0.2.0-py2.py3-none-any.whl
| Download URL | cypyler-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
3872c8e17ed5958f303c26bbdeb3f9c072ca3eb4e99345fb94a8a0dc995d400f
|
|
BLAKE2b-256 checksum How to use checksums |
bfc5ed8b7d08407a29f68183c30d907895ed9ed7765ca7dacc02c273e9f97d9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for cypyler 0.2.0
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.