Météociel API
Description
Météociel API is a small Python API for the website Météociel. This API allows to dump data from:
-
all the stations known by Météociel (all around the world)
-
upper air sounding (observations) (Western Europe only)
-
upper air sounding (simulated) (France only)
-
forecasts (mainly GFS, but others models are available)
A full documentation is available on ReadTheDocs.
Installation
You can install this package from PyPI: pip install meteociel-api.
You can install also install it from sources in a virtual environment by executing these commands in a terminal:
$ git clone https://github.com/Meteo-API/meteociel_api.git
$ cd meteociel_api
$ python -m venv venv
$ source venv/bin/activate
$ pip install -e .
Under windows please enter $ venv\Scripts\activate instead of $ source venv/bin/activate.
Basic use
The installation provides two API for Météociel:
-
a first one in the terminal (CLI)
-
a second one as a Python package
To use the CLI, you should start by creating a database for cities by entering: meteociel generate-database. Once this step is done, you're free to run commands to dump data from Météociel. Help can be display by running: meteociel --help or meteociel [COMMAND NAME] --help.
In Python script, you have to start by creating the database too:
from meteociel.cities import generate_database
generate_database()
Then you are free to dump data with the modules: meteociel.stations and meteociel.soundings.
Compiling documentation
The compiled documentation can be found on ReadTheDocs.
You can also locally compile the documentation. You should have make installed on your computer. Then you can install the dependancies and compile:
$ cd meteociel_api/docs
$ pip install -r requirements.txt
$ make html
You can find the compiled html documentation in meteociel_api/docs/_build/html/index.html
License
This code is provided under the GNU General Public License v3.0 (GPLv3).
Please refer to LICENSE file for further informations.
Metadata
Release files for meteociel-api 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| meteociel_api-1.2.0.tar.gz | 31.5 kB | Without provenance | Details for meteociel_api-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| meteociel_api-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for meteociel_api-1.2.0-py3-none-any.whl |
Total release size: 65.8 kB
Release files / meteociel_api-1.2.0.tar.gz
| Download URL | meteociel_api-1.2.0.tar.gz |
|---|---|
| Size | 31.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
637b1eefe0d38ef113a8528bb81979ba8282f98748fac165eba10abb4f30cb8e
|
|
BLAKE2b-256 checksum How to use checksums |
7f33d15026f150d4a97414c2a22f67f055111c4cc76de0c13aa1067857d88337
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / meteociel_api-1.2.0-py3-none-any.whl
| Download URL | meteociel_api-1.2.0-py3-none-any.whl |
|---|---|
| Size | 34.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9a458e1f30ed80d49c881ef1f3927dbe2443edff233ca80cabf83127c025f661
|
|
BLAKE2b-256 checksum How to use checksums |
95f8b94c18a7f1fd5edbcc9639e533c7699f595706cb74c9c5f10f73d09e8add
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for meteociel-api 1.2.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.