https://github.com/offerrall/pyscripthandler
https://github.com/offerrall/pyscripthandler
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/offerrall/pyscripthandler
- Owner: offerrall
- Created: 2023-08-26T15:51:29.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-26T18:37:57.000Z (almost 3 years ago)
- Last Synced: 2025-01-26T03:15:22.512Z (over 1 year ago)
- Language: Python
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Description
PyScriptHandler is an ultra-lightweight CLI tool designed to make managing Python scripts as simple and straightforward as possible.
The idea is that you can have a list of scripts that work on Windows, macOS, and Linux, and you can run them from anywhere on your system.
### Key Features:
- **Simplicity**: With fewer than 200 lines of code, PyScriptHandler is extremely easy to understand and modify to suit your needs.
- **Portability**: The aim is to unify the way Python scripts are run across any operating system.
- **Zero Configuration**: There are no configuration files to edit, no dependencies to install. Simply install the script and start using it.
- **Simple Commands**: The commands are simple and easy to remember. No need to look up documentation every time you want to run a script.
- **Alias Friendly**: You can create aliases for commands and run your scripts with a single command.
### Why Use PyScriptHandler?
This project was born out of my own need for a simple tool where I could store and run my Python scripts, which was as minimalist as possible and required no additional configuration. If you find yourself in a similar situation, then PyScriptHandler is for you.
### Installation
PyScriptHandler can be easily installed by cloning the repository and running the installation script.
```bash
git clone https://github.com/offerrall/PyScriptHandler.git
cd PyScriptHandler
pip install .
```
### Comandos
- `psh -h`: Shows the help message.
- `psh `: Runs the specified script.
- `psh list`: Lists all the scripts in the list.
- `psh add `: Adds a new script to the list.
- `psh remove `: Removes a script from the list.
- `psh find `: Searches for a script in the list.
- `psh pwd`: Shows the current script directory path.
### Examples
```bash
# Runs a script
psh hello_world
# Shows the list of scripts
psh list
# Adds a new script
psh add /path/to/script.py
# Removes a script
psh remove hello_world
# Finds a script
psh find hello_world
# Shows the current script directory path
psh pwd
```
### Licencia
[MIT](https://choosealicense.com/licenses/mit/)