Skip to main content

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())

许可证

AGPLv3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scau_jwxt_auth-0.1.2.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scau_jwxt_auth-0.1.2-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

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

Hashes for scau_jwxt_auth-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fb8550853b9379d86d76bfee65522776003a565a387dafcf23d98a7234029617
MD5 29c10500e333e9b1aa472018af654c24
BLAKE2b-256 929485ba1084400b7e5237c4f215362adb2b9ed0e52e96a7d4fdb0837a2c55f8

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for scau_jwxt_auth-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 389e9b2401e86dbc69e2e11ef3d57b33e2d6fbcb1d42053f898ed8100527347c
MD5 c63d7b9d14dc0d6cf766cba6c10d80ce
BLAKE2b-256 d390e55ad63d241baba6d03a1119f9fde5ecb2a6918dbefed1fea26d7869c6bb

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page