Client for the library of Roubaix (Médiathèque Roubaix)
Project description
Python CLI for the library of Roubaix (Médiathèque Roubaix)
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.
Get the loans
- Display a list of your loans and their due date
- ...for many cardholders at once
- and check the next return date for all you cards (TODO)
Usage
Install
pip install mediathequederoubaix
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
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
Installation
pip install mediathequeroubaix
Development
- Clone this repository
- Requirements:
- Poetry
- Python 3.10
- Create a virtual environment and install the dependencies
poetry install
- Activate the virtual environment
poetry shell
- Pre-commit
pre-commit install
- Testing
pytest
- Check everything
pre-commit run --all-files
Releasing
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.
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mediathequeroubaix-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c78b80c76843fa12f4ad50d8d68368156a4c3adf91ece9ef1346cedcb2508e71 |
|
MD5 | f87b07742be1193466e3ab4d42e65a4a |
|
BLAKE2b-256 | 9a3cd6bf16d91c380c87aa8a634dcf385022553be9e012adb32d7c5492f9c997 |