Skip to main content

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.

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

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.3.tar.gz (217.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

helia_etat_reseaux-0.6.3-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file helia_etat_reseaux-0.6.3.tar.gz.

File metadata

  • Download URL: helia_etat_reseaux-0.6.3.tar.gz
  • Upload date:
  • Size: 217.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","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

Hashes for helia_etat_reseaux-0.6.3.tar.gz
Algorithm Hash digest
SHA256 1fb2d624c3e48519518f3e5b729f3f53f50268f5c9eaa51bdb2369366f1ee249
MD5 be6802c1744d93de08aa0c39cff228e3
BLAKE2b-256 e1700d0afec7a67c31d744d2dca62c29e0a623cdd5e9b0c1ed11b3f059ef12fb

See more details on using hashes here.

File details

Details for the file helia_etat_reseaux-0.6.3-py3-none-any.whl.

File metadata

  • Download URL: helia_etat_reseaux-0.6.3-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","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

Hashes for helia_etat_reseaux-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c4a9c21145ff236a7c799a5f283318c43c7a3d7d06768ad3a6aea6710f2681cb
MD5 a51083bfd1bf828de1ba95b33478fcc7
BLAKE2b-256 01b1fbe2f519e3cb3b6f29e7f902692c07e2700ac2fc0da8b4839ac6224b17ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page