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 Registeration in Microsoft Entra ID. Refer here
- API Permissions for the created app.
- Micorsoft 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 Micorsoft 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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 759f8e2922ad333305e92f41bcfb7d0de8c113ddb765bdedd5fe7b1548eaa26a |
|
MD5 | 72ff8b09a698ec506aed2bdf7042a525 |
|
BLAKE2b-256 | 1317c70f1d19846ef6c0b16df4cc6a0e2b912b5dafca6f7655e0580054c16a67 |
Close
Hashes for llama_index_readers_microsoft_sharepoint-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12db9008ad27338d7a90462a6ce442f442ad2050c5883f6e4029523be6f976d9 |
|
MD5 | 2dab4af4ced5c3bbf1215cadb8686162 |
|
BLAKE2b-256 | c8a044d139e0663af2b9b02f124a60746ddbccd3c6c2450c791ca35aaf49d295 |