The repository or configuration that created this release differ from a previous release. View details.
aiomygas
Asynchronous Python API for Мой Газ.
Installation
Use pip to install the library:
pip install aiomygas
Usage
import asyncio
from pprint import pprint
import aiohttp
from aiomygas import SimpleMyGasAuth, MyGasApi
async def main(email: str, password: str) -> None:
"""Create the aiohttp session and run the example."""
async with aiohttp.ClientSession() as session:
auth = SimpleMyGasAuth(email, password, session)
api = MyGasApi(auth)
data = await api.async_get_accounts()
pprint(data)
if __name__ == "__main__":
_email = str(input("Email: "))
_password = str(input("Password: "))
asyncio.run(main(_email, _password))
Exceptions
All exceptions inherit from MyGasApiError:
MyGasApiError— base class for all API errorsMyGasApiParseError— response parsing errorsMyGasAuthError— the server rejected the credentials; ask the user for a new passwordMyGasConnectionError— network, DNS, timeout or HTTP status errors; transient, retry later
Timeouts
aiomygas does not specify any timeouts for any requests. You will need to specify them in your own code. We recommend asyncio.timeout:
import asyncio
async with asyncio.timeout(10):
data = await api.async_get_accounts()
CLI
aiomygas-cli user@example.com password --accounts
aiomygas-cli user@example.com password --client
aiomygas-cli user@example.com password --charges
aiomygas-cli user@example.com password --payments
aiomygas-cli user@example.com password --info
Development
python -m venv .venv
.venv/bin/pip install -r requirements_test.txt -e .
pytest tests/ -v
Links
Metadata
Release files for aiomygas 2.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Change of provenance
The repository or configuration that created these release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aiomygas-2.5.1.tar.gz | 22.4 kB | With provenance | Details for aiomygas-2.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aiomygas-2.5.1-py3-none-any.whl | Python 3 | none | any | Details for aiomygas-2.5.1-py3-none-any.whl |
Total release size: 43.8 kB
Release files / aiomygas-2.5.1.tar.gz
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | aiomygas-2.5.1.tar.gz |
|---|---|
| Size | 22.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57f2c71c0c0a5e88b89914aa863d80e4ca7d49145beb9c42c633ca1bd2c99dd2
|
|
BLAKE2b-256 checksum How to use checksums |
47fd99341078114bef0259e227e94d4b68a9efa7c597179ddbb547a54e450be4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 20, 2026.
Transparency logRelease files / aiomygas-2.5.1-py3-none-any.whl
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | aiomygas-2.5.1-py3-none-any.whl |
|---|---|
| Size | 21.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5cafb2192861acd2ad83b87d8f560c16d1ac86453d636cffd30a3ce3021e5cfe
|
|
BLAKE2b-256 checksum How to use checksums |
abd7843ec72471d281c862b3b50357b7a6aa2869bbf9f37098dd8e34e3d0f800
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 20, 2026.
Transparency logSecurity for aiomygas 2.5.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.
Change of provenance
The repository and configuration that created this release differ from a previous release.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Repository
- Removed 2.5.0 github.com/lizardsystems/aiomygas
- Added 2.5.1 github.com/ru-smarthome/aiomygas
Attestation for aiomygas-2.5.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 Nov 20, 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.