Skip to main content

pro-sejong-auth (Python)

세종대 로그인 API (Python) · Sejong University login API

한국어 | English

학번과 포털 비밀번호로 세종대 재학생 여부를 확인하고 학과, 학년, 고전독서 인증, 연락처를 가져옵니다. 표준 라이브러리 외 의존성이 없습니다.

▶ 브라우저에서 바로 체험하기 · 호출 한 번에 포털 로그인 한 번 (약 0.8초) · Java·Node 패키지와 같은 결과 · 비밀번호가 틀리면 바로 멈춤 · 매일 실제 포털로 점검

pip install pro-sejong-auth
from sejong_auth import authenticate, SejongAuthError, ErrorCode

try:
    result = authenticate("21011234", "비밀번호")
    print(result.name, result.major, result.grade)
except SejongAuthError as error:
    if error.code == ErrorCode.AUTHENTICATION_FAILED:
        print("학번 또는 비밀번호가 틀렸습니다")
    elif error.code == ErrorCode.ACCOUNT_LOCKED:
        print("포털 계정이 잠겼습니다. 포털에서 비밀번호를 재설정하세요")
함수 반환
authenticate(id, pw) 학생 정보 + 고전독서 + 연락처 (연락처 조회가 실패하면 연락처만 None)
authenticate_dhc(id, pw, include_raw=False) 학생 정보 + 고전독서
authenticate_sis(id, pw, include_raw=False) 학생 정보 + 이메일, 전화번호, 영문 이름

설정: SejongAuthClient(timeout_seconds=10, max_retry=3, ssl_verification=True).

에러 코드(error.code): AUTHENTICATION_FAILED, ACCOUNT_LOCKED, ACCOUNT_UNAVAILABLE, INVALID_INPUT, CONNECTION_FAILED, CONNECTION_TIMEOUT, SESSION_ERROR, DATA_FETCH_FAILED, PARSE_ERROR, SSL_CONFIGURATION_ERROR. 메시지가 아니라 코드로 분기하세요.

계정 잠금. 세종대 포털은 비밀번호를 여러 번 틀리면(약 5회) 계정을 잠급니다. https://portal.sejong.ac.kr/jsp/inquiry/pwinquiry.jsp 에서 비밀번호를 재설정해야 풀립니다. 라이브러리는 거부된 로그인을 재시도하지 않습니다. 누구나 학번을 입력할 수 있는 서비스라면 학번별 실패 횟수를 제한하세요.

Python 3.9 이상. 세종대학교 공식 제품이 아닙니다.

문서, 라이브 데모, Java·Node 버전: https://cassiiopeia.github.io/pro-sejong-auth/

English

Verify a Sejong University student with a student ID and portal password, and get their major, year, classic-reading certification and contact info. The API above is the same in English; error messages are in English. Full English docs: README.en.md.

Metadata

Release files for pro-sejong-auth 1.2.23

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pro-sejong-auth 1.2.23
File Size Uploaded Provenance Actions
pro_sejong_auth-1.2.23.tar.gz 15.6 kB With provenance Details for pro_sejong_auth-1.2.23.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pro-sejong-auth 1.2.23
File Interpreter ABI Platform Actions
pro_sejong_auth-1.2.23-py3-none-any.whl Python 3 none any Details for pro_sejong_auth-1.2.23-py3-none-any.whl

Total release size: 30.9 kB

Release files / pro_sejong_auth-1.2.23.tar.gz

Download URL pro_sejong_auth-1.2.23.tar.gz
Size 15.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9fe0e0c4361b44b352c2d89a1cd9a7196d5caaa1720b348e977c8154179e7c62
BLAKE2b-256 checksum
How to use checksums
8c390547d82fc0472fe731b841342aa42d8e3d764e6979ea1e5c1d8b2bbcc0fe
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 29, 2026.

Transparency log

Release files / pro_sejong_auth-1.2.23-py3-none-any.whl

Download URL pro_sejong_auth-1.2.23-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08f5de0bf4d70acd4cd1b8794c7282744d1515b6c68753b5476d0487c6d27c41
BLAKE2b-256 checksum
How to use checksums
d092c34ba17c94fb5f54605a647a20780b81e7f69981d55023786f7337a3b208
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 29, 2026.

Transparency log

Security for pro-sejong-auth 1.2.23

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pro_sejong_auth-1.2.23.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 29, 2026.

Transparency log

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.

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