CAU (Central Asian University) Services Python Client, for student projects
Project description
CAU (Central Asian University) Services Python Client
This opensource Python Client for services of Central Asian University. With this package you will be able to get timetable, attendance and other stuff, and automate for your purposes, this can be useful for pet-projects.
For now here:
Comming Soon:
- attendance
- marks
For more information on how Timetable API works, you can take a look to timetable.ipynb.
Usage
Installation
| I will try to make this README "begginers friendly", trying to explain the whole process of installation in details.
Create Python Environment:
python3 -m venv .venv
Activating python environment (For Linux/UNIX/MacOS):
source .venv/bin/activate
# OR
. .venv/bin/activate
Activating python environment (For Windows PowerShell):
# for PowerShell
.venv\Scripts\Activate.ps1
# CMD
.venv\Scripts\activate.bat
! FOR NOW PACKAGE ISN'T UPLOADED TO ANY PACKAGE REPOSITORY SO USE FOLLOWING INSTRUCTIONS TO INSTALL IT.
git clone https://github.com/timur-urunbaev/cau_services.git .
Inside the cloned repo write this command (so the package will be installed to your virtual environment):
python -m pip install .
Now you can use this package inside of your projects.
Download
from cau import Timetable
timetable = Timetable()
timetable.download()
Timetable
from cau import Timetable
timetable = Timetable()
timetable.download()
week: dict = timetable.get_week_by_class_id("<class_id>")
Then you can turn Python dict to json using any your preferable tool, e.g. json package:
import json
from cau import Timetable
timetable = Timetable()
timetable.download()
week: dict = timetable.get_week_by_class_id("<class_id>")
print(json.dumps(week)) # to see the result
Author
Urunbaev Timur
Project details
Release history Release notifications | RSS feed
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 cau_services-0.0.3.tar.gz.
File metadata
- Download URL: cau_services-0.0.3.tar.gz
- Upload date:
- Size: 29.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
178ea0e8d293ff0f79b17fc383d90186cc941634118121cda371cf38cb6f0571
|
|
| MD5 |
b3ebaefd46589494e1a5eaf0844ebe87
|
|
| BLAKE2b-256 |
a4ee1465269fd19aaec0b1b94ec2ea1b44b90a6c4249284a5f743cf96529e979
|
File details
Details for the file cau_services-0.0.3-py3-none-any.whl.
File metadata
- Download URL: cau_services-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b293237a72eeb7c86901c04347d4bdc6586a4dcd50b9f320afe342799a01654
|
|
| MD5 |
96faa7c837b840f1b4c6ff34c830f08f
|
|
| BLAKE2b-256 |
928c3b3ef08f2cb9adba82f8a8068d61a49504291361e44899e0e5238aaa6ad6
|