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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycodepack-1.0.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file pycodepack-1.0.2.tar.gz.

File metadata

  • Download URL: pycodepack-1.0.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.6

File hashes

Hashes for pycodepack-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ae0c9aae482451492885bdc0e94ec6f610c83d1af27cfc1d477918ac3d3bc9dd
MD5 d815bb1896f72db6d8491aa67844a596
BLAKE2b-256 704af2176e52d0a4c1d2588fa6efbbd4a2bccfa264283d55d37cb226230c13ac

See more details on using hashes here.

File details

Details for the file pycodepack-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pycodepack-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.6

File hashes

Hashes for pycodepack-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 80c1c89baf88aa97948bf5d4ffbb325ef4e10d5ebcffa8275218a68e8496750c
MD5 19142e97ecdacfdee708e3e5c02f3c9f
BLAKE2b-256 23b663e4bc5e83f32a5cb9aea6b72d7fa3fafb3e41c36dfad6934996acb8aa84

See more details on using hashes here.

Supported by

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