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.2.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.2-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file thu_network_autoauth-0.1.2.tar.gz.

File metadata

  • Download URL: thu_network_autoauth-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 123cedacc69468f0723011acdbd3b9ebf7bb9cb7294f0921685c6a0b7ed84c15
MD5 029e6a86335b40812b9cafbf934de9b5
BLAKE2b-256 4c971b753cec6ac4e576127e5a53d74fb75cf6a588e6c74bd3da96feff1b333f

See more details on using hashes here.

Provenance

The following attestation bundles were made for thu_network_autoauth-0.1.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for thu_network_autoauth-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6b3f7b96dc6ad65644effd113c8cf5aea109de71a2232121cacdc606b316fc54
MD5 be0ba9df5647f5ae0b6c134198bb2f39
BLAKE2b-256 9ce0e81a107caddb042d69a0091343ba5b4c8c99a7eaa3a1529d927ffc16ae88

See more details on using hashes here.

Provenance

The following attestation bundles were made for thu_network_autoauth-0.1.2-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