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.2.tar.gz (14.1 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.2-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: easyid_python-1.0.2.tar.gz
  • Upload date:
  • Size: 14.1 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.2.tar.gz
Algorithm Hash digest
SHA256 95d3757f6affbd02def6fb2471dafd037bce1a36e5199911f47bba2b2804ac3c
MD5 f19fd727100d1129b630623f49ba6477
BLAKE2b-256 dde2a2650ab25ff3956126b445cfa35dcb88303e889abb4ca38143ca1255e702

See more details on using hashes here.

Provenance

The following attestation bundles were made for easyid_python-1.0.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: easyid_python-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cbadaa2a406f40099a593885d1ff8a3124e3b0f0842a3f73b423974c3263b057
MD5 8b36f3c4fedd86eb451bc6c37558a87b
BLAKE2b-256 af35dfa42720cefae16713f021d63b67ddcb5435a65e332e85db716b64fd2a61

See more details on using hashes here.

Provenance

The following attestation bundles were made for easyid_python-1.0.2-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