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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 033971bbec96173852efd0d978371f8dc1553cd40036764c0d68c7cedda5f203 |
|
MD5 | 87f0fe7e2b62f68a0acf3d3aa323e0a1 |
|
BLAKE2b-256 | a62257eef2cea3c890ab3b87f705a8ad738141a5caf389b47dc3dcf126684e0e |
Close
Hashes for llama_index_readers_microsoft_sharepoint-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e13ba9383f31d841331ec7d050b7763f8b66e144eca8d257d034f961fa5517d9 |
|
MD5 | 014a1179cc3f4f097a7994f0931bf85a |
|
BLAKE2b-256 | 4ac59acd9990bc9bb37302c37af9850cd91ac1ade58328b9017de17984d15258 |