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. |
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.3.tar.gz
(9.3 kB
view hashes)
Built Distribution
pycompile-0.1.3-py3-none-any.whl
(12.9 kB
view hashes)
Close
Hashes for pycompile-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2a2ccb187f98012eb0f38d070dedb044d02c63d59294a8f8790e5fe801603f8 |
|
MD5 | 2021322176bb2ae1db88135301ca27d7 |
|
BLAKE2b-256 | b94b275b0d093702e2a2bdd98d0db3557c3e63ea08bc733235dce8a7149ade3f |