Skip to main content

Make runnable apps from your python scripts!

Project description

py-to-win-app

Make runnable apps from your python scripts!

TODO: description

Installation

Install as dev dependency:

poetry add --dev py-to-win-app

Or using pip:

pip install py-to-win-app

Usage

  1. Make requirements.txt file:

    pip freeze > requirements.txt

    Using poetry:

    poetry export -f requirements.txt -o requirements.txt --without-hashes

  2. In root directory of your project create file build.py with following content:

    from py_to_win_app import Project
    
    project = Project(
        input_dir="my_project",  # directory where your source files are
        main_file="main.py"
    )
    
    project.build(python_version="3.9.7")
    project.make_dist()
    
  3. Run build.py:

    python build.py

Documentation

Examples

  1. Clone this repo:

    git clone https://github.com/ruslan-rv-ua/py2winapp

  2. Execute any of example-*.py:

    python example-flask-desktop.py
    

    You can find runnable windows application in build/flask-desktop directory. Distribution flask-desktop.zip

More examples:

  • telecode — desktop wxPython application

Credits

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

py-to-win-app-0.0.2.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

py_to_win_app-0.0.2-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file py-to-win-app-0.0.2.tar.gz.

File metadata

  • Download URL: py-to-win-app-0.0.2.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.7 Windows/10

File hashes

Hashes for py-to-win-app-0.0.2.tar.gz
Algorithm Hash digest
SHA256 da904c8f74e30adfb67cebcb030de62207798a5f8efa8b81508fb1809c2827fe
MD5 9c2e374d91f9f91e23408c7a848bff0a
BLAKE2b-256 6f4da08cf9d1f32721d32881cb2ef281dbf61fd2845e2b653e383230bd2c1d0f

See more details on using hashes here.

File details

Details for the file py_to_win_app-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: py_to_win_app-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.7 Windows/10

File hashes

Hashes for py_to_win_app-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 96ca719bb25a4423c7bb6e54d2c096d68b2904c23cc5fe5095ffeb71e6916d71
MD5 92c38734c1064b765b8203e10ec361b4
BLAKE2b-256 17b1b94bc5679066f1b1fceeb15a50bdfc13ef52fbbf535dc240f2b948ad087f

See more details on using hashes here.

Supported by

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