Skip to main content

pytdsbconnects

Python 3 MIT License PyPI

A basic Python TDSB Connects API using aiohttp.

Made with info and help from @mincrmatt12.

Example usage:

import asyncio
import datetime
import tdsbconnects
from getpass import getpass

async def main():
    async with tdsbconnects.TDSBConnects() as session: # type: tdsbconnects.TDSBConnects
        print("loggin in")
        await session.login(input("Username: "), getpass())
        print("getting info")
        info = await session.get_user_info()
        print(info.name, "is a", info.roles[0], "at", info.schools[0].name, "with code",
              info.schools[0].code, "in the school year", info.schools[0].school_year, "starting on",
              info.schools[0].school_year_start, "and ending on", info.schools[0].school_year_end)
        date = datetime.datetime.strptime(input("enter a date to get your timetable for (YYYY-MM-DD): "), "%Y-%m-%d")
        timetable = await info.schools[0].timetable(date)
        if timetable:
            print("that day is a day", timetable[0].course_cycle_day, "and here are your courses:")
            for item in timetable:
                print("In period", item.course_period, "(starting at", item.course_start, "and ending at",
                item.course_end, ") you have class", item.course_name, "with code", item.course_code, "(block",
                item.course_block, ") with teacher", item.course_teacher_name, "(email:", item.course_teacher_email, ")")
        else:
            print("no timetable for that day.")


asyncio.get_event_loop().run_until_complete(main())

Metadata

Release files for pytdsbconnects 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytdsbconnects 0.1.1
File Size Uploaded Provenance
pytdsbconnects-0.1.1.tar.gz 5.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pytdsbconnects 0.1.1
File Interpreter ABI Platform
pytdsbconnects-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.4 kB

Release files / pytdsbconnects-0.1.1.tar.gz

Download URL pytdsbconnects-0.1.1.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4dbdd55368e6bb5276333e0c4078fd4b41df40a041bf8d0fd43e9e7b1ef0e473
BLAKE2b-256 checksum
How to use checksums
2eee0d760736d44752b386db843255fccf1b0223a597df667fb6a354fc4b1aea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9

Release files / pytdsbconnects-0.1.1-py3-none-any.whl

Download URL pytdsbconnects-0.1.1-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
67c5bfc155d3ef53d902afa65cf56d758e05f47e08267d34a805732005cb0c73
BLAKE2b-256 checksum
How to use checksums
13a63bb2a285da0c4e070021241b172518ba588ba92866557d27a583ce40a33b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9

Security for pytdsbconnects 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page