Skip to main content

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


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)

Uploaded Source

Built Distribution

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

difypy-0.1.1-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

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

Hashes for difypy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e0f676e498ffc1d5948511418a527afc967d1b0dfdbc6deb49f9366693390308
MD5 6eab576888c131209f1c603b45349209
BLAKE2b-256 d4b5f239f11cc3560a89545b159d4b22b10f930972ebf34c511309e23dc992d9

See more details on using hashes here.

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

Hashes for difypy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f231fc836ca9e968e8f692925d0841241e5d74546fc3b6cd92d89f0537adae3d
MD5 4117a1140bff5c6d0f942b5f94bf0fb6
BLAKE2b-256 347e6de771ccfe37aa3ddf91281f9efffc06a82b7e0c10437a946623ef63ca9b

See more details on using hashes here.

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