Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jelmerro/tppr
Tiny Portable Python Runner for hassle-free venv and dep handling
https://github.com/jelmerro/tppr
bash pip python python-venv virtual-env
Last synced: 22 days ago
JSON representation
Tiny Portable Python Runner for hassle-free venv and dep handling
- Host: GitHub
- URL: https://github.com/jelmerro/tppr
- Owner: Jelmerro
- License: mit
- Created: 2024-12-02T21:34:01.000Z (25 days ago)
- Default Branch: master
- Last Pushed: 2024-12-02T23:18:31.000Z (25 days ago)
- Last Synced: 2024-12-03T00:23:18.835Z (25 days ago)
- Topics: bash, pip, python, python-venv, virtual-env
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
tppr
====Tiny Portable Python Runner for hassle-free venv and dep handling
## About
This is a tiny command-line bash script to create and update venv versions.
It will check if an existing venv (virtual env) is present and use that to run the Python script.
If there is no venv yet, or the Python version is not up to date in the venv,
a new venv will be created in place of the old one.
After that the requirements file and the base directory are installed to the venv.
Finally, the Python script provided is ran with the venv activated.## Usage
Download and store the `tppr` bash script anywhere in your PATH,
for example, you could run this command to put in in `~/.local/bin`:```bash
curl -L https://raw.githubusercontent.com/Jelmerro/tppr/refs/heads/master/tppr -o ~/.local/bin/tppr
chmod +x ~/.local/bin/tppr
```Once installed, simply run `tppr` with a Python script as an argument.
This will install Python and all the deps inside a venv and run the script.
With `tppr ~/projects/example/file.py ` you can pass all args to the Python script.
You can also supply options to tppr if you include them before the filename,
please see `tppr -h` for help, advanced usage and additional options.## License
tppr was made by [Jelmer van Arnhem](https://github.com/Jelmerro) and is MIT licensed, see LICENSE for details.