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
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
helia_etat_reseaux-0.6.7.tar.gz
(219.6 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.7.tar.gz.
File metadata
- Download URL: helia_etat_reseaux-0.6.7.tar.gz
- Upload date:
- Size: 219.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","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 |
fbccbf92d68b7fee4c73580207c5b960c4b250fdadd4e49530fac5231966a18b
|
|
| MD5 |
0284d1d7d3f219b2a28e785f01b81509
|
|
| BLAKE2b-256 |
06ceb661c1cd4142c4a4e5746bfb3574296600913cac193e47900527572208b9
|
File details
Details for the file helia_etat_reseaux-0.6.7-py3-none-any.whl.
File metadata
- Download URL: helia_etat_reseaux-0.6.7-py3-none-any.whl
- Upload date:
- Size: 21.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","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 |
200467e0df7588441c7b0cb67fed6b4c7d60b7e496a5e39fe621db123a321217
|
|
| MD5 |
a2eb7efa430695d4551f19462beaa040
|
|
| BLAKE2b-256 |
e0935f18ad40c046e02833f2860c7a2443de8d29ae0ab5626a34c1f9df5175ab
|