Coder Social home page Coder Social logo

allen-stephen-71 / school-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dairoot/school-api

0.0 0.0 0.0 3.69 MB

🌱 校园教务系统接口,正方教务系统 SDK for Python

Home Page: https://dairoot.github.io/school-api/

License: MIT License

Python 100.00%

school-api's Introduction

正方系统 Python SDK。

Build Status Scrutinizer Code Quality codecov pypi Downloads

Usage

$ pip install School-Api
from school_api import SchoolClient

# 先实例化一个学校,再实例化用户
school = SchoolClient(url='http://210.38.137.126:8016')
user = school.user_login('2014xxxx', 'xxxx')
schedule_data = user.get_schedule()
print(schedule_data)

线上测试接口

【阅读文档】 使用示例参见 examples

Api Function

Api Description Argument
user_login 登陆函数 account, password, user_type=1, use_cookie_login=True
get_schedule 课表查询 schedule_year=None, schedule_term=None, schedule_type=None
get_score 成绩查询 score_year=None, score_term=None, use_api=0
get_info 用户信息查询
get_place_schedule 教学场地课表查询(可用于空教室查询) campus_list=None, building_list=None, classroom_type_list=None, classroom_name_list=None, filter_campus_list=None, filter_building_list=None, filter_classroom_type_list=None

School-Api Options

Option Default Description
url 不存在默认值 教务系统地址(必填)
name NULL 学校名称
code NULL 学校英文缩写
login_url_path /default2.aspx 登录地址路径
lan_url None 内网地址
exist_verify True 是否存在验证码
use_ex_handle True 是否使用异常处理
priority_proxy False 是否优先使用代理
proxies None 代理地址
url_path_list 学校接口地址列表
class_time_list 上课时间列表
timeout 10 全局请求延时
session MemoryStorage 缓存工具(推荐使用redis)

User permissions

用户 \权限 个人课表类型 班级课表类型 个人信息 成绩信息
学生课表 教师课表 学生课表 教师课表 教学场地课表
学生
教师
部门

school-api's People

Contributors

dairoot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.