Name | sharejeeni JSON |
Version |
1.0.3
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-16 07:01:52 |
maintainer | |
docs_url | None |
author | Jeevan V |
requires_python | |
license | |
keywords |
sharejeeni
sharepoint
sharepoint file
|
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:
import sharejeeni
client_id = "3b724c43-7f32-4d6d-861f-xxxx"
client_secret = "5yB8Q~xxxxxxxxxxxxxxx"
tenant_id = 'b71957ca-e23b-4df6-b963-xxxxxx'
sharepoint_url = "https://xxxx.sharepoint.com"
Site_name = 'TrialSite' # sharepoint site name
domain = 'xxxx.sharepoint.com'
folder = 'Trial_Folder' #Folder name
subfolder = 'SubTrial_Folder' #Subfolder name
file = "subfile.csv" #File name
save_as = 'savedfile.csv'
token = sharejeeni.request_token(tenant_id,client_secret,client_id)
site = sharejeeni.get_site(token,Site_name,domain)
sharejeeni.Get().file(file,token,site,save_as)
# for file inside folder
sharejeeni.Get().folder(folder).file(file,token,site,save_as)
# for file in subfolders
sharejeeni.Get().folder(folder).subfolder(subfolder).file(file,token,site,save_as)
Raw data
{
"_id": null,
"home_page": "",
"name": "sharejeeni",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "sharejeeni,sharepoint,sharepoint file",
"author": "Jeevan V",
"author_email": "jeevanvsan@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/db/6d/6687d042f87ad9267f48a016bbb8f31ea88480622f53f44d8eafa722d552/sharejeeni-1.0.3.tar.gz",
"platform": null,
"description": "# This package helps to download files from sharepoint site 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 import sharejeeni\r\n\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 sharepoint_url = \"https://xxxx.sharepoint.com\"\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 subfolder = 'SubTrial_Folder' #Subfolder name\r\n file = \"subfile.csv\" #File name\r\n save_as = 'savedfile.csv' \r\n\r\n\r\n token = sharejeeni.request_token(tenant_id,client_secret,client_id)\r\n\r\n site = sharejeeni.get_site(token,Site_name,domain)\r\n\r\n sharejeeni.Get().file(file,token,site,save_as)\r\n\r\n# for file inside folder\r\n\r\n sharejeeni.Get().folder(folder).file(file,token,site,save_as)\r\n\r\n# for file in subfolders\r\n\r\n sharejeeni.Get().folder(folder).subfolder(subfolder).file(file,token,site,save_as)\r\n\r\n\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.0.3",
"project_urls": null,
"split_keywords": [
"sharejeeni",
"sharepoint",
"sharepoint file"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "db6d6687d042f87ad9267f48a016bbb8f31ea88480622f53f44d8eafa722d552",
"md5": "fb52c089c33f52490362dfe5a8e55c73",
"sha256": "678620e98b00513612511062fb2b5effb98ba98ec61e12387b8e748ffeb09cbb"
},
"downloads": -1,
"filename": "sharejeeni-1.0.3.tar.gz",
"has_sig": false,
"md5_digest": "fb52c089c33f52490362dfe5a8e55c73",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3232,
"upload_time": "2023-08-16T07:01:52",
"upload_time_iso_8601": "2023-08-16T07:01:52.374708Z",
"url": "https://files.pythonhosted.org/packages/db/6d/6687d042f87ad9267f48a016bbb8f31ea88480622f53f44d8eafa722d552/sharejeeni-1.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-16 07:01:52",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "sharejeeni"
}