Watch
1
0
Fork
You've already forked python-scripts
0
Small bits of code that do useful things.
  • Python 99.7%
  • Shell 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-06-11 11:03:14 +10:00
cronan don't need a cron schedule for logrotate 2026-06-11 11:03:14 +10:00
geolocation top level args break the tests 2026-06-10 10:43:48 +10:00
webhook don't need a cron schedule for logrotate 2026-06-11 11:03:14 +10:00
with_env this can be the same reference 2026-04-03 10:09:01 +11:00
.gitignore initial commit 2026-04-01 10:48:22 +11:00
.isort.cfg allow each sub-project to specify its own requirements 2026-04-01 21:54:35 +11:00
.python-version initial commit 2026-04-01 10:48:22 +11:00
.ruff.toml allow each sub-project to specify its own requirements 2026-04-01 21:54:35 +11:00
format.sh allow each sub-project to specify its own requirements 2026-04-01 21:54:35 +11:00
LICENSE initial commit 2026-04-01 10:48:22 +11:00
local-requirements.txt allow each sub-project to specify its own requirements 2026-04-01 21:54:35 +11:00
README.md readability fixes 2026-04-02 23:37:22 +11:00

python scripts

Small bits of code that do useful things ... at least for me.

Setup

While this project does not use uv we still recommend that you allow it to manage your python versions and use uv venv to create an appropirate virtual environment:

uv venv --no-project --seed .venv

You can use python itself to create a virtual environment if you already have an appropriate version of python (3.14+) or manage python versions in your own manner:

python3 -m venv .venv

Activate the virtual environment:

source .venv/bin/activate

Subprojects

Some subprojects may have a local-requirements.txt file listing the python libraries that they need. You can add these to your virtual environment like this:

source .venv/bin/activate
# example: cronan requirements
pip install -r cronan/local-requirements.txt

format.sh

The local-requirements.txt at the root of this repository contains libraries necessary to run the format.sh python linter and formatters. Install and test like this:

source .venv/bin/activate
pip install -r local-requirements.txt
./format.sh