zf School SDK for Python
Project description
正方系统 Python SDK。
Usage
$ pip install school-sdk
# or
$ pip install zf-school-sdk
from school_sdk import SchoolClient
# 先实例化一个学校,再实例化用户
school = SchoolClient("172.16.254.1", exist_verify=True)
user:UserClient = school.user_login("2018xxxxx", "xxxxxxxx")
cours = user.get_schedule()
print(cours)
Api Function
Api | Description | Argument |
---|---|---|
user_login | 登陆函数 | account, password |
get_schedule | 课表查询 | None |
School-SDK Options
Option | Default | Description |
---|---|---|
host | 不存在默认值 | 教务系统地址(必填 ) |
port | 80 | 端口号 |
ssl | http | 教务系统是否使用https |
name | None | 学校名称 |
exist_verify | False | 是否存在验证码 |
lan_host | None | 内网地址 |
lan_port | 80 | 内网地址端口 |
timeout | 10 | 全局请求延时 |
url_endpoints | None | 地址配置 |
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
zf-school-sdk-1.0.5.tar.gz
(17.0 kB
view hashes)
Built Distribution
Close
Hashes for zf_school_sdk-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a43aebb2020fe9085997886bd8f2cd332e01eac6187888f7ba3ea663a2470b06 |
|
MD5 | d673c99be36796a5a501fcc1c2226f87 |
|
BLAKE2b-256 | 80e3c692bb56fbed95d0ceb6ba344358a1f537b92abdf51a969d17c72af5942b |