Skip to main content

A cli tool to package application with Cython & PyInstaller.

Project description

CyInstaller is a lightweight CLI tools to compile and package your application to a single executable file with related distribution files.

CyInstaller use Cython to compile application’s source codes, then package files with PyInstaller.

Installing

Install and update using pip:

pip install -U CyInstaller

Quickstart

Add a setup.yml in your project, then execute the CyInstaller cli command:

CyInstaller --file setup.yml

CyInstaller default use setup.yml as the config file. If use another file, just execute the CyInstaller command with it as a parameter.

CyInstaller --file 'path/to/the/file'

Configuration

A yaml configuration may looks like:

setup:
  app: CyInstallerApp
  root: .
  modules:
    - base: Common
      package: common
      package_from_base: false
      compiles:
        - ...
      packages:
        - ...
      binaries:
        - ...
      datas:
        - ...
      relates:
    - base: Backend
      ...
  compiles:
      - ...
  packages:
      - ...
  datas:
    - ...
  relates:
    - ...
  cython_binaries: true/false
  hiddenimports:
    - ...
  auto_hiddenimports: true/false
  entrypoint: app.py

  stage:
    path: _build
    debug: true/false
    cython:
      path: cython
      path_tmp: compile
      options:
        ...
    pyinstaller:
      path: package
      template: setup.spec

  dist: target

Detail for each options see the configuration guidelines.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cyinstaller-1.2.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

cyinstaller-1.2.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file cyinstaller-1.2.0.tar.gz.

File metadata

  • Download URL: cyinstaller-1.2.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.8 Darwin/23.3.0

File hashes

Hashes for cyinstaller-1.2.0.tar.gz
Algorithm Hash digest
SHA256 894b39cf2b109ae0b8714e8590aed82e1bf16c10ee386517d271e045090daf5c
MD5 92fa68233d46efbfe0363d04f07569fa
BLAKE2b-256 506eff4b4a3078bc0d8d24a61dc35734358502f0d97da14edc97d2a87d3cf155

See more details on using hashes here.

File details

Details for the file cyinstaller-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: cyinstaller-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.8 Darwin/23.3.0

File hashes

Hashes for cyinstaller-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c5bf547e95cac7f207a76560274783473f9a609aefff46abdbf5d36b005d056e
MD5 bb62f47024a7d77e4531e629e279e537
BLAKE2b-256 9764838a6698daffface8dd5e2c0e214c53774edc93787b3f28bebfc97dbb4d3

See more details on using hashes here.

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