Skip to main content

A Python utility library for interacting with Dify as if you were using the UI. Perform any action available through the user interface.

Project description

dify-user-client

A Python utility library for interacting with Dify as if you were using the UI. Perform any action available through the user interface.

Installation

pip install dify-user-client

Quick Start

from dify_user_client import DifyClient, Credentials

# Initialize credentials with username and password
credentials = Credentials(username="your_username", password="your_password")

# Create a client with base URL
client = DifyClient(base_url="https://api.dify.ai", credentials=credentials)

# Use the client to interact with Dify API
# Example: Get all applications
applications = client.apps

Features

  • DifyClient: A client for interacting with the Dify API
  • Credentials: A class for managing API credentials
  • Comprehensive API Coverage: Support for all major Dify API endpoints

Documentation

For more detailed documentation, please visit the documentation page.

Development

Setup

  1. Clone the repository:

    git clone https://github.com/ivan-pikulin/dify_user_client.git
    cd dify_user_client
    
  2. Create a virtual environment and install dependencies:

    # Using uv (recommended)
    uv venv
    uv pip install -e .
    
    # Using pip
    python -m venv .venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
    pip install -e .
    

Running Tests

# Install test dependencies
uv pip install -e ".[dev]"

# Run tests
pytest

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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

dify_user_client-0.3.0.tar.gz (8.7 MB view details)

Uploaded Source

Built Distribution

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

dify_user_client-0.3.0-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file dify_user_client-0.3.0.tar.gz.

File metadata

  • Download URL: dify_user_client-0.3.0.tar.gz
  • Upload date:
  • Size: 8.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dify_user_client-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5851ce5973dcf3476bbabef47ec75d4ed7d05f2a1fc27e0208d96a528d586e80
MD5 e1a7cbae8659e8d5926365e4416f09ee
BLAKE2b-256 b9613d3bb1f3aaddb3a785e14ba11a63ad2f4d0285b65045e9ee27cf7861dd52

See more details on using hashes here.

File details

Details for the file dify_user_client-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: dify_user_client-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dify_user_client-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e803e669364a478d69b560e2eb5bde41ee943053c04138cf361dcb659de607ff
MD5 966595ef6ab5fb924eec9367a010e3f9
BLAKE2b-256 d91435b9897f99a612c352f34abecaeecaf56f0a5c4aeddddfc0ab9a2ade8dda

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