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 Static Badge Code style: black Ruff slack


Table of Contents

Installation

OpenAQ python is availble on pip.

pip install openaq

Documentation

Documentation available at 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 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-0.4.0.tar.gz (7.1 MB view details)

Uploaded Source

Built Distribution

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

openaq-0.4.0-py3-none-any.whl (51.7 kB view details)

Uploaded Python 3

File details

Details for the file openaq-0.4.0.tar.gz.

File metadata

  • Download URL: openaq-0.4.0.tar.gz
  • Upload date:
  • Size: 7.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for openaq-0.4.0.tar.gz
Algorithm Hash digest
SHA256 4cea0b9331f8c07f3bb65e7350583779c378c269fdee4f8761172c1ef7479394
MD5 47a2aed24280e85b2d1ade168acac2fa
BLAKE2b-256 d70284f5286a1bef945982a16a4ec23d58835145405c1d39bede8bd207a33795

See more details on using hashes here.

Provenance

The following attestation bundles were made for openaq-0.4.0.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-0.4.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for openaq-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 355f66529f7a4b8d65ab82562d3bbc03383fe32382cf856cec67832f1f6699b2
MD5 5744471190b4883b2999b48f463a5f6d
BLAKE2b-256 a32841cac0de401719d03e241ea796e84542545c519fdf0eec9d676834222fa9

See more details on using hashes here.

Provenance

The following attestation bundles were made for openaq-0.4.0-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