Skip to main content

OpenTamPy - A Python library to interface with https://intranet.tam.ch/

Project description

OpenTamPy

Documentation Status build

A Python Library to simplify the access to the Intranet website

Full Documentation

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

  1. Clone the repo from https://github.com/neonfighter28/OpenTamPy
  2. 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

  1. Make sure you have mypy and pycodestyle installed
  2. run mypy ./src/OpenTamPy.py
  3. run pycodestyle OpenTamPy.py --max-line-length=119

Pushing to GitHub

  1. Fork the project
  2. Commit your changes
  3. Create a Pull Request

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

OpenTamPy-0.10.0.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

OpenTamPy-0.10.0-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file OpenTamPy-0.10.0.tar.gz.

File metadata

  • Download URL: OpenTamPy-0.10.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.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for OpenTamPy-0.10.0.tar.gz
Algorithm Hash digest
SHA256 67de5283b0aa7e6105e247bf3224e1ffb7261ba199991b715c826e3a730f6c0e
MD5 e25d8722e44e0723bb5251f787d18b3c
BLAKE2b-256 54236a4c266679a5b7b3a3c204053b6b11f72ccc4f8de30c692c2a60e4ae0ee1

See more details on using hashes here.

File details

Details for the file OpenTamPy-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: OpenTamPy-0.10.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.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for OpenTamPy-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d5768d17f3ef90ec9106c4b9de5bd86b019ac08d8f42830c804e22d5bd14c38f
MD5 91e49b22d5eaad4f1acb21e608e4bffd
BLAKE2b-256 0716f3465fafb1b7a623ad5899bcba2e15fcb426636007e864e0a601a4f9e5f0

See more details on using hashes here.

Supported by

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