Async Python SDK for RAGFlow
Project description
RAGFlow Async SDK
Overview
An async-first Python SDK for interacting with the RAGFlow API.
Provides clean, typed, and production-ready access to RAGFlow features such as:
- Dataset & document management
- Document chunking & ingestion
- File & folder management
- Knowledge Graph (GraphRAG)
- Background tasks (parsing, knowledge construction)
- Chat & Agent sessions with streaming (SSE) support
⚡ Quick Start
💿 Installation
Requires Python 3.10+.
pip install ragflow-async-sdk
🚀 Getting Started
All operations in the RAGFlow SDK are asynchronous. To use the SDK, first initialize the client and then run async calls inside Python's asyncio event loop.
🛠 Initialization
from ragflow_async_sdk import AsyncRAGFlowClient
client = AsyncRAGFlowClient(
server_url="http://your-ragflow-address",
api_key="YOUR_API_KEY",
)
⏩ Run with asyncio
import asyncio
async def main():
# Example: Health check
system_health = await client.systems.healthz()
print(system_health.status)
# Run the async main function
asyncio.run(main())
Notes:
All SDK calls are async; use
awaitandasync foras needed.
📚 Documentation
See the quick usage guide here:
🧩 Main Modules
📖 Full API Reference
💡 Error Reference
🧬 Entities Reference
🧪 Testing
License
Apache License 2.0
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
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
File details
Details for the file ragflow_async_sdk-0.1.0.tar.gz.
File metadata
- Download URL: ragflow_async_sdk-0.1.0.tar.gz
- Upload date:
- Size: 55.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b96e05701920c5b5857c0146dc645ea04b6be0b25f55baa736c18c3353cde336
|
|
| MD5 |
8e551e3ad8af2aae5e384945046f5896
|
|
| BLAKE2b-256 |
fc208c47289bff732cb3e2be2c62b751ab1c303d9e532536cd24ea932bd00d06
|
File details
Details for the file ragflow_async_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ragflow_async_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 51.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8f71a4ec3ff89c28a0e7d69569bd9e83737788736eb6e118b9aed3209472cee
|
|
| MD5 |
bf0eeb396e516913b44db9ee97a61274
|
|
| BLAKE2b-256 |
9014b6cd2b98edd64f1757a46c6d7017c53c05f22cd731f07268883578d7c5e4
|