An unofficial API for the Météociel website
Project description
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 by AROME) (France only)
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
To compile 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.
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
Built Distribution
File details
Details for the file meteociel_api-1.1.0.tar.gz
.
File metadata
- Download URL: meteociel_api-1.1.0.tar.gz
- Upload date:
- Size: 30.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2e480a1b824ff726b56e60c2bad690d8f7397e79831aab62460b073c249e150 |
|
MD5 | f9337854a4552a195494b422a98bee20 |
|
BLAKE2b-256 | c27e9ca27b60d8c7e0774d684cce6eb091cf7ffafeddb4bfaa7d6424be7f869d |
Provenance
File details
Details for the file meteociel_api-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: meteociel_api-1.1.0-py3-none-any.whl
- Upload date:
- Size: 33.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 943fe4a3c9fe8ad2ba66dbe7a57495c75afad3f1b7dbc8680893865797884118 |
|
MD5 | 13b4d2955f03c4f9d9bf0765b2c4cb6d |
|
BLAKE2b-256 | 83b2c9f710719cf1e84fa1f0aea8299b44818e0ecf76a694bca76c50cbbf7445 |