Skip to main content

CAU (Central Asian University) Services Python Client, for student projects

Project description

CAU (Central Asian University) Services Python Client

cau_services

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


Download files

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

Source Distribution

cau_services-0.0.2.tar.gz (29.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cau_services-0.0.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file cau_services-0.0.2.tar.gz.

File metadata

  • Download URL: cau_services-0.0.2.tar.gz
  • Upload date:
  • Size: 29.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for cau_services-0.0.2.tar.gz
Algorithm Hash digest
SHA256 abac118cfe685aad4ae0b4e9f9f06b526416c5a05e539d8e863233c1d0aa542e
MD5 8ee1c8fb093166e36b364e3bda2f6298
BLAKE2b-256 bdf19369e95098771f81edd9f012f5585d8c95cd461307e9c446b64ffe3c8caa

See more details on using hashes here.

File details

Details for the file cau_services-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: cau_services-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for cau_services-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d09664b69c53b276116d97df13c934159de2783d18a3e43e366f7e72d801dada
MD5 ab79b77fbf113211745f5cc09c1cc6d5
BLAKE2b-256 99e40d8cdf7bc842ae120f290eae73be0dd4fd9742f1c838a938e3dfe1dec0e4

See more details on using hashes here.

Supported by

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