Skip to main content

BUPT Session

北邮统一登录网关 Session。用于需要登录的网络请求。

Usage

from bupt_session_py import Session

session = Session()

try:
    session.login('2022114514', 'yjsp1919810')

    # 进行一些北邮服务的网络请求
    # 这里以查询电费服务为例子 
    # (More detail: https://github.com/jerrymakesjelly/electricity-monitor)
    session.post('https://app.bupt.edu.cn/buptdf/wap/default/chong', allow_redirects=False)
    session.post('other url')
    # ...
except Exception as e:
    print(e)

Metadata

Release files for bupt-session 0.1.0

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

Source distribution (sdist)

Source distribution for bupt-session 0.1.0
File Size Uploaded
bupt_session-0.1.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bupt-session 0.1.0
File Interpreter ABI Platform
bupt_session-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / bupt_session-0.1.0.tar.gz

Download URL bupt_session-0.1.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a300517651d006f7a51d2859877ceb7e17628fbde7e454939993456d734093d0
BLAKE2b-256 checksum
How to use checksums
5b2dab03b0ee0a81c93279712fbef1504822bd0d7422ddb99381cc9af8465346
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release files / bupt_session-0.1.0-py3-none-any.whl

Download URL bupt_session-0.1.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
84265c90dc6f42eb41f66c597cfc0290150a792b9ae2f3471dff7c3240f8e75a
BLAKE2b-256 checksum
How to use checksums
a21c802d71c47ac64da1e5b9a6120c25688abbf191649be61c4488771661dabf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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