A Python API Client to consume the API of the Brazilian National Institute of Meteorology - INMET
Project description
InmetPy - A Python API Client for the Brazilian National Institute of Meteorology - INMet
:warning: Package development in progress!
This is an unofficial (from INMET) python package for the INMET API.
- Get all stations over Brazil (Manual and Automatic);
- Get historical data for each station;
- Search the stations near by at given location;
Install
Install using pip
pip install inmetpy
Methods
- get_stations: Get a list of details of all stations available at INMET API.
- get_all_stations: get data from all stations at given date;
- get_data_station: get data for a list of stations for a given date interval;
- search_station_by_state: search for all stations available for a given state(s);
- search_station_by_coords: search the closest n stations available for a given coordinate (latitude, longitude);
Comand Line Library Usage
# get data from all inmet station after a selected date
inmetpy get_all_stations 2021-09-01
# get data from a station or a list of stations
inmetpy get_data_station 2021-09-01 2021-09-10 '[A652,A667]'
Basic usage
# import the library
from inmetpy.stations import InmetStation
inmet = InmetStation()
# list all inmet stations available
stations = inmet.get_stations() # get details of all stations available
auto_stations = inmet.get_stations("A") # details of all automatic stations
manual_stations = inmet.get_stations("M") # details of all manual stations
# get data from all inmet station after a selected date
inmet.get_all_stations(date) # date in format YYYY-MM-DD"
# get data from a station or a list of stations
inmet.get_data_station(start_date, end_date, by, station_id) # stations must be a list of strings with the "CD_STATION" (ID) of the stations desired.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
inmetpy-0.2.1.tar.gz
(10.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
inmetpy-0.2.1-py3-none-any.whl
(10.2 kB
view details)
File details
Details for the file inmetpy-0.2.1.tar.gz.
File metadata
- Download URL: inmetpy-0.2.1.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da4d449476f2ceb69845de97243a0d4f6cd5e4c47cc0b1f552ac5a84c4e9d99f
|
|
| MD5 |
58fa541bf8e7bd527e42e651c1706302
|
|
| BLAKE2b-256 |
5cc2b57cf73c5df7c5d152b08de2004b57fe3c2285cffe4ba61f01f59b52dd9d
|
File details
Details for the file inmetpy-0.2.1-py3-none-any.whl.
File metadata
- Download URL: inmetpy-0.2.1-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7300523a14713b20e189f3cea005398c1464f077044312c92472ad9677ebbb8
|
|
| MD5 |
7fa98ad8c984d158ebb731a06853b743
|
|
| BLAKE2b-256 |
b12abaae706e19b2986020434a48e5fcbdb92644e7a26e0fb01329cabdb5d14a
|