Small bits of code that do useful things.
- Python 99.7%
- Shell 0.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| cronan | ||
| geolocation | ||
| webhook | ||
| with_env | ||
| .gitignore | ||
| .isort.cfg | ||
| .python-version | ||
| .ruff.toml | ||
| format.sh | ||
| LICENSE | ||
| local-requirements.txt | ||
| README.md | ||
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