Add your description here
Project description
Thu Network AutoAuth
Thu Network AutoAuth 是一个自动连接清华大学校园网的工具,运行时将扫描指定 ip 地址的可达性和该地址在清华大学校园网自服务平台的在线状态,若 ip 地址可达但未在线,则通过自服务平台的准入代认证接口对该地址进行认证。
由于清华大学校园网自服务平台的登录和认证需要给出清华大学用户电子身份的密码,因此 Thu Network AutoAuth 会将密码保存在系统的安全存储中(如 Windows Credential Manager、macOS Keychain 或 Linux Secret Service),使用本工具即代表同意将密码保存在系统当前用户的安全存储中。
安装
通过 pip 安装:
pip install thu-network-autoauth
使用
在开始使用前,请先运行以下命令设置密码和配置:
thu-auth --password
thu-auth --config
无参数运行将启动自动认证服务:
thu-auth
配置文件和日志文件地址将在运行后打印到控制台,其中配置文件格式如下:
account: username # 清华大学用户电子身份用户名
password:
service_name: thu-auth # 密码在系统安全存储中的服务名称
devices:
- 192.168.1.100 # 需要监控的 IP 地址列表
- 192.168.1.101
monitor:
check_interval: 60 # 两次扫描之间的时间间隔,单位为秒
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
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 thu_network_autoauth-0.1.1.tar.gz.
File metadata
- Download URL: thu_network_autoauth-0.1.1.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb8e1298b9b3020d678d5f2355b703333845e948d3ea4f34a64c09881a0f3895
|
|
| MD5 |
595aad5d041dc1c84cb8a56728594eb2
|
|
| BLAKE2b-256 |
42a93b2adf326444afeea89dda774ac28ad16e8c8e076c3e0d959a6ded499703
|
Provenance
The following attestation bundles were made for thu_network_autoauth-0.1.1.tar.gz:
Publisher:
publish.yml on 2745518585/thu-auth
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
thu_network_autoauth-0.1.1.tar.gz -
Subject digest:
bb8e1298b9b3020d678d5f2355b703333845e948d3ea4f34a64c09881a0f3895 - Sigstore transparency entry: 1235830051
- Sigstore integration time:
-
Permalink:
2745518585/thu-auth@ea1e73960c3e66d5302e72dfdd7836ef33e04c8c -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/2745518585
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ea1e73960c3e66d5302e72dfdd7836ef33e04c8c -
Trigger Event:
push
-
Statement type:
File details
Details for the file thu_network_autoauth-0.1.1-py3-none-any.whl.
File metadata
- Download URL: thu_network_autoauth-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b29680eb34ad822416a4cee5d09d62bf59c17bb250fce39c7859e7d2f31c98a
|
|
| MD5 |
c69fbeb49ae2e19ee17af1584591f853
|
|
| BLAKE2b-256 |
d27d5473a86a45fca1d553e30ffe3677bd045ab2c4d3b6baf75d567991750b58
|
Provenance
The following attestation bundles were made for thu_network_autoauth-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on 2745518585/thu-auth
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
thu_network_autoauth-0.1.1-py3-none-any.whl -
Subject digest:
2b29680eb34ad822416a4cee5d09d62bf59c17bb250fce39c7859e7d2f31c98a - Sigstore transparency entry: 1235830093
- Sigstore integration time:
-
Permalink:
2745518585/thu-auth@ea1e73960c3e66d5302e72dfdd7836ef33e04c8c -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/2745518585
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ea1e73960c3e66d5302e72dfdd7836ef33e04c8c -
Trigger Event:
push
-
Statement type: