上海海事大学-校园网-自动认证
<img
src="Assets/Images/Logo/Logo128.png"
alt="Logo"
/>
使用文档
请参考 使用文档
支持平台
- Windows命令行(exe、pip)
- macOS命令行(二进制文件、pip)
- Linux命令行(pip)
- Docker镜像
GUI Coming Soon...
Features
- 自动认证
- 程序记录日志
使用方法
使用 UV 包管理器 (推荐)
本项目现已支持 uv 包管理器,提供更快的依赖安装和管理体验。
快速开始
Windows (PowerShell):
# 自动安装 uv 并初始化项目
.\setup_uv.ps1
# 运行程序
uv run python start_cli.py
Linux/macOS (Bash):
# 自动安装 uv 并初始化项目
./setup_uv.sh
# 运行程序
uv run python start_cli.py
详细的 uv 使用指南请参考 UV_GUIDE.md。
直接使用二进制可执行文件
Docker(推荐在服务器中使用这种方式)
https://hub.docker.com/r/a645162/shmtu-auth
docker pull registry.cn-shanghai.aliyuncs.com/a645162/shmtu-auth:latest
直接运行Python源代码(请手动安装依赖库)
Windows
.\start.ps1
Linux
chmod +x start.sh
./start.sh
环境变量
必选配置项:
学号列表中,学号之间用 ; 分隔
SHMTU_AUTH_USER_LIST: {学号1}; {学号2}SHMTU_AUTH_USER_PWD_{学号1}: {学号1的密码}SHMTU_AUTH_USER_PWD_{学号2}: {学号2的密码}SHMTU_AUTH_USER_PWD_ENCRYPT_{学号1}: {学号1的密码的是否为密文,密文为1,否则不用填}
可选配置项:
SHMTU_MACHINE_NAME: 服务器名称SHMTU_AUTH_TIME_INTERVAL: 认证状态检测时间间隔
开发指南
推荐使用 uv 进行包管理,也可以使用 Anaconda 或 Miniconda 创建虚拟环境。
推荐使用学生认证的 Jetbrains PyCharm Professional 进行开发。
因为许多开发步骤已经在 PyCharm 中配置好,因此推荐使用 PyCharm 进行开发。
GUI说明
Windows下AMD显卡显示Mica云母特效会有问题,因此全局关闭了Mica云母特效。
macOS x64下Python版本必须小于等于3.11,否则无法安装PySide6。
License
本程序使用GPL-3.0协议开源。
GPLv3协议是我非常喜欢的一个协议,我的大部分程序均基于GPLv3协议开源。
此外,本程序使用到的QFluentWidgets库恰好也是基于GPLv3协议开源的。
Metadata
Release files for shmtu-auth 2.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| shmtu_auth-2.2.0.tar.gz | 5.5 MB | Without provenance | Details for shmtu_auth-2.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shmtu_auth-2.2.0-py3-none-any.whl | Python 3 | none | any | Details for shmtu_auth-2.2.0-py3-none-any.whl |
Total release size: 11.2 MB
Release files / shmtu_auth-2.2.0.tar.gz
| Download URL | shmtu_auth-2.2.0.tar.gz |
|---|---|
| Size | 5.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
830393d35f27bb83bc934fd291bc477e1d31a898b6bcb8a75228f793e04101d4
|
|
BLAKE2b-256 checksum How to use checksums |
5837473c969f085f1684843ad65149c171157d80b9ec1fdaac0bbc10f445fa24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / shmtu_auth-2.2.0-py3-none-any.whl
| Download URL | shmtu_auth-2.2.0-py3-none-any.whl |
|---|---|
| Size | 5.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2bcb37c66a6ecce9e392bff034ac58b1acb550fffa1cdc6eae86d6cddd3f88b6
|
|
BLAKE2b-256 checksum How to use checksums |
1d88349ec57727a3bc60771fd9522ecdb846282798bf2ba8e31baa36e16540dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for shmtu-auth 2.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.