An API wrapper for Classeviva written in Python using asyncio.
Project description
aiocvv
An API wrapper for Classeviva written in Python using asyncio.
It's made to be easy to use, and handles rate-limits and caching (using diskcache) as the API has very strict rate-limits.
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.
Documentation
The documentation 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aiocvv-0.1.1.tar.gz.
File metadata
- Download URL: aiocvv-0.1.1.tar.gz
- Upload date:
- Size: 41.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49ec332aade743cad44cf81cd4246dad63df66e8c63ab5348b3cb93c08e89d68
|
|
| MD5 |
a912b88392e0b3f4e9ea6037e4920b1b
|
|
| BLAKE2b-256 |
56c61249ad9c8edacc45e9459215d3ebb0667dab6bf20f94c5416304c16bd041
|
File details
Details for the file aiocvv-0.1.1-py3-none-any.whl.
File metadata
- Download URL: aiocvv-0.1.1-py3-none-any.whl
- Upload date:
- Size: 47.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c45c8c5e74647b8e28732c79cb7bb95c7e6c7f1f931a5d25a8319e5e58666adf
|
|
| MD5 |
fd50a18c8bb0410c41395054990fb57d
|
|
| BLAKE2b-256 |
7f84aa7cd16c095927b50620e4c580b8065f9dd46bfeb931347c94103c145ec9
|