Metadata-Version: 2.5
Name: airinsights
Version: 2026.10.12.b
Summary: A suite of open-source analysis tools that turn complex air quality datasets into localized insights to drive targeted clean-air actions.
Project-URL: Homepage, https://github.com/edf-org/airinsights
Author-email: Environmental Defense Fund <edfair@edf.org>
Maintainer: Alex Adame, Vana Brookins, Gabriella Brinkley, Libby Mohr, Lauren Padilla, Dan Peters
License-Expression: Apache-2.0
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Atmospheric Science
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Requires-Python: >=3.12
Requires-Dist: geopandas>=1.1.4
Requires-Dist: numpy>=2.1.0
Requires-Dist: pandas>=3.0.0
Requires-Dist: polars>=1.39.0
Requires-Dist: pyarrow>=23.0.1
Requires-Dist: pymannkendall>=1.4.3
Requires-Dist: pyyaml>=6.0.3
Requires-Dist: rasterio>=1.5.0
Requires-Dist: requests>=2.34.2
Requires-Dist: rioxarray>=0.23.0
Requires-Dist: scikit-learn>=1.8.0
Requires-Dist: shapely>=2.2.0
Description-Content-Type: text/markdown

<div align="center">

<img src="https://www.edf.org/themes/edf2020/images/source/site-logo.svg" height="100"/> 

## **Air Insights**
### Turn your city’s air quality data into insights that drive health and climate action

</div>
For over a decade, EDF scientists have worked with partners around the world to develop new ways of analyzing air quality data to meet targeted needs including (but not limited to) tracking pollution hotspots, identifying local sources, developing customized policy interventions, and measuring health impacts.
<br>
<br>
We are now honing and automating these methods to develop <b>Air Insights</b> — a powerful suite of automated, open-source analyses designed to help users process large volumes of air quality measurements and provide answers to common, yet complex, questions like:<br><br>

* How severe is air pollution in my area? 
* Are certain locations or times more impacted?
* What are the likely sources contributing to air pollution hotspots?
* How has air quality in my area changed over time? 
* Are air quality improvement policies in my area working?
* Are there areas that urgently require follow-up investigation or health alerts?
  
  <br>
---
<div align="center">

# Beta Release 2026.10.12

</div>

## 💡 Core Features

* **Pollution Event Detection** – Detect and flag measurements that are atypical for each monitor at different hours of the day with the `pollution_events()` function and group them into regional and local pollution events to investigate
* **Trend Analysis** – Quantify annual trends to help assess changes over time and understand whether air quality policies are working with the `annual_trends()` function
* **Source Identification** – Identify likely locations of upwind pollution sources using Air Tracker with the `source_area()` function 
* **Areas of Interest** – Detect locations that repeatedly show unusual pollution patterns compared to the monitoring network as a whole with the `anomalous_sites()` function 


## 🕑 Coming Soon

* **Data Audit** – Assess AQ data quality, completeness, and reliability
* **Visualizations** – Use built-in visualizations to generate custom reports
* **Reliability Improvements** - Automated tests and improved logging

<div align="center">

</div>

## 🗃️ Installation

The source code is currently hosted on GitHub at:
https://github.com/edf-org/airinsights

Binary installers for the latest released version are available at the [Python Package Index (PyPI)](https://pypi.org/project/airinsights).

```sh
# PyPI
pip install airinsights
```

<hr>

## 📖 Documentation

Access documentation for each function using Python in your IDE of choice.

For example:
```r
help(airinsights)
help(pollution_event)
```

<hr>

## 📖 Examples

Example scripts using sample data are located in the [examples](https://github.com/edf-org/airinsights/tree/main/examples) folder on GitHub:
* [Pollution event detection example](https://github.com/edf-org/airinsights/blob/main/examples/pollution_events.ipynb)
* [Trend analysis example](https://github.com/edf-org/airinsights/blob/main/examples/annual_trends.ipynb)
* [Areas of interest example](https://github.com/edf-org/airinsights/blob/main/examples/anomalous_sites.ipynb)
* [Source identification example](https://github.com/edf-org/airinsights/blob/main/examples/source_area.ipynb)

Air Insights uses a configuration file to ensure your data can be parsed correctly. Set up instructions are also located in the [examples](https://github.com/edf-org/airinsights/tree/main/examples) folder. 
* [Setting Up Air Insights](https://github.com/edf-org/airinsights/blob/main/examples/airinsights_setup.ipynb)


<hr>

## License
**Air Insights** is licensed under the [Apache License Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).
