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.1.tar.gz
(14.2 kB
view hashes)
Built Distribution
OpenTamPy-0.8.1-py3-none-any.whl
(14.2 kB
view hashes)
Close
Hashes for OpenTamPy-0.8.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 907b78a2e4dd5d1bf493bc5b226468eb453d0d57483ba7dcfbccd0cfdec2f0e9 |
|
MD5 | f17349f63000f371a379aff18d2232b1 |
|
BLAKE2b-256 | 6bd8a9e2ecc456f83c56750a6ee77637d46a9ce2499598930798f62f5d0ecd08 |