Skip to main content

관세청 API를 활용한 개인통관고유부호 유효성 검증 라이브러리

Project description

📦 pccc-checker

PyPI version License: MIT

pccc-checker는 관세청(UNI-PASS) 오픈 API를 활용하여 **개인통관고유부호(PCCC)**의 유효성을 간편하게 검증하는 Python 라이브러리입니다.

사용자의 성명, 전화번호, 통관번호가 일치하는지 실시간으로 확인하며, 보안을 위해 별도의 로그를 남기지 않고 HTTPS 통신만을 사용합니다.


✨ 주요 기능

  • 실시간 유효성 검사: 관세청 DB를 통해 성명/전화번호/부호 일치 여부 확인.
  • 보안 중심: 개인정보 및 API 키가 외부에 노출되거나 로그에 남지 않도록 설계.
  • 간결한 인터페이스: 단 몇 줄의 코드로 통합 가능.

🚀 설치 방법

pip install pccc-checker

🔑 API 키 발급 안내

이 라이브러리를 사용하려면 관세청 UNI-PASS의 오픈 API 키가 필요합니다.

  1. 관세청 UNI-PASS 포털 접속 및 로그인.
  2. 서비스 신청 > My메뉴(우측 상단) > 서비스관리(좌측 메뉴) > OpenAPI 사용관리 > OPEN API 신청 메뉴 이동.
  3. 수입신고 개인통관고유부호 검증 서비스 신청.
  4. 승인 후 발급된 **인증키(Customer Key)**를 복사하여 사용하세요.

💻 사용 예제

from pccc_checker import PCCCValidator

# 1. 객체 생성 (관세청에서 발급받은 API 키 입력)
api_key = "YOUR_UNI_PASS_API_KEY"
checker = PCCCValidator(api_key)

# 2. 정보 검증 (성명, 전화번호, 통관부호)
result = checker.validate(
    name="홍길동",
    phone="01012345678",
    pccc="P123456789012"
)

# 3. 결과 확인
if result["success"]:
    print(f"✅ 확인 성공: {result['message']}")
else:
    print(f"❌ 확인 실패: {result['message']}")

📄 라이선스

이 프로젝트는 MIT License에 따라 자유롭게 수정 및 배포가 가능합니다!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pccc_checker-0.1.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pccc_checker-0.1.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file pccc_checker-0.1.2.tar.gz.

File metadata

  • Download URL: pccc_checker-0.1.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pccc_checker-0.1.2.tar.gz
Algorithm Hash digest
SHA256 642651f36ee53e42b66479b81d74d3ffd49b6ef7ef9fee27b2c66e2a530dbf8d
MD5 da23827f701d8e59803366e0b084b58e
BLAKE2b-256 28ed37f60eedee1df141cbb0b913d6413828c224c39c82fd0530c183b38f7e8a

See more details on using hashes here.

File details

Details for the file pccc_checker-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pccc_checker-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pccc_checker-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b129f358c39cff136b1bdaa0a656bd5a3ed66cd5ff143fb02e934b4afa7613bc
MD5 1ea56048a7461e9c6b9d009413253b5f
BLAKE2b-256 ef6f6fcad2fc84dd9773df94ef75519a7a982efa693ba28b6023e8d9fe42180f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page