Skip to main content

A CLI tool for compiling python

Project description

pycompile

"""                                        _ _
    _ __  _   _  ___ ___  _ __ ___  _ __ (_) | ___
   | '_ \| | | |/ __/ _ \| '_ ` _ \| '_ \| | |/ _ \
   | |_) | |_| | (_| (_) | | | | | | |_) | | |  __/
   | .__/ \__, |\___\___/|_| |_| |_| .__/|_|_|\___|
   |_|    |___/                    |_|
   
"""

A CLI tool for compiling python source code using Cython or Nuitka.

Table of contents

  1. Local-development
  2. Usage

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.

asciicast

Benchmark sample examples

For running a benchmark on the examples use the following command:

pycompile -b 

asciicast

PyPI - Implementation

Project details


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)

Uploaded Source

Built Distribution

pycompile-0.1.4-py3-none-any.whl (12.9 kB view hashes)

Uploaded Python 3

Supported by

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