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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb183cb72b915143395e2e9c6513d70970565d91a62276d0f0ba1c7f7fff384c |
|
MD5 | f05dd398b445021cf96c2f1fd0eb6364 |
|
BLAKE2b-256 | c9f1ff4ea7c2a70f9983090a75fd056ffb51a0328891c7469b18ece5d14c1a27 |
Close
Hashes for llama_index_readers_microsoft_sharepoint-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba7f185445a455597d374e60b142d37919169b38139e5af676b70954be8ab936 |
|
MD5 | f93be0baa3c29907ccedc2bd57bd2e44 |
|
BLAKE2b-256 | 3b6b66c4e9ac288c8c24a6aa2dfb1b4deec47f74fe315b18e722ae7eefa85a12 |