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.8.0.tar.gz
(14.2 kB
view details)
Built Distribution
OpenTamPy-0.8.0-py3-none-any.whl
(14.2 kB
view details)
File details
Details for the file OpenTamPy-0.8.0.tar.gz
.
File metadata
- Download URL: OpenTamPy-0.8.0.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.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef1f5a9172dd3747048416424e3e1ff7296a3fbf4152f40a32a5b5b78f4ea213 |
|
MD5 | 0f8515f22b81b8f5585d1621262f6c4d |
|
BLAKE2b-256 | 1fc698fa82b582c1f87adec26e17ac77f39d51257098662c7bec035c89c314d3 |
File details
Details for the file OpenTamPy-0.8.0-py3-none-any.whl
.
File metadata
- Download URL: OpenTamPy-0.8.0-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.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08903375087dc0c33558d758a9d3aa44f398172de1ae129fc42f2759442c02e5 |
|
MD5 | c293faa7c4a498301c17723d6b5a80e3 |
|
BLAKE2b-256 | d54c509ba05ff35b5a16e08d5035ef93c94c5bd36b6c06c0ae3398e6c1db28cb |