Skip to main content

Build Status image Release image Documentation Status GitHub license

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


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

功能

Urp教务系统

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

图书馆

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

教室

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

校园卡

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

通知新闻

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

安装

pip install snnusdk
✨🍰✨

使用示例

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

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://ZhaoQi99.github.io/SNNU-SDK看到本项目的完整使用文档。

贡献你的代码

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

贡献者

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


jhy

💻 📖

谁在使用

开源协议 & 作者

Metadata

Release files for snnusdk 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snnusdk 0.0.2
File Size Uploaded Provenance
snnusdk-0.0.2.tar.gz 35.1 kB Without provenance Details

Release files / snnusdk-0.0.2.tar.gz

Download URL snnusdk-0.0.2.tar.gz
Size 35.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9e140128da703b301b42d4a037739d5d33bbfae3b6e8e4703fdb1952cbde2e60
BLAKE2b-256 checksum
How to use checksums
a4391bd7d97fbf468bf02c8ea65da02c27c90f9ede05ff9c947ae58c3debb765
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

Security for snnusdk 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page