Python SDK for Dify API
Reason this release was yanked:
error
Project description
DifyPy
Python SDK for Dify API- 简单易用的 Dify API 客户端
安装
pip install difypy
快速开始
from dify_client import DifyClient
# 初始化客户端
client = DifyClient(
api_key="your_api_key",
base_url="https://your-dify-instance.com/v1"
)
# 运行工作流
response = client.workflows.run(
inputs={"query": "你好"},
user="user123"
)
# 打印结果
print(response.data)
功能特性
- 支持同步和异步操作
- 完整的工作流 API 支持
- 文件上传和管理
- 数据集操作
- 错误处理和重试机制
- 速率限制支持
文档
详细的 API 文档请参考 Dify 官方文档。
许可证
MIT
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
difypy-0.1.1.tar.gz
(17.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
difypy-0.1.1-py3-none-any.whl
(25.7 kB
view details)
File details
Details for the file difypy-0.1.1.tar.gz.
File metadata
- Download URL: difypy-0.1.1.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0f676e498ffc1d5948511418a527afc967d1b0dfdbc6deb49f9366693390308
|
|
| MD5 |
6eab576888c131209f1c603b45349209
|
|
| BLAKE2b-256 |
d4b5f239f11cc3560a89545b159d4b22b10f930972ebf34c511309e23dc992d9
|
File details
Details for the file difypy-0.1.1-py3-none-any.whl.
File metadata
- Download URL: difypy-0.1.1-py3-none-any.whl
- Upload date:
- Size: 25.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f231fc836ca9e968e8f692925d0841241e5d74546fc3b6cd92d89f0537adae3d
|
|
| MD5 |
4117a1140bff5c6d0f942b5f94bf0fb6
|
|
| BLAKE2b-256 |
347e6de771ccfe37aa3ddf91281f9efffc06a82b7e0c10437a946623ef63ca9b
|