A CLI tool for compiling python
Project description
pycompile
""" _ _
_ __ _ _ ___ ___ _ __ ___ _ __ (_) | ___
| '_ \| | | |/ __/ _ \| '_ ` _ \| '_ \| | |/ _ \
| |_) | |_| | (_| (_) | | | | | | |_) | | | __/
| .__/ \__, |\___\___/|_| |_| |_| .__/|_|_|\___|
|_| |___/ |_|
"""
A CLI tool for compiling python source code using Cython or Nuitka.
Table of contents
Local-development
For local development run the following command
make setup-local-dev
All available make
commands
make help
Usage
pycompile -i your_python_files --clean-source --engine nuitka
By default, the Cython is being used as the default compiler.
Syntax | Description |
---|---|
--input-path PATH |
by default it will exclude any test and __init__.py files |
--clean-source |
Deletes the sources files. |
--keep-builds |
Keeps the temp build files. |
--clean-executables |
Deletes the shared objects (.so ) files. |
--engine |
Can be cython or nuitka . |
-exclude-glob-paths |
Glob file patterns for excluding specific files. |
--verbose |
Increase log messages. |
--benchmark |
Benchmark the examples. |
Compiling the examples
For compiling the examples
use the following command:
pycompile -i examples
which by default, deletes any temp build files and keeps the source files.
Benchmark sample examples
For running a benchmark on the examples
use the following command:
pycompile -b
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pycompile-0.1.4.tar.gz
(9.3 kB
view hashes)
Built Distribution
pycompile-0.1.4-py3-none-any.whl
(12.9 kB
view hashes)
Close
Hashes for pycompile-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be5af5f003f55db12f23759ee895d08fb75ef0506e0d1ed51848cbb1000b642d |
|
MD5 | 45461058da055674b31436b4cf9d9d64 |
|
BLAKE2b-256 | 51d52ddab77cc3fb000a190d0e969ce7bc5418239d908909578ecbb25d3b4207 |