Skip to main content

Ogero API module

Project description

pyOgero: Ogero API Python module

PyPI Latest Release Package Status GitHub branch checks state License Code style: black

Ogero does not currently provide a rest api to access it services, therefore this module web scrap the mobile version of the pages to collect data.

Async client

The async client (pyogero.asyncio.Ogero) requires an injected aiohttp.ClientSession (for example from Home Assistant async_get_clientsession(hass)):

import aiohttp
from pyogero.asyncio import Ogero

async with aiohttp.ClientSession() as session:
    client = Ogero("user", "pass", session=session)
    await client.login()

Home Assistant compatibility

Runtime dependency versions are capped at the versions used by Home Assistant 2026.3.2 (requests, aiohttp, beautifulsoup4, pydantic). To install exact pins in a virtual environment:

pip install -e . -c constraints-home-assistant-2026.3.2.txt

Development

This project uses uv for dependencies and a PEP 621 pyproject.toml for package metadata. Python 3.14 is used for CI and local development (see .python-version).

uv sync --group dev
uv run pytest tests/ -m "not integration"
uv run ruff check .
uv run ruff format .

To match Home Assistant pins after syncing dev dependencies:

uv sync --group dev
uv pip install -c constraints-home-assistant-2026.3.2.txt -e .

Build release artifacts with uv run python -m build (requires dev dependencies).

Releasing

  1. Bump version in pyproject.toml and document changes in CHANGELOG.md.
  2. Merge to main. CI runs on push; the Release workflow then runs tests and creates tag vX.Y.Z if that tag does not exist yet.
  3. Pushing the new tag triggers the publish job (GitHub release + PyPI). Re-pushing main without a version bump does not re-release because the tag already exists.
  4. You can also run the Release workflow manually via workflow_dispatch to re-run pre-release checks.

PyPI publishing

CI publishes with trusted publishing (OIDC) when the PyPI project is linked to this GitHub repository. The workflow also supports PYPI_TOKEN in repository secrets as a fallback if trusted publishing is not configured yet.

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

pyogero-0.14.1.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

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

pyogero-0.14.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file pyogero-0.14.1.tar.gz.

File metadata

  • Download URL: pyogero-0.14.1.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for pyogero-0.14.1.tar.gz
Algorithm Hash digest
SHA256 f642f0a75a9b3864a69cd27244d9395b206a9fc01c29b2caab49ed7358c57fc6
MD5 993c436958ea94a9e011aa7c073f8565
BLAKE2b-256 1efaa4c4ee59a478fa558ab51695344a577355e717d961e5335a87cf5322e915

See more details on using hashes here.

File details

Details for the file pyogero-0.14.1-py3-none-any.whl.

File metadata

  • Download URL: pyogero-0.14.1-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for pyogero-0.14.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eb4e1128c4fd8697ff0a3bbbf50eca0dfbf91630c58498c39b833b83391156f5
MD5 5e16b4b2ffa8f54413b4290e66a847d2
BLAKE2b-256 d4c6ba8e6dbbf6e9b782fd1528e7a0b7cc9ef4e3b039cf1b26d33fd8eb5ec2a5

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