Skip to main content

files.list

List indexed files in a text namespace.
client.files.list(namespace_name: str) -> dict[str, Any]
API: GET /namespaces/{namespace_name}/files — see List files

Examples

from moorcheh import MoorchehClient

with MoorchehClient("http://localhost:8080") as client:
    resp = client.files.list("my-documents")
    for f in resp.get("files", []):
        print(f["file_id"], f["filename"], f["status"])