Skip to main content

llama-index readers webdav integration

Project description

LlamaIndex Readers Integration: WebDav

Overview

Simple WebDav reader allows to read files from a WebDav server both fully or incrementally.

Installation

pip install llama-index-readers-webdav

Usage

from llama_index.readers.webdav import WebDAVReader
from llama_index.readers.file import (
    PDFReader,
)

# Initialize the server
parser = PDFReader()
file_extractor = {".pdf": parser}
reader = WebDAVReader(
    webdav_options={
        "webdav_hostname": "<URL>",
        "webdav_login": "<USERNAME>",
        "webdav_password": "<PASSWORD>",
    },  # pass any other webdav3 options https://pypi.org/project/webdavclient3/
    file_extractor=file_extractor,
    remote_path="/",
    folder_etag_propagated_to_root=False,  # If your webdav server propagates etag updates up to the `remote_path` folder enable it to skip the scan of folders with no updates
)

# Lazy load emails from the given mailbox
documents = reader.load_data(incremental=True)

This loader is designed to be used as a way to load data into LlamaIndex.

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

llama_index_readers_webdav-0.2.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

llama_index_readers_webdav-0.2.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_readers_webdav-0.2.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_webdav-0.2.1.tar.gz
Algorithm Hash digest
SHA256 18f17f7e0dc1b0523b2a8524cfdaaad16ea9e34cd4cca894df7735318978b92b
MD5 62e38036d871e3c72c4a867091ed51aa
BLAKE2b-256 178f07cece2ff31264d414617a04a577ccbda7463a2f02cef99be6dec3c2972c

See more details on using hashes here.

File details

Details for the file llama_index_readers_webdav-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_webdav-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 70dc8885a7dae86304028060f32ccafed3598b0c70533b49f84bf23f94db39f4
MD5 f641e73a80d2430142f3444ba4970f45
BLAKE2b-256 1b7792216b9423e999c78ef0839027f7d227822cb33ec8279948f2325560c467

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