Code Monkey home page Code Monkey logo

snnu-sdk's Introduction

Codacy Badge Build Status image Release image Documentation Status GitHub license Language grade: Python

陕西师范大学(SNNU) 第三方Python SDK


SNNU-SDK 是陕西师范大学(SNNU)的一个第三方Python-SDK,实现了校内常用服务如教务处、图书馆、校园卡、教室查询等接口的Python封装。

功能

Urp教务系统

  • 本学期课表
  • 历年课表
  • 本学期成绩
  • 历年考试成绩
  • 必修课绩点

图书馆

  • 基本信息
  • 在借书籍
  • 预约书籍
  • 现金事务
  • 挂失、解挂图书证
  • 预约到馆信息

教室

  • 某教学楼的所有教室号
  • 某教学楼某周的所有教室的状态
  • 某教学楼某周某一教室的状态

校园卡

  • 校园卡消费明细
  • 校园卡余额
  • 校园卡照片

通知新闻

  • 某部门的最新通知
  • 某部门的最新新闻
  • 所支持的部门

安装

安装snnusdk

pip install snnusdk
✨🍰✨

(可选)安装Tesseract-OCR

如需正常使用Urp教务系统相关功能,需安装OCR识别引擎

使用示例

这里是一些简单的使用案例

from snnusdk import Urp
urp = Urp(account='B11111111', password='xxx')

>>> urp.getCourses()
[
    {
        'id': '1241416', 
        'name': '算法设计与分析', 
        'number': '01', 
        'credits': 3.0, 
        'attributes': '必修', 
        'teacher': '王小明*', 
        'status': '置入', 
        'info': [
                    {
                        'week': '1-18周上', 
                        'day': '2', 
                        'timeOfClass': '1', 
                        'numOfClass': '2', 
                        'campus': '长安校区', 
                        'buildings': '长安文津楼', 
                        'room': '1511'
                    }
                ]
    }
]

from snnusdk import Libiary
libiary = Library(username='B11111111', password='xxx')

>>> library.getInfo()
{
    '帐号ID': '2016xxxxx', 
    '姓名': '张三', 
    '昵称': 'xx', 
    '登录次数': '123', 
    '状态': '正常'
}

文档

你可以在https://snnucs.github.io/SNNU-SDK看到本项目的完整使用文档。

贡献你的代码

欢迎您贡献出自己的一份力量,你可以随时提交issuefork本仓库,静候你的pull request

贡献者

感谢所有对本项目做出过贡献的开发者(emoji key):


jhy

💻 📖

Keyi Xie

📖

谁在使用

开源协议 & 作者

snnu-sdk's People

Contributors

codacy-badger avatar small-funny avatar xiekeyi98 avatar zhaoqi99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

precious211

snnu-sdk's Issues

自动在PyPi上发布

如题,实现一个需求:
每发布一个release时,触发CI,自动在PyPi上发布对应版本的包。

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.