Name | pysharepi JSON |
Version |
1.5
JSON |
| download |
home_page | |
Summary | Download files from sharepoint site using client id , client secret and tenant id via Azure Active Directory. |
upload_time | 2023-08-14 15:27:15 |
maintainer | |
docs_url | None |
author | Jeevan V |
requires_python | |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
############## This package helps to download files from sharepoint site
using client id , client secret and tenant id via Azure Active Directory. ###############
- First You need to register an App on Azure Active Directory and get tenant id , client id and client secret.
- Also you need sharepoint site domain name and site url.
Code Eg:
from pysharepi import request_token, get_file
sharepoint_url = "https://xxxx.sharepoint.com"
client_id = "3b724c43-7f32-4d6d-861f-xxxx"
client_secret = "5yB8Q~xxxxxxxxxxxxxxx"
tenant_id = 'b71957ca-e23b-4df6-b963-xxxxxx'
Site_name = 'TrialSite' # sharepoint site name
domain = 'xxxx.sharepoint.com'
folder = 'Trial_Folder' #Folder name
file = "subfile.csv" #File name
token = request_token(tenant_id,client_secret,client_id) # call request_token function to get the token
get_file(token,Site_name,domain,folder,file) # call get_file function to get the file
Raw data
{
"_id": null,
"home_page": "",
"name": "pysharepi",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Jeevan V",
"author_email": "jeevanvsan@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/17/03/8ef84b2711e6369d8e0e757eef6a010d9db71ebe7ccfb5c8426aa4d2260a/pysharepi-1.5.tar.gz",
"platform": null,
"description": "############## This package helps to download files from sharepoint site \r\n using client id , client secret and tenant id via Azure Active Directory. ###############\r\n\r\n- First You need to register an App on Azure Active Directory and get tenant id , client id and client secret.\r\n\r\n- Also you need sharepoint site domain name and site url.\r\n\r\n Code Eg:\r\n\r\n from pysharepi import request_token, get_file\r\n\r\n sharepoint_url = \"https://xxxx.sharepoint.com\"\r\n client_id = \"3b724c43-7f32-4d6d-861f-xxxx\"\r\n client_secret = \"5yB8Q~xxxxxxxxxxxxxxx\"\r\n tenant_id = 'b71957ca-e23b-4df6-b963-xxxxxx'\r\n\r\n Site_name = 'TrialSite' # sharepoint site name\r\n domain = 'xxxx.sharepoint.com'\r\n\r\n folder = 'Trial_Folder' #Folder name\r\n file = \"subfile.csv\" #File name\r\n\r\n\r\n token = request_token(tenant_id,client_secret,client_id) # call request_token function to get the token\r\n\r\n get_file(token,Site_name,domain,folder,file) # call get_file function to get the file\r\n\r\n\r\n",
"bugtrack_url": null,
"license": "",
"summary": "Download files from sharepoint site using client id , client secret and tenant id via Azure Active Directory.",
"version": "1.5",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4f0248d99cfe572bee36ae85e44efbe4644d5738495d8cc661a2e0eaa98f4f23",
"md5": "787e2db8b9c59295ab16d712acd14b39",
"sha256": "760861d4f305ed5b05cf32e9edc5a04220011c51ba4fcb97b16046e647413fad"
},
"downloads": -1,
"filename": "pysharepi-1.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "787e2db8b9c59295ab16d712acd14b39",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3302,
"upload_time": "2023-08-14T15:27:13",
"upload_time_iso_8601": "2023-08-14T15:27:13.764417Z",
"url": "https://files.pythonhosted.org/packages/4f/02/48d99cfe572bee36ae85e44efbe4644d5738495d8cc661a2e0eaa98f4f23/pysharepi-1.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "17038ef84b2711e6369d8e0e757eef6a010d9db71ebe7ccfb5c8426aa4d2260a",
"md5": "d19fe9867f7a3c57c624c6b3eba86166",
"sha256": "789f34f1c7ab3808d8babaa7043f78e58ec4e8801e6c3326019e96fdc52c440c"
},
"downloads": -1,
"filename": "pysharepi-1.5.tar.gz",
"has_sig": false,
"md5_digest": "d19fe9867f7a3c57c624c6b3eba86166",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3050,
"upload_time": "2023-08-14T15:27:15",
"upload_time_iso_8601": "2023-08-14T15:27:15.263864Z",
"url": "https://files.pythonhosted.org/packages/17/03/8ef84b2711e6369d8e0e757eef6a010d9db71ebe7ccfb5c8426aa4d2260a/pysharepi-1.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-14 15:27:15",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pysharepi"
}