Skip to main content

auth_swust

PyPI Python Version Code style: black

免责声明

请自觉遵守所在国家/地区法律法规,本程序仅供学习参考,一切法律责任由用户自己承担,与开发者无关。

开始使用

安装:

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

FAQ点我点我

开发须知

开发前安装依赖

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)

Source distribution for auth-swust 1.5.0
File Size Uploaded
auth_swust-1.5.0.tar.gz 1.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for auth-swust 1.5.0
File Interpreter ABI Platform
auth_swust-1.5.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.2

2 release files

1.3.0

1 release file

1.2.8

1 release file

1.2.7

1 release file

1.2.6

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page