llama-index readers microsoft_sharepoint integration
Project description
Microsoft SharePoint Reader
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)
- You need to create an App Registration in Microsoft Entra ID. Refer here
- API Permissions for the created app.
- Microsoft Graph --> Application Permissions --> Sites.ReadAll (Grant Admin Consent)
- Microsoft Graph --> Application Permissions --> Files.ReadAll (Grant Admin Consent)
- 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
from llama_index import download_loader
SharePointLoader = download_loader("SharePointReader")
loader = SharePointLoader(
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
Release history Release notifications | RSS feed
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
Close
Hashes for llama_index_readers_microsoft_sharepoint-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86726fa467d8677f30667119ff9deb77249547e19542a3833aed88724c5830cb |
|
MD5 | 9c6795cea0b108750362824a65682c90 |
|
BLAKE2b-256 | 3edb2af3ec3a49e216a9dfd1340f9ef34d6b4ec0d1ade9733240efae46eeeab9 |
Close
Hashes for llama_index_readers_microsoft_sharepoint-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2f6c041c0e95c45b651140c7067826b5b3460339498a55a3bc322700890f896 |
|
MD5 | 89e9e470ffaba6e06167fe59486d4585 |
|
BLAKE2b-256 | 0dabf84814530952c1055811d32f55a7f1d08e8a300804dc677d62bff5efdfac |