pro-sejong-auth (Python)
Sejong University login API for Python · 세종대 로그인 API
Verify a Sejong University student with a student ID and password through the portal SSO, and get their major, year, classic-reading certification and contact info. No dependencies beyond the standard library.
▶ Try the live demo · one portal login per call (about 0.8 s) · same results as the Java and Node packages · stops at the first wrong password · checked against the live portal every day
pip install pro-sejong-auth
from sejong_auth import authenticate, SejongAuthError, ErrorCode
try:
result = authenticate("21011234", "password")
print(result.name, result.major, result.grade)
except SejongAuthError as error:
if error.code == ErrorCode.AUTHENTICATION_FAILED:
print("Wrong student ID or password")
elif error.code == ErrorCode.ACCOUNT_LOCKED:
print("Portal account locked: reset the password on the portal")
| Function | Returns |
|---|---|
authenticate(id, pw) |
student info + classic reading + contact (contact is None if that lookup fails) |
authenticate_dhc(id, pw, include_raw=False) |
student info + classic reading |
authenticate_sis(id, pw, include_raw=False) |
student info + email, phone, English name |
Settings: SejongAuthClient(timeout_seconds=10, max_retry=3, ssl_verification=True).
Error codes (error.code): AUTHENTICATION_FAILED, ACCOUNT_LOCKED, ACCOUNT_UNAVAILABLE, INVALID_INPUT, CONNECTION_FAILED, CONNECTION_TIMEOUT, SESSION_ERROR, DATA_FETCH_FAILED, PARSE_ERROR, SSL_CONFIGURATION_ERROR. Branch on the code, not the message.
Account lock. The Sejong portal locks an account after repeated wrong passwords (about 5). Only a password reset at https://portal.sejong.ac.kr/jsp/inquiry/pwinquiry.jsp unlocks it. The library never retries a rejected login. If anyone can type a student ID into your service, limit failed attempts per student ID.
Requires Python 3.9+. Not an official Sejong University product.
Docs, live demo and Java / Node versions: https://cassiiopeia.github.io/pro-sejong-auth/
Metadata
Release files for pro-sejong-auth 1.2.21
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 | |
|---|---|---|---|---|
| pro_sejong_auth-1.2.21.tar.gz | 15.2 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pro_sejong_auth-1.2.21-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.0 kB
Release files / pro_sejong_auth-1.2.21.tar.gz
| Download URL | pro_sejong_auth-1.2.21.tar.gz |
|---|---|
| Size | 15.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
10edd093b0d452087c2557e4a632a75bd906adbfb29a0cbdd2eba26ff5de77df
|
|
BLAKE2b-256 checksum How to use checksums |
ffe21893ae80b6028731628f8bc1af417f79cb581dfc081428b454aca759e32b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / pro_sejong_auth-1.2.21-py3-none-any.whl
| Download URL | pro_sejong_auth-1.2.21-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e08225ae5e63f88e56ede5709c795ca49acc4287ef2e0bf60affe140921ebff3
|
|
BLAKE2b-256 checksum How to use checksums |
186148c0e5f8cf81d0d69c683581797cb2e15ce95cf39fcf6f38a41dd0699645
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logSecurity for pro-sejong-auth 1.2.21
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for pro_sejong_auth-1.2.21.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logA 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.