Skip to main content

ArkID SDk For Python

Project description

该 SDK 为 ArkID APIs 提供了便捷的 Pythonic 接口 。

基本用法

安装

  • pip install arkid-client

基本使用

  • 您可以从 arkid_client 导入 ArkID 客户端。例如:
from arkid_client.auth import ConfidentialAppAuthClient
from arkid_client.client import ArkIDClient

# 设置 ArkID 服务根地址
url = 'https://arkid.longguikeji.com/'

# 初始化 ArkID 认证客户端
caac = ConfidentialAppAuthClient(base_url=url)

# 初始化 ArkID 服务客户端
ac = ArkIDClient(
    authorizer=caac.get_authorizer('admin', 'admin'),
    base_url=url
)

# 查询用户列表
users = ac.query_user()

链接

完整文档:

Project details


Download files

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

Files for arkid-client, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size arkid_client-0.1.0-py3-none-any.whl (41.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size arkid-client-0.1.0.tar.gz (29.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page