auth_swust
免责声明
请自觉遵守所在国家/地区法律法规,本程序仅供学习参考,一切法律责任由用户自己承担,与开发者无关。
开始使用
安装:
pip install auth-swust
注意,在你开始使用之前,需要安装需要的两个深度学习框架之一!
注意,在你开始使用之前,需要安装需要的两个深度学习框架之一!
注意,在你开始使用之前,需要安装需要的两个深度学习框架之一!
在你的项目中引入包:
import os
import sys
# 设置验证码识别框架 需要先安装 keras, tensorflow
os.environ['CAPTCHA_BACKEND'] = "keras"
from loguru import logger
from auth_swust import Login, default_logger
# 设置 log 等级
logger.remove(default_logger)
logger.add(sys.stdout, level="DEBUG")
login = Login("xxxxxx", "xxxxxxx")
res, info = login.try_login()
# 使用上面的返回值进行下一步的处理
# 具体返回值类型可以查看代码 try_login 的注释
如果你想设置 log 等级,请查看: 设置 LOG
开发须知
开发前安装依赖
pip install -r requirements.txt
测试所需依赖:
pip install -r dev/requirements_test.txt
测试:
pytest
在本地安装
python setup.py install
生成包:
python setup.py sdist bdist_wheel
Metadata
Release files for auth-swust 1.5.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 |
|---|---|---|---|---|
| auth_swust-1.5.0.tar.gz | 1.5 MB | Without provenance | Details for auth_swust-1.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| auth_swust-1.5.0-py3-none-any.whl | Python 3 | none | any | Details for auth_swust-1.5.0-py3-none-any.whl |
Total release size: 3.0 MB
Release files / auth_swust-1.5.0.tar.gz
| Download URL | auth_swust-1.5.0.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73a06b05edd0f77cbb8d8d448174682d452637ebdaef26d5730801f1e156915c
|
|
BLAKE2b-256 checksum How to use checksums |
7c866a8b76f2215598210ec785f98c0b11a9b33fe1310bef2b4af1133ced5b9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
|
Release files / auth_swust-1.5.0-py3-none-any.whl
| Download URL | auth_swust-1.5.0-py3-none-any.whl |
|---|---|
| Size | 1.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9f39614b4fe9ab31bd32c9e65fab1902325d5450196e2fee3ba148b057c3a8c
|
|
BLAKE2b-256 checksum How to use checksums |
4c1d46de287180c421197b8297a4fc6bd75005f3487ccbf483019d0c2d382bb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
|
Security for auth-swust 1.5.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.