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.1.0.tar.gz (5.0 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.1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_readers_webdav-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7725bb91be0c627c3096818ce3c593ca24d63424c54c866afea6510169f5f147
MD5 9d36427585f41f6b25c086ec7e6a708a
BLAKE2b-256 492fa7bf4aa779a7c02476a68f39c43cd436e10209dd22867e1d876f14080b8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_webdav-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f7e1c517e6fb1cd5767b21cab6376e4925f139245ff443b8fcd9513518229e85
MD5 cd8410aeb70aff7d4bb56fe4dddaed4f
BLAKE2b-256 8747bb4327b67b23e9025700ce0fb801df7b34e2ecf89a881f4e5e7066c3c24c

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