Skip to main content

Command-line tool and Python client for the SJVAir air quality API.

Project description

sjvair

Command-line tool and Python client for SJVAir — a network of air quality monitors across California's San Joaquin Valley.

📖 Full documentation: https://SJVAir.github.io/sjvair-python/

pip install sjvair

Quickstart

from sjvair import SJVAirClient

with SJVAirClient() as client:
    for monitor in client.monitors.list():
        print(monitor['id'], monitor['name'])
sjvair monitors list --county Fresno --output fresno.csv
sjvair regions list --type county

Development

# Install with dev dependencies
uv sync --group dev

# Run tests (live tests hit the real API and are excluded by default)
uv run pytest
uv run pytest -m live      # run the live integration tests

# Lint and format
uv run ruff check sjvair/
uv run ruff format sjvair/

# Type check
uv run ty check sjvair/

Documentation

Docs are built with Sphinx + MyST and deployed to GitHub Pages on every push to main.

# Install with docs dependencies
uv sync --group docs

# Build once (output in docs/_build/html)
uv run sphinx-build -b html docs docs/_build/html

# Build, serve, and auto-rebuild on change
uv run sphinx-autobuild docs docs/_build/html --port 8080

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

sjvair-0.1.0a3.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

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

sjvair-0.1.0a3-py3-none-any.whl (41.4 kB view details)

Uploaded Python 3

File details

Details for the file sjvair-0.1.0a3.tar.gz.

File metadata

  • Download URL: sjvair-0.1.0a3.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sjvair-0.1.0a3.tar.gz
Algorithm Hash digest
SHA256 5e6072539629124c3796d6a2084ebc829a8b455ed8920018ca33b59174bbb5a0
MD5 e0f69911016fc5c612484a90ca4aa4d5
BLAKE2b-256 b2bec58d689ebc206242c1582edeaff3861231590ca77ead9da7b4ff91df50f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for sjvair-0.1.0a3.tar.gz:

Publisher: publish.yml on SJVAir/sjvair-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 sjvair-0.1.0a3-py3-none-any.whl.

File metadata

  • Download URL: sjvair-0.1.0a3-py3-none-any.whl
  • Upload date:
  • Size: 41.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sjvair-0.1.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 7d39ff0d3cc2835bbf20e55315227b6a260d2b2c3efa18d0cc4ec9295c642b59
MD5 952cef02304483886aa866b9a249354f
BLAKE2b-256 6cbab543a9d28e721305be4647095072c9e1608f1dff481b03d2a61a277b017c

See more details on using hashes here.

Provenance

The following attestation bundles were made for sjvair-0.1.0a3-py3-none-any.whl:

Publisher: publish.yml on SJVAir/sjvair-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