A simple Course query Python package for SZPT.
Project description
SZPT-Course
A simple Course query Python package for SZPT.
How to use
As shown below.
Installation
- Starting from version 0.0.1, the module will be uploaded to pypi. You can also install it directly using pip.
pip install SZPT-Course
Manual Installation
-
Open the release page to find the latest version of the installation file.
-
(Optional) download to this machine through browser, and then use pip to execute the following command to install.
pip install SZPT-Course-0.0.1-py3-none-any.whl
- Of course, you can also directly copy the download link of the installation package and use pip for online installation. (execute the following command)
# Note: that the link here is version 0.0.1, please replace it with the latest version.
pip install https://github.com/HsOjo/SZPT-Course/releases/download/0.0.1/SZPT-Course-0.0.1-py3-none-any.whl
Example code
from szpt_course import Course
c = Course('<Course System Host>')
print(c.current_stu_year)
print(c.current_date)
print(c.current_week)
print(c.current_day)
cs = c.query('<Your Number>')
for i in cs:
if i.week == c.current_week:
print(i, i.day == c.current_day)
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
SZPT-Course-0.1.3.tar.gz
(4.8 kB
view details)
Built Distribution
File details
Details for the file SZPT-Course-0.1.3.tar.gz
.
File metadata
- Download URL: SZPT-Course-0.1.3.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43438d6c42c8ff650c59e09776dc91e6157dfdd8675b8ab4536027a673ca7fda |
|
MD5 | 2e25a3f794595299d1072d3096e5a2f6 |
|
BLAKE2b-256 | 04c998d273d0cc58f389f492d369ebf21dc1f6ff06096103aed8fc4c630a37e4 |
File details
Details for the file SZPT_Course-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: SZPT_Course-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08b8e010f87cd3b2b26d7763a6efa48bc03bb3f85980ec5491b0115ba5c4c172 |
|
MD5 | 3fbab28268ac3e8c2c72e6e993aa5961 |
|
BLAKE2b-256 | 8d188ef400615ef5a918000afe34ee9f177010e2e5f5f385e365751dbfb9087b |