Skip to main content

llama-index readers microsoft_sharepoint integration

Project description

Microsoft SharePoint Reader

pip install llama-index-readers-microsoft-sharepoint

The loader loads the files from a folder in sharepoint site.

It also supports traversing recursively through the sub-folders.

Prequsites

App Authentication using Microsoft Entra ID(formerly Azure AD)

  1. You need to create an App Registration in Microsoft Entra ID. Refer here
  2. API Permissions for the created app.
    1. Microsoft Graph --> Application Permissions --> Sites.ReadAll (Grant Admin Consent)
    2. Microsoft Graph --> Application Permissions --> Files.ReadAll (Grant Admin Consent)
    3. Microsoft Graph --> Application Permissions --> BrowserSiteLists.Read.All (Grant Admin Consent)

More info on Microsoft Graph APIs - Refer here

Usage

To use this loader client_id, client_secret and tenant_id of the registered app in Microsoft Azure Portal is required.

This loader loads the files present in a specific folder in sharepoint.

If the files are present in the Test folder in SharePoint Site under root directory, then the input for the loader for file_path is Test

FilePath

from llama_index.readers.microsoft_sharepoint import SharePointReader

loader = SharePointReader(
    client_id="<Client ID of the app>",
    client_secret="<Client Secret of the app>",
    tenant_id="<Tenant ID of the Microsoft Azure Directory>",
)

documents = loader.load_data(
    sharepoint_site_name="<Sharepoint Site Name>",
    sharepoint_folder_path="<Folder Path>",
    recursive=True,
)

The loader doesn't access other components of the SharePoint Site.

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

Built Distribution

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

File details

Details for the file llama_index_readers_microsoft_sharepoint-0.5.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_microsoft_sharepoint-0.5.1.tar.gz
Algorithm Hash digest
SHA256 61dea86b54fb55d6c193e22343b964e29ce0e0b839ab5e2b4694dbb736c1ed49
MD5 bb8337e92bcab77282463350b15cb5a4
BLAKE2b-256 d39084da28074959de4407da50b57b70cf2d76f7a0059f1db0ef0631547e6efa

See more details on using hashes here.

File details

Details for the file llama_index_readers_microsoft_sharepoint-0.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_microsoft_sharepoint-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d2d2a7f5225ede7847234f8bf84609001ed9304d4b2a7d56694651ec3e430259
MD5 7218ae8b9d5f7bbcee4fcbeae25a78c0
BLAKE2b-256 9d3adb59d9b20392bbc78d1103dfc9efb302b858dfee39188b2ed59131031d4d

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