Skip to main content

Official Python SDK for the EasyID identity verification API.

Project description

EasyID Python SDK

Official Python SDK for the EasyID identity verification API.

EasyID 易验云 focuses on identity verification and security risk control APIs, including real-name verification, liveness detection, face recognition, phone verification, and fraud-risk related capabilities.

中文文档: README.zh-CN.md

Install

pip install easyid-python

Quick Start

from easyid import EasyID

client = EasyID("ak_xxx", "sk_xxx")
result = client.idcard.verify2(name="张三", id_number="110101199001011234")

print(result.match)

Supported APIs

  • IDCard: verify2, verify3, ocr
  • Phone: status, verify3
  • Face: liveness, compare, verify
  • Bank: verify4
  • Risk: score, store_fingerprint
  • Billing: balance, records

Configuration

  • base_url
  • timeout
  • session

Error Handling

Service-side business errors raise APIError.

from easyid import APIError

try:
    client.phone.status(phone="13800138000")
except APIError as exc:
    print(exc.code, exc.message, exc.request_id)

Security Notice

This is a server-side SDK. Never expose secret in browsers, mobile apps, or other untrusted clients.

Official Resources

  • Official website: https://www.easyid.com.cn/
  • GitHub organization: https://github.com/easyid-com-cn/

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

easyid_python-1.0.4.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

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

easyid_python-1.0.4-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file easyid_python-1.0.4.tar.gz.

File metadata

  • Download URL: easyid_python-1.0.4.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for easyid_python-1.0.4.tar.gz
Algorithm Hash digest
SHA256 5ca98d4ef3ecd60aced215dd5d0dc903115ce80049bb3024dc3300181e61f78c
MD5 fa4a3469ddf172c6852a1b1b5f840d2f
BLAKE2b-256 f9429ea4a7e873ab5b2b69d768a5f3bf889c4c56f280934cc572387aa4fb85c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for easyid_python-1.0.4.tar.gz:

Publisher: publish-python-pypi.yml on easyid-com-cn/easyid-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file easyid_python-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: easyid_python-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for easyid_python-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b16fb6bac113928d588bcba0c84801a69ec54ae0fd30922189be4f59557187a7
MD5 986fe24124ad4e3ae02f06b941cabc48
BLAKE2b-256 0d38774c08b4cad5bac7b3dc301854b1fb55ee585027d2a4515b4350b780c769

See more details on using hashes here.

Provenance

The following attestation bundles were made for easyid_python-1.0.4-py3-none-any.whl:

Publisher: publish-python-pypi.yml on easyid-com-cn/easyid-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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