Scraper des maintenances programmées Helia NC (helia.nc/etat-du-reseau)
Project description
helia-etat-reseaux
SDK Python pour scraper les maintenances programmées du réseau télécoms Helia / OPT-NC depuis helia.nc/etat-du-reseau.
Installation
pip install helia-etat-reseaux
Usage — SDK
from helia_etat_reseaux import scrape_maintenances
maintenances = scrape_maintenances()
for m in maintenances:
print(m.timestamp_debut, m.communes_concernees, m.impact)
Chaque objet Maintenance expose :
| Champ | Type | Description |
|---|---|---|
id |
str |
Identifiant SHA256 stable (8 hex) |
timestamp_debut / timestamp_fin |
str ISO 8601 |
Fenêtre de maintenance (UTC+11) |
communes_concernees |
list[str] |
Communes officielles NC affectées |
provinces_concernees |
list[Province] |
Provinces dérivées automatiquement |
services |
list[Service] |
Services télécoms impactés |
impact |
Impact |
Sévérité estimée de la coupure |
est_toute_nc |
bool |
True si toute la NC est concernée |
Usage — CLI
helia-etat-reseaux # écrit les maintenances dans messages/*.json
Structure
helia_etat_reseaux/
├── models.py # Pydantic : Maintenance, Service, Impact, Province
├── scraper.py # Scraping + parsing HTML helia.nc
├── geo.py # Recherche géographique par rayon (communes NC)
├── db.py # Persistance SQLite (optionnelle)
├── mcp.py # Serveur MCP (intégration LLM)
└── scheduler.py # Scheduler APScheduler (scrape périodique)
api/ # API FastAPI (mode conteneur)
webapp/ # Frontend Astro (calendrier + RSS)
CI
- Sur chaque PR : lint Ruff + tests unitaires (couverture ≥ 70%)
- Toutes les 6h : tests d'intégration contre helia.nc — issue GitHub auto-créée en cas d'échec
- Sur chaque tag
v*: release GitHub générée automatiquement depuis les PRs mergées
Licence
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
helia_etat_reseaux-0.6.0.tar.gz
(216.0 kB
view details)
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 helia_etat_reseaux-0.6.0.tar.gz.
File metadata
- Download URL: helia_etat_reseaux-0.6.0.tar.gz
- Upload date:
- Size: 216.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe67b3b4163edc72b098a258b59853f501e91bc2037a661d64d859a75e1ca5fe
|
|
| MD5 |
828cd4b21ac0d5ad1bf8181d0f13c04a
|
|
| BLAKE2b-256 |
eb57978cd27a2430afb2d8ed77041f4549f32af59773160c4d4d0fbcd3ab03e7
|
File details
Details for the file helia_etat_reseaux-0.6.0-py3-none-any.whl.
File metadata
- Download URL: helia_etat_reseaux-0.6.0-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34d0b011f82d53153863d310279752daa749861ef78e043dd5210e0285ece598
|
|
| MD5 |
88bafffc3a68a207e4801a1733ae94a0
|
|
| BLAKE2b-256 |
1725fe72cc68017311945ebd949a8d9a63b8a703d4a1c3dde081c52f1878113f
|