Skip to main content

A python client for uHoo APIs

Project description

uhooapi - Python Client for uHoo API

PyPI version Python versions License: MIT Code style: Ruff

A modern, asynchronous Python client for the uHoo air quality API. This library provides an intuitive, type-safe interface to access your uHoo device data, manage devices, and retrieve real-time air quality metrics with automatic token management and comprehensive error handling.

✨ Features

  • 🚀 Async/Await Native: Built on aiohttp for high-performance, non-blocking API calls
  • 🔐 Automatic Token Management: Handles authentication, token refresh, and retry logic automatically
  • 📝 Full Type Annotations: Complete type hints for better IDE support and reliability
  • 🎯 Production Ready: 100% test coverage with comprehensive unit and integration tests
  • 🔄 Smart Error Handling: Custom exceptions with automatic retry for 401/403 errors
  • 📊 Complete Sensor Coverage: Access to all uHoo metrics (temperature, humidity, CO₂, PM2.5, virus index, etc.)
  • ⚡ Efficient Data Processing: Automatic averaging and rounding of sensor readings

📦 Installation

From PyPI (Recommended)

pip install uhooapi

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

uhooapi-1.0.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

uhooapi-1.0.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file uhooapi-1.0.0.tar.gz.

File metadata

  • Download URL: uhooapi-1.0.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for uhooapi-1.0.0.tar.gz
Algorithm Hash digest
SHA256 72255ac09f4a39fce71bd668ed8ead082f8d4a55fdae5a0c1d5fb9f60e84bab8
MD5 9b7d4ed4c695da1bade4f3c69d0b4459
BLAKE2b-256 fff07eebdd6c3dad584364b94d54939557b5a5184f520736284c421eb21b5c67

See more details on using hashes here.

File details

Details for the file uhooapi-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: uhooapi-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for uhooapi-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de057d914537938e876c806396b98f2f293c5f5f8267e170f754a0b6679de30d
MD5 4c0247f12ab88f53667a98b24dfe40f1
BLAKE2b-256 ce05f8eca1240b9eb83138a48021a23bf5888bbfe60b90b448a404ad74c56567

See more details on using hashes here.

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