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
Metadata
Release files for helia-etat-reseaux 0.6.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| helia_etat_reseaux-0.6.10.tar.gz | 221.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| helia_etat_reseaux-0.6.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 243.1 kB
Release files / helia_etat_reseaux-0.6.10.tar.gz
| Download URL | helia_etat_reseaux-0.6.10.tar.gz |
|---|---|
| Size | 221.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6fe8cbad07d54b9cc92a84a1a54acca505b2f38ed76b8ef64256d3f1ea11e0d6
|
|
BLAKE2b-256 checksum How to use checksums |
f5186aade109355c82f8c67fe178796db2697b968743da0f922a08ad4be04b72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","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}
|
Release files / helia_etat_reseaux-0.6.10-py3-none-any.whl
| Download URL | helia_etat_reseaux-0.6.10-py3-none-any.whl |
|---|---|
| Size | 22.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4196581b2b6867b07ec5b94c77939857f242fa1d5bfe35ca515d8221dcc7e00e
|
|
BLAKE2b-256 checksum How to use checksums |
931cf14384ea3db75fa319f4c1d482e101f555656b7ac743474d0e395b50ebc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","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}
|