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.
Loans
- Display a list of your loans
- ...for many card holders at once (family) (TODO)
- Quickly get the next return date for all you cards (TODO)
Usage
Very basically for now, to list the loans of a single user defined in environment variable
$ export USERNAME="X001002003"
$ export PASSWORD="password00"
$ python src/mediathequeroubaix/main.py
Getting loans of user: X001002003
Number of loans: 2
- [ 1/02] Machine learning avec Scikit-learn, due on: 2022-12-04, NOT renewable
- [ 2/02] Programmation Python avancée, due on: 2022-12-04, renewable
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
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
Testing
pytest
Pre-commit
pre-commit install
Or if you want to run all checks for all files:
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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mediathequeroubaix-0.2.0.tar.gz.
File metadata
- Download URL: mediathequeroubaix-0.2.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.8 Linux/5.15.0-1022-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8af6da67e100ada5690dc558000a7c33e45c8328052e58819155de71950715b7
|
|
| MD5 |
3cf19df82256eb54e862044b269ea82a
|
|
| BLAKE2b-256 |
4bd084cc34b9039edd1e5dad8fd973cd2be887ec6aaf68a226412b76f71b0246
|
File details
Details for the file mediathequeroubaix-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mediathequeroubaix-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.8 Linux/5.15.0-1022-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e645258ed6c563d96979c9171377e5ed9d13faabea8633a22f7790b5eb8e23fc
|
|
| MD5 |
5b78650c01be7a7b3aa9b53020e02d39
|
|
| BLAKE2b-256 |
111cb3b2ad0a255fd93c667ebc20313d754fda205d478591681d238343f59f77
|