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.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e7d1fcddc36063f58f2915e917f959943abce095ee4e47ca89f57771b9bb5e7 |
|
MD5 | 183f157470dfb9bb20b0f04d8601d380 |
|
BLAKE2b-256 | 22311f76fdea116c75a4e2513854fc9a0bf350f6c05cb099d1230f56af4bfb9b |
Close
Hashes for llama_index_readers_microsoft_sharepoint-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa23df3e08ec2465a43afb8ef3ba5b6b25ac656e4e57146ca4f4f8a56bdc643f |
|
MD5 | a2bac9382f8308e7ddfcd39753f86ec9 |
|
BLAKE2b-256 | f56c0f0edeece7c0d9ea8a5f115d7dd841fec1f8bf3d1b910a96c9a067fff141 |