Skip to main content

A tiny tool to convert python files to dynamic libraries

Project description

pycodepack

Compile python code to dynamic library using Cython.

Installation

pip install pycodepack

Usage

After installation, there is a runable module called py2dylib. Suppose your code is in /home/code/test_project and run.py is the entrypoint file, you can convert the python files in that folder to dynamic libraries by running

python -m py2dylib --folder /home/code/test_project --ignore run.py

If there is no /home/code/test_project_build here, it will copy the folder and compile the python code in that folder. Otherwise, it will try append _ to the folder until it isn't exist. It's out-of-project building. You can specify --inplace option to build in original folder.

Besides, thepycodepack is running under incremental building mode by default, which means it only builds those files that changed since last building. You can change it by specifying --build_mode option.

Run python -m py2dylib --help for more information.

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

pycodepack-1.0.2.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

pycodepack-1.0.2-py3-none-any.whl (5.1 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