Releases: https:/tomsquest/mediathequeroubaix.py/releases
Source Code: https:/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
pip install mediathequederoubaix
config 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 create
config show
displays the current configuration.
mediathequeroubaix config show
loans list
show the list of loans for the users.
mediathequeroubaix loans list
loans renew
renew the list of loans for the users and display the new loans.
mediathequeroubaix loans renew
I 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
pip install mediathequeroubaix
- Clone this repository
- Requirements:
- Poetry
- Python 3.10
- Create a virtual environment and install the dependencies
poetry install
- Activate the virtual environment
poetry shell
- Install Pre-commit
pre-commit install
- Test
pytest
- Check everything in one go
pre-commit run --all-files
Trigger the Draft release workflow (press Run workflow). This will update the changelog & version and create a GitHub release which is in Draft state.
Find the draft release from the GitHub releases and publish it. When a release is published, it'll trigger release workflow which creates PyPI release.
- 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