Python CLI for the library of Roubaix (Médiathèque Roubaix)
Releases: https://github.com/tomsquest/mediathequeroubaix.py/releases
Source Code: https://github.com/tomsquest/mediathequeroubaix.py
PyPI: https://pypi.org/project/mediathequeroubaix/
Table of Contents
Features
MédiathèqueRoubaix.py is a client for the libray of Roubaix, mediathequederoubaix.fr.
Display your loans
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
Renew your loans
Running mediathequeroubaix loans renew will:
- Renew automatically all loans
- ...for many cardholders
- and print the new due date of the loans
Usage
Running
With Pipx:
pipx run mediathequederoubaix
With UV:
uvx mediathequederoubaix
If you want to install it globally:
pipx install mediathequeroubaix
Create an initial, sample configuration
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
Display the current configuration
config show displays the current configuration.
mediathequeroubaix config show
List the loans
loans list show the list of loans for the users.
mediathequeroubaix loans list
Renew the loans
loans renew renew the list of loans for the users and display the new loans.
mediathequeroubaix loans renew
Why I am doing this
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)
Changelog
See CHANGELOG.md
Development
- 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
Releasing
- Commit, tag, publish using the release script:
./bin/release.py 1.2.3
- Update
CHANGELOG.md - Create a new release on GitHub
Credits
- 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
Metadata
Release files for mediathequeroubaix 1.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mediathequeroubaix-1.6.1.tar.gz | 8.1 kB | Without provenance | Details for mediathequeroubaix-1.6.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mediathequeroubaix-1.6.1-py3-none-any.whl | Python 3 | none | any | Details for mediathequeroubaix-1.6.1-py3-none-any.whl |
Total release size: 25.0 kB
Release files / mediathequeroubaix-1.6.1.tar.gz
| Download URL | mediathequeroubaix-1.6.1.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eaf85a7d45231699f0c91f899f1d35e9820480222765de4bc1fcd140f2a9711e
|
|
BLAKE2b-256 checksum How to use checksums |
ee01b0aa6e0d499d7be44d2aef1c5e0e70edd9de46e41dbdd8041e432276e6ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.21
|
Release files / mediathequeroubaix-1.6.1-py3-none-any.whl
| Download URL | mediathequeroubaix-1.6.1-py3-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
969143f19371f1bed8ca36b29e26dac6d072d7312aaf7e21cf72715083251bc8
|
|
BLAKE2b-256 checksum How to use checksums |
a33381c60237015bb855bffe0846c9ab36addfc5f14f2832648cf3fb9780e034
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.21
|
Security for mediathequeroubaix 1.6.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.