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()
链接
完整文档:
源代码:
API文档:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
arkid-client-0.1.0.tar.gz
(29.7 kB
view details)
Built Distribution
File details
Details for the file arkid-client-0.1.0.tar.gz
.
File metadata
- Download URL: arkid-client-0.1.0.tar.gz
- Upload date:
- Size: 29.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 036cde6d30a25aa3410bb1f57d94c8cbea55810ae3ddfe2d20ccd1d24d191516 |
|
MD5 | a6df8bcd8c811e382af66dbb58fb8807 |
|
BLAKE2b-256 | c80b261e19c5138cc872c9e13cb17ae89c182b1ae7944243c8a7a50e49cdb6e9 |
File details
Details for the file arkid_client-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: arkid_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 41.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b94491d11881fe4c67b1c603c3aeac8f5b46f06dd043af7764386cfbaf30a48 |
|
MD5 | 60b4a2c68a8ce7a79d33dabfc624e76f |
|
BLAKE2b-256 | 57fa3be44af2cbd2bcd239495fed13947d8a74c05e060251328298f599613a5d |