Skip to main content

jourtempo

Couleur Tempo EDF d'aujourd'hui et de demain, jours EJP et jours de pointe PP, en Python, sans clé ni compte. Les données viennent de l'API gratuite de Jour Tempo (couleurs RTE, calendrier EJP d'EDF, signaux PP de RTE).

pip install jourtempo
import jourtempo

jourtempo.couleur_aujourdhui()     # 'bleu', 'blanc' ou 'rouge'
jourtempo.couleur_demain()         # idem, ou 'inconnu' avant l'annonce de RTE (vers 10 h 30)
jourtempo.jours_restants("rouge")  # jours rouges restants dans la saison
jourtempo.ejp_demain()             # True, False, ou None si pas encore publié / hors saison
jourtempo.pp_demain()              # jour de pointe PP demain ?
jourtempo.tempo()                  # réponse complète (calendrier de la saison, compteurs…)
print(jourtempo.attribution())     # mention de source à afficher
  • Aucune dépendance (bibliothèque standard seulement), Python 3.9 et plus.
  • Les réponses restent en mémoire jusqu'à l'heure perime_apres donnée par l'API : la couleur ne change qu'une fois par jour, inutile d'interroger plus souvent.
  • Le jour Tempo va de 6 h à 6 h : avant 6 h, « aujourd'hui » reste la couleur de la veille, comme sur la facture.

Réutilisation des données : gratuite, à condition de citer la source (champ attribution de chaque réponse). Tous les champs sont décrits sur jourtempo.fr/api.

English

Python client for the free, keyless Jour Tempo API: French EDF Tempo tariff colour for today and tomorrow (RTE open data), EJP and PP peak days. pip install jourtempo, then jourtempo.couleur_demain(). No dependencies. Credit the source when you reuse the data.

Licence du code : MIT.

Metadata

Release files for jourtempo 0.1.0

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

Source distribution (sdist)

Source distribution for jourtempo 0.1.0
File Size Uploaded Provenance Actions
jourtempo-0.1.0.tar.gz 5.2 kB Without provenance Details for jourtempo-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jourtempo 0.1.0
File Interpreter ABI Platform Actions
jourtempo-0.1.0-py3-none-any.whl Python 3 none any Details for jourtempo-0.1.0-py3-none-any.whl

Total release size: 9.9 kB

Release files / jourtempo-0.1.0.tar.gz

Download URL jourtempo-0.1.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a655f1bea21665291c47dab671ff08d6b9b8f40ad7f9ebcb24063578c5011875
BLAKE2b-256 checksum
How to use checksums
b2e91d8199d9ae6a83a05836e59402ef317e34b08b2ce722f8c2913cdba3928e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release files / jourtempo-0.1.0-py3-none-any.whl

Download URL jourtempo-0.1.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
228f40000726ededa9ce869eb2d84a910fa290378866d6fc4337c353ec96b5c9
BLAKE2b-256 checksum
How to use checksums
62a82a552d8acb5f0b6067dfc5ba4c2389c66a369dce2b9ab9d10edd8ec8c90b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Security for jourtempo 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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