/simplest-python-package

The simplest Python package that could do something.

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

This is just a simple example of a setup.py that will work (assuming python3.4+, not legacy python)

You can clone this repository:

git clone https://github.com/waynew/simplest-python-package.git

Then create a new venv and activate it:

cd simplest-python-package
python -m venv simple
source simple/bin/activate

Now install this package in editable mode:

python -m pip install -e .

Now you can run the package from anywhere using either

myproj

Or

python -m myproj

Of course, this assumes that you have ~/.local/bin on your PATH. Unless you're not on Linux, in which case Python put it somewhere else, but I couldn't tell you for sure.

Feel free to use this project as a starting point for your Python packages - just edit the setup.py, README, and LICENSE files to be useful for whatever your purposes are.