Skip to main content

Official OpenAQ Python SDK.

Project description

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

PyPI - Version PyPI - Python Version Codecov Static Badge Code style: black Ruff slack


Table of Contents

Installation

The OpenAQ Python SDK is available on PyPI.

pip install openaq

Documentation

Documentation available at python.openaq.org

Documentation can also be run locally using hatch run docs:serve

License

The source code is distributed under the terms of the MIT license.

Development

Code is styled according to black, imports are sorted using isort, and code is linted using ruff.

Codebase can be automatically formatted and linted by running:

hatch run style:fmt

style can be checked with:

hatch run style:check

mypy static type checking:

hatch run types:check

Testing uses pytest.

hatch run test:test

Acknowledgements

For many years 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openaq-1.0.0rc2.tar.gz (73.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openaq-1.0.0rc2-py3-none-any.whl (67.1 kB view details)

Uploaded Python 3

File details

Details for the file openaq-1.0.0rc2.tar.gz.

File metadata

  • Download URL: openaq-1.0.0rc2.tar.gz
  • Upload date:
  • Size: 73.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for openaq-1.0.0rc2.tar.gz
Algorithm Hash digest
SHA256 832b40a5cb8afde5e87e2efea4c5425cde4eeeb5c75210b622f18d66151063ea
MD5 61b0050f2b567f6eeefca970fe111d71
BLAKE2b-256 64d4b59e3ef3ef15ed932543bbd2bf0cbf63bf88da5af9f57d29b9e76777b702

See more details on using hashes here.

Provenance

The following attestation bundles were made for openaq-1.0.0rc2.tar.gz:

Publisher: publish.yml on openaq/openaq-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openaq-1.0.0rc2-py3-none-any.whl.

File metadata

  • Download URL: openaq-1.0.0rc2-py3-none-any.whl
  • Upload date:
  • Size: 67.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for openaq-1.0.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 cd19ca4c44b593198f9fef55bbd333653e40d7d84acf6c0fc0d08c5fba376690
MD5 c20d4f0298860b936089f535ca6b2bb7
BLAKE2b-256 aa543380c5e9963f098bc8163a0bb84c390a12e6825da6ea1eb72837cc238bfa

See more details on using hashes here.

Provenance

The following attestation bundles were made for openaq-1.0.0rc2-py3-none-any.whl:

Publisher: publish.yml on openaq/openaq-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page