Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Minimal Python Project

Project description


A minimal python project. Features:

  • Create a binary using Pyinstaller
  • GitHub Actions adds binaries to releases
  • Correctly handle data files

Installation Options

1. Build from source (requires Python 3.8+)

Clone this project locally and then run:

pip install .

Or, create a binary, which creates an executable file at ./dist/python-demo:

make binary

2. Download binary from a release

Head over to the releases page and grab a binary. Or, to programmatically fetch the latest release (say, for MacOS):

assetId=$(curl -s $repoUrl/releases/latest \
    | jq '.assets[] | select(.name | contains("Darwin")).id')
curl -sSL -H "Accept: application/octet-stream" \
    $repoUrl/releases/assets/$assetId -o python-demo
chmod +x python-demo


After installing, run either python-demo (if installed from source) or ./python-demo (if installed as a binary).

python-demo --foo bar

The version of this package is: 0.0.9
The data file says: This is some text
The value of foo is: bar

And it has a --version flag:

python-demo --version


Project details

Download files

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

Files for py-demo, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size py_demo-0.0.1-py3-none-any.whl (4.5 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page