A package for authenticating with SCAU JWXT system.
Project description
SCAU JWXT Auth
用于华南农业大学教务系统(SCAU JWXT)的身份认证库,可以一键获取鉴权所需的 Cookie 和 Headers,全天可用,自动处理夜间需要 VPN 的情况。
安装
pip install scau-jwxt-auth
使用方法
from scau_jwxt_auth import JWXT
# 初始化 JWXT 实例
client = JWXT(user_code="your_student_id", password="your_password", sso_password="your_sso_password")
import time
import requests
# 获取用户信息
url = (f"{client.base_url}/secService/assert.json?"
"resourceCode=resourceCode&"
"apiCode=framework.sign.controller.SignController.asserts&"
f"t={int(time.time()*1000)}&sf_request_type=ajax"
)
session = client.get_session()
response = session.get(url, timeout=15)
response.raise_for_status()
# 打印用户信息
print(response.json())
许可证
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scau_jwxt_auth-0.1.2.tar.gz.
File metadata
- Download URL: scau_jwxt_auth-0.1.2.tar.gz
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb8550853b9379d86d76bfee65522776003a565a387dafcf23d98a7234029617
|
|
| MD5 |
29c10500e333e9b1aa472018af654c24
|
|
| BLAKE2b-256 |
929485ba1084400b7e5237c4f215362adb2b9ed0e52e96a7d4fdb0837a2c55f8
|
Provenance
The following attestation bundles were made for scau_jwxt_auth-0.1.2.tar.gz:
Publisher:
python-package.yml on CberYellowstone/SCAU_JWXT_Auth
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scau_jwxt_auth-0.1.2.tar.gz -
Subject digest:
fb8550853b9379d86d76bfee65522776003a565a387dafcf23d98a7234029617 - Sigstore transparency entry: 202282917
- Sigstore integration time:
-
Permalink:
CberYellowstone/SCAU_JWXT_Auth@97faf51fbff303c6c169b1d6112345da06c35920 -
Branch / Tag:
refs/tags/0.1.2 - Owner: https://github.com/CberYellowstone
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-package.yml@97faf51fbff303c6c169b1d6112345da06c35920 -
Trigger Event:
release
-
Statement type:
File details
Details for the file scau_jwxt_auth-0.1.2-py3-none-any.whl.
File metadata
- Download URL: scau_jwxt_auth-0.1.2-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
389e9b2401e86dbc69e2e11ef3d57b33e2d6fbcb1d42053f898ed8100527347c
|
|
| MD5 |
c63d7b9d14dc0d6cf766cba6c10d80ce
|
|
| BLAKE2b-256 |
d390e55ad63d241baba6d03a1119f9fde5ecb2a6918dbefed1fea26d7869c6bb
|
Provenance
The following attestation bundles were made for scau_jwxt_auth-0.1.2-py3-none-any.whl:
Publisher:
python-package.yml on CberYellowstone/SCAU_JWXT_Auth
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scau_jwxt_auth-0.1.2-py3-none-any.whl -
Subject digest:
389e9b2401e86dbc69e2e11ef3d57b33e2d6fbcb1d42053f898ed8100527347c - Sigstore transparency entry: 202282924
- Sigstore integration time:
-
Permalink:
CberYellowstone/SCAU_JWXT_Auth@97faf51fbff303c6c169b1d6112345da06c35920 -
Branch / Tag:
refs/tags/0.1.2 - Owner: https://github.com/CberYellowstone
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-package.yml@97faf51fbff303c6c169b1d6112345da06c35920 -
Trigger Event:
release
-
Statement type: