pyomnisense
pyomnisense is a Python library for accessing Omnisense sensor data directly from the omnisense.com website. It supports logging into the service, retrieving site lists, and fetching sensor data.
Features
- Login to the Omnisense website
- Retrieve a list of sites with sensor data
- Fetch detailed sensor data for a selected site
- Asynchronous methods using aiohttp
- Transparent re-login if the server expires the session between calls
Install this repo
Clone the repository and install in editable mode:
git clone https://github.com/sslivins/pyomnisense.git
cd pyomnisense
pip install -e .
Install from pypi.org
pip install pyomnisense
Usage
import asyncio
from pyomnisense import Omnisense, OmnisenseAuthError
async def main():
async with Omnisense() as omnisense:
try:
await omnisense.login("your_username", "your_password")
except OmnisenseAuthError as err:
print(f"Login failed: {err}")
return
sites = await omnisense.get_site_list()
print("Available sites:", sites)
sensor_data = await omnisense.get_sensor_data(sites)
print("Sensor data:", sensor_data)
asyncio.run(main())
Replace "your_username" and "your_password" with your actual Omnisense credentials. The async with block guarantees the underlying HTTP session is closed even on errors.
Testing
Tests are written using pytest and pytest-asyncio. You can run tests as follows:
pytest -m offline
Metadata
Release files for pyomnisense 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyomnisense-0.3.1.tar.gz | 8.7 kB | With provenance | Details for pyomnisense-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyomnisense-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for pyomnisense-0.3.1-py3-none-any.whl |
Total release size: 16.7 kB
Release files / pyomnisense-0.3.1.tar.gz
| Download URL | pyomnisense-0.3.1.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27ead621eb4ff88d699156353250e74328277a470fdaf5f5e8ffc2436d9b2d50
|
|
BLAKE2b-256 checksum How to use checksums |
2f846bdaba5121b995fda2a9d662d50a96a7a498d17a08bda00c775cb23cfc76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 15, 2026.
Transparency logRelease files / pyomnisense-0.3.1-py3-none-any.whl
| Download URL | pyomnisense-0.3.1-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ba1fade4df51a6546e81c9f5facb4197ceac7aa3e1df019e364b9dead7389774
|
|
BLAKE2b-256 checksum How to use checksums |
404fc03a2aa63035adc3127d96f6d7d3c2c098001c462107826878ae0306bbce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 15, 2026.
Transparency logSecurity for pyomnisense 0.3.1
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for pyomnisense-0.3.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 15, 2026.
Transparency logA 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.