A library to fetch the MVHS Schedule.
Project description
MVHS Schedule
A Python library for fetching the MVHS Schedule from the Firebase REST API used by mvhs.io, ported from this NPM package. It provides the same simple functions from that package, and uses asyncio for asynchronous execution.
Installation
pip install mvhs-schedule
Usage
This module is async, so all of the functions need to be awaited. All arguments that need a day require a datetime.date, and the times require datetime.datetime.
[!NOTE]
The module relies on the Firebase app that is maintained by Mr. Nguyen, so if that is ever out-of-date, then this library will likely by inaccurate on special schedule days.
Functions
There are a few functions that you can use:
get_schedule_from_dayreturns the name of the schedule (e.g."Schedule A") given a specific date.get_periods_from_schedulereturns a list ofPeriodfrom a specific scheduleget_periods_from_daywill get simply get the list of periods on a specific dateget_periods_from_day_counttakes in a date and aday_count, which will return a list of lists ofPeriodstarting from the specified date and spanningday_countdays. For example, callingget_periods_from_day_count(date.today(), 7)will return 7 lists of periods for the next week (including today).time_of_periodwill return the start and end time of a period given the day and period
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mvhs_schedule-0.1.0.tar.gz.
File metadata
- Download URL: mvhs_schedule-0.1.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77696fe75cc98807860e652a72ce6b35ca90dc5551ab61729c7cea910f1906dc
|
|
| MD5 |
04f8708f96a2eae32688c73406f604c3
|
|
| BLAKE2b-256 |
45c9125102a278d815f1b505e89c02cac509104373d00d19e055ba09aa4b65ec
|
Provenance
The following attestation bundles were made for mvhs_schedule-0.1.0.tar.gz:
Publisher:
python-package.yml on jt31415/mvhs-schedule
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mvhs_schedule-0.1.0.tar.gz -
Subject digest:
77696fe75cc98807860e652a72ce6b35ca90dc5551ab61729c7cea910f1906dc - Sigstore transparency entry: 257317631
- Sigstore integration time:
-
Permalink:
jt31415/mvhs-schedule@fbf81af331a755a4f08bfa36536b18ad76f9bd4e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/jt31415
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-package.yml@fbf81af331a755a4f08bfa36536b18ad76f9bd4e -
Trigger Event:
push
-
Statement type:
File details
Details for the file mvhs_schedule-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mvhs_schedule-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
828bf8b628d1869654d824f3001fc6c5b7210f8506af1f6bf63429080e372907
|
|
| MD5 |
4a49b08897975b419aaadc7c430e9cb6
|
|
| BLAKE2b-256 |
ab2671e867030e1ce644310635acc30b825f951e50accdc547309a26db1d62f6
|
Provenance
The following attestation bundles were made for mvhs_schedule-0.1.0-py3-none-any.whl:
Publisher:
python-package.yml on jt31415/mvhs-schedule
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mvhs_schedule-0.1.0-py3-none-any.whl -
Subject digest:
828bf8b628d1869654d824f3001fc6c5b7210f8506af1f6bf63429080e372907 - Sigstore transparency entry: 257317642
- Sigstore integration time:
-
Permalink:
jt31415/mvhs-schedule@fbf81af331a755a4f08bfa36536b18ad76f9bd4e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/jt31415
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-package.yml@fbf81af331a755a4f08bfa36536b18ad76f9bd4e -
Trigger Event:
push
-
Statement type: