Skip to main content

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

thu_network_autoauth-0.1.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

thu_network_autoauth-0.1.1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

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

Hashes for thu_network_autoauth-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bb8e1298b9b3020d678d5f2355b703333845e948d3ea4f34a64c09881a0f3895
MD5 595aad5d041dc1c84cb8a56728594eb2
BLAKE2b-256 42a93b2adf326444afeea89dda774ac28ad16e8c8e076c3e0d959a6ded499703

See more details on using hashes here.

Provenance

The following attestation bundles were made for thu_network_autoauth-0.1.1.tar.gz:

Publisher: publish.yml on 2745518585/thu-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 thu_network_autoauth-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for thu_network_autoauth-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2b29680eb34ad822416a4cee5d09d62bf59c17bb250fce39c7859e7d2f31c98a
MD5 c69fbeb49ae2e19ee17af1584591f853
BLAKE2b-256 d27d5473a86a45fca1d553e30ffe3677bd045ab2c4d3b6baf75d567991750b58

See more details on using hashes here.

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

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