Metadata-Version: 2.1
Name: itspylearning
Version: 0.2.4
Summary: An itslearning api python library.
Home-page: https://github.com/HubertJan/itspylearning
Author: Hubert Jan Tomaszczak
License: MIT
Download-URL: https://github.com/HubertJan/itspylearning/archive/refs/tags/v0.2.4.tar.gz
Platform: UNKNOWN
Requires-Python: >=3.10.0,
Description-Content-Type: text/markdown
License-File: LICENCE.txt

# itspylearning

itspylearning is a fully async "It's Learning" API for Python. 
It can fetch organisations, log into user accounts and fetch information from these accounts like tasks or news.


## Getting Started

### Dependencies

* aiohttp

### Example

```Python
from itspylearning import *
import asyncio

async def loginIntoItsLearning() -> UserService:
    orgs_data = await Itslearning.search_organisations("Organisation Name")
    org = await Itslearning.fetch_organisation(orgs_data[0]["id"])
    return await org.login("Username", "Password")


async def setup():
    userService = await loginIntoItsLearning()
    newsList = await userService.fetch_news()

    print(newsList[0])

loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
loop.run_until_complete(setup())

```

## Contributing

Any contribution is welcome. If you can't code, but you have an idea for a feature, just post an issue.


## License

This project is licensed under the MIT License - see the LICENSE.md file for details

## Acknowledgments

It is inspired by the It's Learning API for Node JS.

