Current collected state Current
Observed since 21 Oct, 09:31 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Python library to retrieve information from "Aguas de Gaia" portal
$ pip install aguasgaia
import asyncio
import aiohttp
from aguasgaia import AguasGaia
async def main():
session = aiohttp.ClientSession()
aguas = AguasGaia(session, "<USERNAME>", "<PASSWORD>")
print("LOGIN: ", await aguas.login())
print("SUBSCRIPTIONS:\n{0}".format(await aguas.get_subscriptions()))
inv = await aguas.get_last_invoice()
print("INVOICE: {0}\n{1}".format(inv.invoice_value, inv.invoice_attributes))
consumption = await aguas.get_last_consumption()
print("CONSUMPTION: {0}\n{1}".format(consumption.consumption_value, consumption.consumption_attributes))
await session.close()
if __name__ == "__main__":
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
asyncio.run(main())
Make sure pytest asyncio is installed
$ pip install pytest-asyncio
Execute the tests
$ pytest tests/
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.21 | 24 Aug 2024 | 2 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 09:31 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:7515cf2e007919bb7136ee18e8f0fd8918cb4e03c214ba27ffa3e04e6979f93a