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

Uploaded Python 3

File details

Details for the file difypy-0.1.2.tar.gz.

File metadata

  • Download URL: difypy-0.1.2.tar.gz
  • Upload date:
  • Size: 17.6 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.2.tar.gz
Algorithm Hash digest
SHA256 d0463971d9df01be6a62476aefadb173e9142c3ff8f446785427a59024110ec8
MD5 9cf65330dfe5da9c2f12478515cf6de9
BLAKE2b-256 37e40d94a15b257373bbe8d6f1656027274faceaac9f8c39d45daf34d8abc7ae

See more details on using hashes here.

File details

Details for the file difypy-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: difypy-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 26.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c9ee614c25e3d8130e27da53b7a91c14de533aaab2cd79372bd46ecc2002270c
MD5 74709ea77c92fdb89a5e3037b36ec33d
BLAKE2b-256 326864115459761ae8b4e21d00cb18e133c692fe68a80fc481f432d931e0d0e4

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