CLI Python pour synchroniser les cartes Riftbound depuis la galerie officielle.
Project description
Riftbound Scraper
CLI Python pour synchroniser localement les cartes Riftbound depuis la galerie officielle : extraction source, normalisation métier, persistence SQLite et téléchargement d'assets.
Prérequis
- Python 3.11 ou 3.12
- Accès réseau pour
setsetsync(la suite de tests fonctionne sans site live)
Installation
git clone https://github.com/baobabgit/python-baobab-riftbound-scraper.git
cd python-baobab-riftbound-scraper
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
Vérifier l'installation :
riftbound-scraper --version
riftbound-scraper --help
Usage rapide
# Lister les sets détectés dans la source
riftbound-scraper sets
# Synchroniser un set (ex. UNL)
riftbound-scraper sync --set UNL
# Synchroniser tous les sets
riftbound-scraper sync --all
# Vérifier la cohérence locale (DB + fichiers assets)
riftbound-scraper verify
# Afficher les compteurs locaux
riftbound-scraper stats
Les données sont stockées sous :
data/database/riftbound.db # SQLite
data/assets/ # Images et icônes
Voir docs/007_cli_commands.md pour le détail des commandes et codes de sortie.
Validation locale
pytest
coverage run -m pytest && coverage report
black --check src tests
flake8 src tests
pylint src tests
mypy src tests
python -m bandit -r src
Guide complet : docs/008_validation_commands.md.
Documentation technique
| Document | Contenu |
|---|---|
docs/002_project_structure.md |
Arborescence et couches |
docs/003_source_gallery_extraction.md |
Client source et __NEXT_DATA__ |
docs/004_card_normalization.md |
Normalisation métier |
docs/005_sqlite_persistence.md |
Persistence SQLite |
docs/006_assets_download.md |
Téléchargement et déduplication assets |
docs/007_cli_commands.md |
Commandes CLI |
docs/008_validation_commands.md |
Suite qualité et tests |
docs/009_project_operations.md |
Exploitation, CI et workflow Cursor |
Développement avec Cursor AI
- Choisir un backlog dans
docs/product/003_backlogs_cursor_ai.md - Créer la branche associée (
prompts/...) - Ouvrir le prompt dans
docs/prompts/backlogs/ - Suivre le workflow décrit dans
docs/009_project_operations.md
CI
- CI (
.github/workflows/ci.yml) : qualité, tests et build sur chaque PR / push versmain - Release (
.github/workflows/release.yml) : publication sur tagv*.*.*
Licence
MIT
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 riftbound_scraper-1.0.0.tar.gz.
File metadata
- Download URL: riftbound_scraper-1.0.0.tar.gz
- Upload date:
- Size: 121.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b46d11ab2bc255b9f6f8ab4b8eea977364ce134deb63113d60760c0f0b8ec5b
|
|
| MD5 |
d2a7f4a754e1c886e09d95d00d08df68
|
|
| BLAKE2b-256 |
a44afe2b269b4bbdae44357eb394168d5580e1a94d334a8beaf4bf7df0f64e17
|
Provenance
The following attestation bundles were made for riftbound_scraper-1.0.0.tar.gz:
Publisher:
release.yml on baobabgit/python-baobab-riftbound-scraper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
riftbound_scraper-1.0.0.tar.gz -
Subject digest:
2b46d11ab2bc255b9f6f8ab4b8eea977364ce134deb63113d60760c0f0b8ec5b - Sigstore transparency entry: 1731409720
- Sigstore integration time:
-
Permalink:
baobabgit/python-baobab-riftbound-scraper@cd68736be2735d397990eb5a86f01eb48a855339 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/baobabgit
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@cd68736be2735d397990eb5a86f01eb48a855339 -
Trigger Event:
push
-
Statement type:
File details
Details for the file riftbound_scraper-1.0.0-py3-none-any.whl.
File metadata
- Download URL: riftbound_scraper-1.0.0-py3-none-any.whl
- Upload date:
- Size: 69.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfd9cde2dd075814befe33ae51304ddd8245d4f335b83720987261d4b0f5f6db
|
|
| MD5 |
a2883aa6c373fd0506f00afc4624cbae
|
|
| BLAKE2b-256 |
6e16e26cd81d2b23ea8a462a2a5cdacf4ab701a37a640aa7023687ac2ef57eb4
|
Provenance
The following attestation bundles were made for riftbound_scraper-1.0.0-py3-none-any.whl:
Publisher:
release.yml on baobabgit/python-baobab-riftbound-scraper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
riftbound_scraper-1.0.0-py3-none-any.whl -
Subject digest:
cfd9cde2dd075814befe33ae51304ddd8245d4f335b83720987261d4b0f5f6db - Sigstore transparency entry: 1731409740
- Sigstore integration time:
-
Permalink:
baobabgit/python-baobab-riftbound-scraper@cd68736be2735d397990eb5a86f01eb48a855339 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/baobabgit
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@cd68736be2735d397990eb5a86f01eb48a855339 -
Trigger Event:
push
-
Statement type: