Skip to main content

An itslearning api python library.

Project description

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

itspylearning-0.2.7.tar.gz (9.6 kB view details)

Uploaded Source

File details

Details for the file itspylearning-0.2.7.tar.gz.

File metadata

  • Download URL: itspylearning-0.2.7.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for itspylearning-0.2.7.tar.gz
Algorithm Hash digest
SHA256 3efbbb6230921cb9ffbbc07c613b7682cf758058b3d0f954919c880f70b2db42
MD5 ff16d0f625466d66de6c67940b22dd72
BLAKE2b-256 fe210b5996c27f2deaec0cad9f0e5f00ec5aa16ba4869b84102a4fb2f6d845ef

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page