https://github.com/openaq/openaq-python
Official OpenAQ Python SDK
https://github.com/openaq/openaq-python
air-quality api openaq python
Last synced: 15 days ago
JSON representation
Official OpenAQ Python SDK
- Host: GitHub
- URL: https://github.com/openaq/openaq-python
- Owner: openaq
- License: mit
- Created: 2023-10-10T21:45:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-07T02:12:57.000Z (about 1 month ago)
- Last Synced: 2025-05-01T17:52:13.468Z (17 days ago)
- Topics: air-quality, api, openaq, python
- Language: Python
- Homepage: https://python.openaq.org
- Size: 9.16 MB
- Stars: 12
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-air-quality - openaq-python - Official OpenAQ Python SDK for working with the OpenAQ API. (Software Libraries)
README
# OpenAQ Python SDK
The official Python SDK for the OpenAQ API.
> :warning: OpenAQ python is still under active development and may be unstable until a v1.0.0 release
[](https://pypi.org/project/openaq)
[](https://pypi.org/project/openaq)

[](https://github.com/psf/black)
[](https://github.com/astral-sh/ruff)
[](https://join.slack.com/t/openaq/shared_invite/zt-yzqlgsva-v6McumTjy2BZnegIK9XCVw)-----
## Table of Contents
- [Installation](#installation)
- [Documentation](#documentation)
- [License](#license)## Installation
OpenAQ python is availble on pip.
```console
pip install openaq
```## Documentation
Documentation available at [python.openaq.org](https://python.openaq.org)
Documentation can also be run locally using `hatch run docs:serve`
## License
The OpenAQ Python SDK is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
## Development
Code is styled according to [black](https://github.com/psf/black), imports are sorted using [isort](https://pycqa.github.io/isort/), and code is linted using [ruff](https://github.com/astral-sh/ruff).
Codebase can be automatically formatted and linted by running:
```console
hatch run style:fmt
```style can be checked with:
```console
hatch run style:check
```[mypy](https://mypy-lang.org/) static type checking:
```console
hatch run types:check
```Testing uses [pytest](https://docs.pytest.org/en/7.4.x/).
```console
hatch run test:test
```## Acknowledgements
For many years [py-openaq](https://github.com/dhhagan/py-openaq) by David Hagan filled the gap for a Python API SDK for the OpenAQ API. Thank you to David for many years of maintaining py-openaq and for taking the original step to develop a Python tool for OpenAQ.