This project has been archived by its maintainers, and is no longer receiving any updates.
CHD Login Tool
The CHD login tool is used to simplify the simulated login when accessing the CHD portal. Just follow the steps below to easily login with your username and password.
Install Packages
We recommend that you use the latest version to avoid unknown login failures.
pip install chd_login
Use this Tool
If you pass the need_detail=True parameter, when the login is successful, you can get the user's cookie.
If you pass the need_session=True parameter, when the login is successful, you can get the session, so you can direct use session to visit the site directly. Session is a requests.session() obj.
from chd_login import IDSClient
# uid & password should match with chd portal site.
client = IDSClient(login_url, need_detail=True, need_session=True)
result, detail, session = client.login(uid, password)
# login success
if result:
pass
# login failed
else:
print(detail)
Warning
Multiple attempts to login with the same account in a short period of time will trigger a verification code. Please login manually on the CHD portal site to solve the problem.
The behavior of the problem is that when you are using correct uid and password login, it returns 401 and 'check your username or password'.
Others
If you have other usage questions, please contact me directly by oren_zhang@outlook.com.
Metadata
Release files for chd-login 0.0.9
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 |
|---|---|---|---|---|
| chd_login-0.0.9.tar.gz | 3.6 kB | Without provenance | Details for chd_login-0.0.9.tar.gz |
Release files / chd_login-0.0.9.tar.gz
| Download URL | chd_login-0.0.9.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee71436ca4252d6c4fc442f803041d9ee563fb43bf4f7172351ffdd43afc1439
|
|
BLAKE2b-256 checksum How to use checksums |
15e09eb636bd24362888c0abd115879e8400d0782114d1601b030f5e621cfdf7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.20.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Security for chd-login 0.0.9
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.