Skip to main content

Python API Wrappers for NJUPT. 南京邮电大学网站接口 Python 封装

【阅读文档】

功能特性

正方教务

校园卡系统

图书馆系统

早锻炼系统

安装

pipenv install njupt # or pip install njupt
# 仅支持python3

使用示例

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

from njupt import Zhengfang
zf = Zhengfang(account='B1xxxxxxx',password='password')
>>> zf.get_courses()
[
    {
        'class_end': 9,
        'class_start': 8,
        'day': 1,
        'name': '市场营销',
        'room': '教4-101',
        'teacher': '王波(男)',
        'week': '第1-15周|单周',
        'interval': 2,
        'week_end': 15,
        'week_start': 1
    },
    ...
]


from njupt import Card
card = Card(account='11020xxxxxxxxxx',password='passwd')

>>> card.recharge_xianlin_elec(amount=2.33,building_name='兰苑11栋',big_room_id='403', small_room_id='1')
{
    'success': True,
    'code' : 0,
    'Msg' : '缴费成功!'
}

更多示例参见 examples

谁在使用?

  • NJUPT-iCal : 生成课表ics文件并导入系统日历

Metadata

Release files for njupt 0.2.3

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

Source distribution (sdist)

Source distribution for njupt 0.2.3
File Size Uploaded Provenance
njupt-0.2.3.tar.gz 58.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for njupt 0.2.3
File Interpreter ABI Platform
njupt-0.2.3-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 499.8 kB

Release files / njupt-0.2.3.tar.gz

Download URL njupt-0.2.3.tar.gz
Size 58.3 kB
Tags Source
SHA-256 checksum
How to use checksums
84c5b809d00ba3e70b6955c3c24773991b411b2114cef69b145768dcefa8f79f
BLAKE2b-256 checksum
How to use checksums
48547176a9f55478c677c71a499ed7f59aea901b8ddf65189f840c68f6b7d47b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

Release files / njupt-0.2.3-py2.py3-none-any.whl

Download URL njupt-0.2.3-py2.py3-none-any.whl
Size 441.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5d5291b61dd2d5a5a0ec09ec72d9aebc03570c7582f51faba5f58f88fc479dea
BLAKE2b-256 checksum
How to use checksums
76527134f7cb3296c0bd8e8fd9c54abce4448e0fac1d3b9ea6e1f6ecd817ad8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

Security for njupt 0.2.3

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.

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