Metadata-Version: 2.4
Name: nju-login-simple
Version: 1.1.6
Summary: Login to authserver.nju.edu.cn, using python requests
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: ddddocr>=1.5.6
Requires-Dist: lxml>=6.0.0
Requires-Dist: onnxruntime>=1.19.2
Requires-Dist: pycryptodomex>=3.23.0
Requires-Dist: requests>=2.32.4
Dynamic: license-file

# 南京大学统一认证登陆

从账号密码拿到 `CASTGC` cookie

```python3
import nju_login
response = nju_login.login('学号', '统一认证密码')
```

## 高级用法

```
response = nju_login.login(
  '学号',
  '统一认证密码',
  # 验证码识别回调，不传则使用ddddocr识别
  lambda x: "45cx"
)

# Now the cookies in response represent your login state.
# Specifically the CASTGC cookie.
```
