Skip to main content

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.

CI Scraper License: LGPL v3

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

LGPL-3.0-or-later

Metadata

Release files for helia-etat-reseaux 0.6.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for helia-etat-reseaux 0.6.9
File Size Uploaded
helia_etat_reseaux-0.6.9.tar.gz 220.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for helia-etat-reseaux 0.6.9
File Interpreter ABI Platform
helia_etat_reseaux-0.6.9-py3-none-any.whl Python 3 none any Details

Total release size: 242.6 kB

Release files / helia_etat_reseaux-0.6.9.tar.gz

Download URL helia_etat_reseaux-0.6.9.tar.gz
Size 220.7 kB
Tags Source
SHA-256 checksum
How to use checksums
983dbbcde83e0a61d0fd616c90dd15d46c3bc1f2e1e11c57626836a8e09d60ae
BLAKE2b-256 checksum
How to use checksums
3b02624e17392ca041b472dc4fa09b6d8c569bf32057aaee5481ac7fa7a581a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","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.9-py3-none-any.whl

Download URL helia_etat_reseaux-0.6.9-py3-none-any.whl
Size 21.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b386a75b66fce9ee922d3989d7bbd9fa44c5b14eab4c0d26a3e7ae98bd45ae2
BLAKE2b-256 checksum
How to use checksums
9d8f3c097739b64dd8bcdac3f2769055029f0ae38f735ecc3ed8cd5a4bf3cbb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","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 history Release notifications | RSS feed

0.6.10

2 release files

This release

0.6.9 This release

2 release files

0.6.8

2 release files

0.6.7

2 release files

0.6.6

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page