Skip to main content

An asynchronous client for Classeviva written in Python.

Project description

aiocvv

An asynchronous client for Classeviva written in Python.

Teachers' endpoints haven't been implemented yet. If you are a teacher and/or you want to contribute, feel free to open a pull request.

Installation

pip install -U aiocvv

Example usage

import asyncio
from aiocvv import ClassevivaClient

async def main():
    client = ClassevivaClient("username", "password")
    await client.login() # IMPORTANT! Without this, client.me will be None
    print(client.me.name)

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

You can also await the client class, so it will automatically login for you.

import asyncio
from aiocvv import ClassevivaClient

async def main():
    client = await ClassevivaClient("username", "password")
    print(client.me.name)

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

A more complex example showing most of what this library can do can be found here.

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

aiocvv-0.0.1.tar.gz (30.1 kB view hashes)

Uploaded Source

Built Distribution

aiocvv-0.0.1-py3-none-any.whl (34.3 kB view hashes)

Uploaded Python 3

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