Releases: https://github.com/tomsquest/mediathequeroubaix.py/releases
Source Code: https://github.com/tomsquest/mediathequeroubaix.py
PyPI: https://pypi.org/project/mediathequeroubaix/
MédiathèqueRoubaix.py is a client for the libray of Roubaix, mediathequederoubaix.fr.
Running mediathequeroubaix loans list will:
- Get the list of your loans and their due date
- ...for many cardholders
- and check the next return date for each of your card
Running mediathequeroubaix loans renew will:
- Renew automatically all loans
- ...for many cardholders
- and print the new due date of the loans
With Pipx:
pipx run mediathequederoubaixWith UV:
uvx mediathequederoubaixIf you want to install it globally:
pipx install mediathequeroubaixconfig create makes a sample configuration in $HOME/.config/mediathequederoubaix/config.json and display the content of the file.
The configuration is initialized with a sample but fake user.
mediathequeroubaix config createconfig show displays the current configuration.
mediathequeroubaix config showloans list show the list of loans for the users.
mediathequeroubaix loans listloans renew renew the list of loans for the users and display the new loans.
mediathequeroubaix loans renewI created this project to:
- Learn Functional Programing
- Learn typed and modern Python
- Be able to quickly list and renew my loans (especially when you have many cards)
See CHANGELOG.md
- Clone this repository
- Install UV
- (Optional) if using direnv, create .envrc with:
uv sync
source .venv/bin/activate
- Testing
pytest- Check everything in one go
pre-commit run --all-files- Run the CLI
python src/mediathequeroubaix/main.py- Commit, tag, publish using the release script:
./bin/release.py 1.2.3- Update
CHANGELOG.md - Create a new release on GitHub
- Background and color from PrettySnap
- Python project bootstrapped using Wolt template
- Functional library is Returns from DRY-Python
- Tables look great thanks to Textualize's Rich
- CLI screenshot pimped with ShowCode.app





