Skip to main content

Météo-France Python API

Client Python pour l’API Météo-France. | Python client for Météo-France API.

PyPI GitHub Release Python Version License

Read the documentation at https://meteofrance-api.readthedocs.io/ Tests Codecov GitHub Activity

pre-commit Black

You will find English README content in the section For English speaking users.

Vous trouverez le contenu francophone du README dans la section Pour les francophones.

Pour les francophones

Description

Ce package Python permet de gérer la communication avec l’API non publique de Météo-France utilisée par les applications mobiles officielles.

Le client permet:

  • Rechercher des lieux de prévisions.

  • Accéder aux prévisions météorologiques horaires ou quotidiennes.

  • Accéder aux prévisions de pluie dans l’heure quand disponibles.

  • Accéder aux alertes météo pour chaque département français et d’Andorre. Deux bulletins sont disponibles : un synthétique et un second avec l’évolution des alertes pour les prochaines 24 heures (exemple ici).

Ce package a été développé avec l’intention d’être utilisé par Home-Assistant mais il peut être utilisé dans d’autres contextes.

Installation

Pour utiliser le module Python meteofrance vous devez en premier installer le package en utilisant pip depuis PyPI:

$ pip install meteofrance-api

Vous pouvez trouver un exemple d’usage dans un module Python en regardant le test d’intégration.

Contribuer

Les contributions sont les bienvenues. Veuillez consulter les bonnes pratiques détaillées dans CONTRIBUTING.rst.

For English speaking users

Description

This Python package manages the communication with the private Météo-France API used by the official mobile applications.

The client allows:

  • Search a forecast location.

  • Fetch daily or hourly weather forecast.

  • Fetch rain forecast within the next hour if available.

  • Fetch the weather alerts or phenomenons for each French department or Andorre. Two bulletin are available: one basic and an other advanced with the timelaps evolution for the next 24 hours (example here).

This package have been developed to be used with Home-Assistant but it can be used in other contexts.

Installation

To use the meteofrance Python module, you have to install this package first via pip from PyPI:

$ pip install meteofrance-api

You will find an example ot usage in a Python program in the integration test.

Contributing

Contributions are welcomed. Please check the guidelines in CONTRIBUTING.rst.

Credits

This project was generated from @cjolowicz’s Hypermodern Python Cookiecutter template.

Metadata

Release files for meteofrance-api 1.5.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 meteofrance-api 1.5.0
File Size Uploaded Provenance Actions
meteofrance_api-1.5.0.tar.gz 17.4 kB Without provenance Details for meteofrance_api-1.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for meteofrance-api 1.5.0
File Interpreter ABI Platform Actions
meteofrance_api-1.5.0-py3-none-any.whl Python 3 none any Details for meteofrance_api-1.5.0-py3-none-any.whl

Total release size: 39.1 kB

Release files / meteofrance_api-1.5.0.tar.gz

Download URL meteofrance_api-1.5.0.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
cf8bc5a1fd2ca071b2dbd737eee15504397f1476bbf58758ae986e0e16574f39
BLAKE2b-256 checksum
How to use checksums
2d945a62ed0fb8b51edbfa75226735fd5b1d460ad1977c7b13d954683eeb0417
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / meteofrance_api-1.5.0-py3-none-any.whl

Download URL meteofrance_api-1.5.0-py3-none-any.whl
Size 21.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ebbe98e0b1f61fc367d1e8462a4b5ab98eed9b71954fcc0e2a5f856a94475a63
BLAKE2b-256 checksum
How to use checksums
ccd634771feea5707018fefbfd8961fc104fdb0aa46fa62c00712494a812d2f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for meteofrance-api 1.5.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.

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