Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 947 Bytes

README.md

File metadata and controls

53 lines (36 loc) · 947 Bytes

nz-ua

PyPI

Library for working with the nz.ua service

Requirements

  • Python 3.10+
  • Aiohttp for making requests to nz.ua api.
  • Pydantic for data validation.

Installing

pip install nz-ua

Or use the version from github:

pip install git+https://github.com/GoldMasterPro/nz-ua

Quick usage

import nz
import asyncio

USER_NAME = "your username"
PASSWORD = "your password"


async def main():
    async with nz.Client() as client:
        await client.login(USER_NAME, PASSWORD)
        schedule = await client.get_schedule()
        print(schedule.dict())


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

Links