OpenTamPy - A Python library to interface with https://intranet.tam.ch/
Project description
OpenTamPy
A Python Library to simplify the access to the Intranet website
Example snippet, more can be found in the documentation as well as in examples/
from OpenTamPy import Intranet
username = "YOURUSERNAME"
password = "YOURPASSWORD"
school = "krm"
instance = Intranet(username, password, school)
timetable = instance.get_timetable()
for lesson in timetable:
print(lesson.courseName)
Development
Installing with pip
python3 -m pip install OpenTamPy
Installing from source
- Clone the repo from https://github.com/neonfighter28/OpenTamPy
- Install dependencies from requirements.txt with
pip install -r requirements.txt
Check typehints and pep8
Please make sure your PR is pep8 compliant. More about pep8 can be found here
- Make sure you have
mypy
andpycodestyle
installed - run
mypy ./src/OpenTamPy.py
- run
pycodestyle OpenTamPy.py --max-line-length=119
Pushing to GitHub
- Fork the project
- Commit your changes
- Create a Pull Request
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
OpenTamPy-0.10.1.tar.gz
(14.2 kB
view details)
Built Distribution
File details
Details for the file OpenTamPy-0.10.1.tar.gz
.
File metadata
- Download URL: OpenTamPy-0.10.1.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a49a6778a5b45e41cb10fcb318419c36ecf26b23334ba1e8436501c1a170ff1 |
|
MD5 | 9793efa3ad3b9913ddd62b0c7f6bf6b4 |
|
BLAKE2b-256 | 9b4341318d29b606de550dea0f1e436f907138387136d041fcfab24479795cf1 |
File details
Details for the file OpenTamPy-0.10.1-py3-none-any.whl
.
File metadata
- Download URL: OpenTamPy-0.10.1-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c43d4104fb364c93ab80f7eb0b3c34058c92a46fad574079238ae47480cc5e3e |
|
MD5 | e7763451b3942964555c2a430804a923 |
|
BLAKE2b-256 | e479d00ccd9f04a25ed3d453bdc655f3419e228121795a8bf086bf2350f3fe2a |