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.0.tar.gz (5.4 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.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_readers_webdav-0.2.0.tar.gz
Algorithm Hash digest
SHA256 34ce505283ae776add3c0372ba5276217065ce6875bf0a27e643d87a1c962500
MD5 37328f780587449f3f1793737a7440eb
BLAKE2b-256 a8ec41398c8cd21d0dab601fe574f74b64669efe17d0c6b890276c31a8f5cac2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_webdav-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46816fdea4d93ba28f23750ca7da7cf3614a963e49a0da88b3adc81158219df4
MD5 be1a5b71a9f6e454617d9e7ed0a73b7b
BLAKE2b-256 b1d3dbbda3cadb336adfb7f63ee14fb447031fd32d4971837598c573cf274c57

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