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.6.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_microsoft_sharepoint-0.6.1.tar.gz
Algorithm Hash digest
SHA256 269ff613b5895959646dafc1990be3b21868b6aa5b76871e7965e64d7652b9db
MD5 f9d64a13dab676d93be9ce7e2c3208ab
BLAKE2b-256 669ee9dc774fc00d68b32328d19c9703f3d869b252920794ca6ced1caf817c5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_microsoft_sharepoint-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 105a71885a17ef66a0d1662c0ae3dbf2c1b75f8a70e37e407e37a2d2d6d285b2
MD5 e032bb7fe9aef1765a26936cba93a468
BLAKE2b-256 7507a6a55fe71f5f80031d16d547330e21801a6d448b7cac729af68ec204993f

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