File: account.py

package info (click to toggle)
python-autarco 3.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 808 kB
  • sloc: python: 742; makefile: 3
file content (19 lines) | stat: -rw-r--r-- 442 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""Asynchronous Python client for the Autarco API."""

import asyncio

from autarco import AccountSite, Autarco


async def main() -> None:
    """Show example on getting Autarco - account data."""
    async with Autarco(
        email="test@autarco.com",
        password="password",
    ) as client:
        account: list[AccountSite] = await client.get_account()
        print(account)


if __name__ == "__main__":
    asyncio.run(main())