An open API service indexing awesome lists of open source software.

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

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
```