Skip to main content
Build status Coverage status Pypi package

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)

Source distribution for firapria 0.2.0
File Size Uploaded
firapria-0.2.0.tar.gz 4.2 kB Details

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

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

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