Home

Awesome

<div align=center </br>

Ozon3

SVG of ozon3 logo

PyPI version <a href="CONTRIBUTING.md#pull-requests"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs Welcome"></a> GitHub Complete Documentation Dependency Review Tests codecov Buy Me a Coffee

The simplest AQI API

</div>

Getting air quality data with Python should be easy and straightforward - and that's exactly what Ozon3 can help you with. With Ozon3, just 4 lines of code are enough to get you the data you need. And the best part is that you can trust this data to be accurate and reliable, since the package uses the World Air Quality Index's API under the hood! ✅ 📈

Use Ozon3 to get real-time air quality data, or historical data from 2014 onwards, and fetch air quality data for anywhere in the world in seconds.

You can view our complete documentation here

Don't forget to star Ozon3 repository if you found it helpful

Table of Contents

Install ozon3

Getting your API token

Getting started

Contributing and submitting PR's

Semantic Versioning System

Attributions

License and TOS

Contributors

Install it here!

pip install ozon3

You can find more information on the PyPI page for Ozon3 here

Getting your API token

To use Ozon3, you must first request and get a your own unique API token 🎫. This is required to access for the underlying API to work 👮🏼‍♂️.

This is very easy to do, and takes no time at all as your token is generally emailed to you instantly.

Get your token here!

Getting started

Real-time data

import ozon3 as ooo

o3 = ooo.Ozon3('YOUR_PRIVATE_TOKEN')
data = o3.get_city_air('New Delhi')

for many cities:

data = o3.get_multiple_city_air(['London', 'Hong Kong', 'New York'])     # As many locations as you need

Historical data

data = o3.get_historical_data(city='Houston')     # data from 2014 onwards!
<hr>

Examples In Action 🎬

Gif of Ozon3.get_city_air()

Gif of Ozon3.get_multiple_city_air()

Gif of Ozon3.get_historical_data()

Air Quality Parameters

Ozon3 can fetch the following parameters:

Sample output: <img width="1065" alt="blehblhe" src="./src/media/sample-output.png">

Contributing and submitting Pull requests

We love PR's!

Take a look at the CONTRIBUTING.md file for details on how to go about this!

Semantic Versioning System

Ozon3 uses a semantic versioning system to increment its release version number. Using this model, changes in version numbers can help indicate the meaning of modified code for each version.

See more information on semantic versioning here.

World Air Quality Index and EPA attribution

This package is a wrapper around an API provided by the World Air Quality Index project. Without them as well as the US EPA, Ozon3 would not exist. Please consider visiting the WAQI website and contributing to their project if you have time:

World Air Quality Index

United States Environmental Protection Agency

LICENSE and Terms of Services 📰

  1. Ozon3 is licensed under the GNU GENERAL PUBLIC LICENSE v3.0, and so it cannot be used for closed-source software or for monetary gain.
  2. The WAQI API, which Ozon3 uses to provide data, has it's own Acceptable Usage Policy. Please refer to it for more details.

Contributors

Contributions of any kind are welcome! These are our amazing contributors :)

<a href="https://github.com/Ozon3Org/Ozon3/graphs/contributors"> <img src="https://contrib.rocks/image?repo=Ozon3Org/Ozon3" /> </a>

Enjoy using Ozon3! 🥳 🍾 🚀

Created by Milind Sharma