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.0.1.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for SZPT_Course-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e75fef1e8aee8bde270bb192b8a225112ee9688e77b0081b1f64e5a50e5495e6 |
|
MD5 | a6e07de5ab32fb4a8d9ca79b2d929937 |
|
BLAKE2b-256 | ccd5e9c85b5c554652b26acdb2484855c4fc16b8b9c661d2d28d6c31e576b253 |