Skip to main content

A package for quickly calling dify

Project description

dify skd

Examples

Work Flow

from pydify_sdk import DifyWorkFlow

app = DifyWorkFlow("your_app_key", app_name="xxx")
user = "me" 
data = {"q1": "text"}  # workflow inputs
app.run(user, data)

Chat Flow

from pydify_sdk import DifyChatFlow

app = DifyChatFlow("your_app_key", app_name="xxx")
user = "me"
query = "hello"  # Chat content
app.chat(user, query)

Environment Variable Configuration

  • DIFY_API_URL: Configure the global dify server address.
  • DIFY_LOGGER_ON: Configure whether to print logs when initiating requests.

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

pydify_sdk-0.1.0.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

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

pydify_sdk-0.1.0-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file pydify_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: pydify_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pydify_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1a3372a50323e2328f6e4a84943bade1b867e65f79bd0e5a868e17a817caa8cf
MD5 f77391ad7bd6919865ea824bcd76c5e1
BLAKE2b-256 7664a985ab80f907d0c550c29e0ee69bb8cbaadfdef836ce0bad420db5ca2991

See more details on using hashes here.

File details

Details for the file pydify_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pydify_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pydify_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 666836827eaab82453a62f10f1923f54a6e627793cb9248204d2b78ee76995a4
MD5 deb924494c12f1029a572f5303901b65
BLAKE2b-256 b856ca448f620cbcf4f5e20fc950353d410727cf29bc090226877417b12e4ddd

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