Skip to main content

Install with pip:
pip install deq-tools

deq_tools is a limited functionality Python library for accessing Oregon DEQ Air Quality data with a Python script.

Usage:

import deq_tools

print(deq_tools.get_station_names())    # Dump a list of names of stations where data may be available
print(deq_tools.get_station_data())     # Dump all station info, including data available for each station
    
station_id = 2                          # Get this value from get_station_names()
from_ts = "2018/05/03T00:00"            # ISO datetime format: YYYY/MM/DDTHH:MM
to_ts = "2018/05/10T23:59"

print(deq_tools.get_data(station_id, from_ts, to_ts))   # Get the data

In addition to the required positional parameters shown above, get_deq_data() also takes these optional named parameters:

resolution:
Default = 60. 60 for hourly data, 1440 for daily values. Higher resolutions don't work, sorry, but lower-resolutions, such as 120, 180, 480, 720 will.
agg_method:
Default = "Average". These will probably all work: Average, MinAverage, MaxAverage, RunningAverage, MinRunningAverage, MaxRunningAverage, RunningForword, MinRunningForword, MaxRunningForword.

Metadata

Release files for deq-tools 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deq-tools 0.3.0
File Size Uploaded Provenance Actions
deq_tools-0.3.0.tar.gz 5.9 kB Without provenance Details for deq_tools-0.3.0.tar.gz

Release files / deq_tools-0.3.0.tar.gz

Download URL deq_tools-0.3.0.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1305efb0c7d4b85f198ad75b656ddc51f530ed629466d6b4c113572f1f8092cc
BLAKE2b-256 checksum
How to use checksums
2a0f721cef1afd53f5dc3a4ea4d64878cc0ed5e3ccb00ea25038314b243142fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.20.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.7.1

Security for deq-tools 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page