Skip to main content

PyPI version PyPI - Downloads PyPI - License Build

InmetPy - A Python API Client for the Brazilian National Institute of Meteorology - INMet

⚠️ 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.

Metadata

Release files for inmetpy 0.2.1

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

Source distribution (sdist)

Source distribution for inmetpy 0.2.1
File Size Uploaded Provenance Actions
inmetpy-0.2.1.tar.gz 10.5 kB Without provenance Details for inmetpy-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 20.7 kB

Release files / inmetpy-0.2.1.tar.gz

Download URL inmetpy-0.2.1.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
da4d449476f2ceb69845de97243a0d4f6cd5e4c47cc0b1f552ac5a84c4e9d99f
BLAKE2b-256 checksum
How to use checksums
5cc2b57cf73c5df7c5d152b08de2004b57fe3c2285cffe4ba61f01f59b52dd9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / inmetpy-0.2.1-py3-none-any.whl

Download URL inmetpy-0.2.1-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7300523a14713b20e189f3cea005398c1464f077044312c92472ad9677ebbb8
BLAKE2b-256 checksum
How to use checksums
b12abaae706e19b2986020434a48e5fcbdb92644e7a26e0fb01329cabdb5d14a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Security for inmetpy 0.2.1

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