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 PR
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.6.0.tar.gz
(14.2 kB
view details)
Built Distribution
OpenTamPy-0.6.0-py3-none-any.whl
(14.2 kB
view details)
File details
Details for the file OpenTamPy-0.6.0.tar.gz
.
File metadata
- Download URL: OpenTamPy-0.6.0.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49018bd2722e963f5694fed37d6e090ca56bf4d4e9e9e384e934265a568b93cd |
|
MD5 | 4616917025a30b708143ac2ae788c82a |
|
BLAKE2b-256 | 5bdb2ba4f956a97ffb77031f98828854e3fb05621dc58c9d067cffbda0c741e4 |
File details
Details for the file OpenTamPy-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: OpenTamPy-0.6.0-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b545273ce937a8918ed72439ef851a3c9a9736288f07a1e8e4e747998d33b31 |
|
MD5 | bf23b7b7024d76d81424b9a14f5a68f3 |
|
BLAKE2b-256 | 247f24d588a56d2d60fae01432b8afdb552554aa3529d7fffc0bc3f8174cfece |