firapria
firapria is a lightweight library to extract pollution indices from Airparif website for IDF (France).
Install
pip install firapria
Since version 0.1.1, firapria supports both Python 2.x and 3.x.
Usage
from firapria.pollution import get_indices
indices = get_indices()
It returns three integers, for yesterday’s, today’s and tomorrow’s indices. It might return only two integers sometimes, it’s when no prevision is available for tomorrow’s indice, usually before 11 AM.
The library also include a simple CLI of the same name:
$ firapria
Pollution:
Yesterday: 42
Today: 40
Tomorrow: 40
Before 0.1.1
get_indices was introduced in version 0.1.1. Before that one, another API was used. It’s still supported, but the new API is easier.
from firapria.pollution import PollutionFetcher indices = PollutionFetcher().indices()
Tests
Clone this repo, then:
[sudo] make deps make check
Metadata
Release files for firapria 0.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 |
|---|---|---|---|---|
| firapria-0.2.0.tar.gz | 4.2 kB | Without provenance | Details for firapria-0.2.0.tar.gz |
Release files / firapria-0.2.0.tar.gz
| Download URL | firapria-0.2.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
518c2b14624a24cbce57077d5aa7f0f9ddb69ef722b6fba6e8837d1fb7d652a8
|
|
BLAKE2b-256 checksum How to use checksums |
18b82dda980425bd44f1a46cce67e481a650fa8cc6196c94ad1d9dec2e2b9283
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for firapria 0.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.