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

Uploaded Python 3

File details

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

File metadata

  • Download URL: thu_network_autoauth-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 ffe1a96f085d34601b7159b21d75f1dc46dffd62f7e6877ae183fe7b6354b638
MD5 5f35d9bcd6b024d4d60b42c923d0462a
BLAKE2b-256 7d466624b87cfc045c37953eae13f1bef452f847f5a0bd019c3c99455af31703

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for thu_network_autoauth-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e395d0e92c6e03856571306198882067fc3e9e4bc9a89a87be1dd78d90e5716a
MD5 021293de6fc0555a0efc50732b839e44
BLAKE2b-256 7adf908bae46302a82b999a4d5b1cc67b24f18ee1c502dcbbbc35dcb881f91fc

See more details on using hashes here.

Provenance

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