https://github.com/simonb97/mos
[M]y [O]pen [S]cripts: a collection of python scripts to be run with uv anywhere, fast, easily
https://github.com/simonb97/mos
python scripts uv
Last synced: 6 months ago
JSON representation
[M]y [O]pen [S]cripts: a collection of python scripts to be run with uv anywhere, fast, easily
- Host: GitHub
- URL: https://github.com/simonb97/mos
- Owner: SimonB97
- License: mit
- Created: 2025-01-08T15:48:52.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-04-15T16:28:35.000Z (6 months ago)
- Last Synced: 2025-04-23T07:15:50.420Z (6 months ago)
- Topics: python, scripts, uv
- Language: Python
- Homepage:
- Size: 84 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# My Open Scripts
This is a collection of (mainly Python-) scripts that I have written (or modified) for a number of different tasks. I have made them available here in the hope that they may be useful to others.
These scripts are designed to be run from the command line with minimal friction and in multiple environments.
This is why the Python-scripts include special [inline script metadata](https://peps.python.org/pep-0723/) which allow the **awesome** [uv](https://docs.astral.sh/uv/) Python package manager to run them instantly - that is, without the need to install any dependencies manually first because `uv` will take care of that (by installing them **very fast** in a temporary environment). (Inspired by Simon Willison's [blog post](https://simonwillison.net/2024/Dec/19/one-shot-python-tools/))
## How To Use
### Python scripts
1. Install `uv` by following their [Instructions](https://github.com/astral-sh/uv?tab=readme-ov-file#installation)
2. Run the script:
```bash
# a) running a script directly (from this repository, without downloading it first)
uv run https://raw.githubusercontent.com/SimonB97/MOS/main/# b) running a script after downloading it
uv run# c) or using pip
pip install
python
```Replace `` with the path to the script you want to run, and `` with the arguments you want to pass to the script.
**Example:**
Running the [Audio Converter](https://github.com/SimonB97/my-open-scripts/tree/main/ConvertAudioToMp3):
```bash
uv run https://raw.githubusercontent.com/SimonB97/MOS/main/ConvertAudioToMp3/mp3.py input_folder -o output_folder
```