Skip to main content

Download files from sharepoint site using client id , client secret and tenant id via Azure Active Directory.

Project description

############## 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysharepi-1.5.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysharepi-1.5-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file pysharepi-1.5.tar.gz.

File metadata

  • Download URL: pysharepi-1.5.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for pysharepi-1.5.tar.gz
Algorithm Hash digest
SHA256 789f34f1c7ab3808d8babaa7043f78e58ec4e8801e6c3326019e96fdc52c440c
MD5 d19fe9867f7a3c57c624c6b3eba86166
BLAKE2b-256 17038ef84b2711e6369d8e0e757eef6a010d9db71ebe7ccfb5c8426aa4d2260a

See more details on using hashes here.

File details

Details for the file pysharepi-1.5-py3-none-any.whl.

File metadata

  • Download URL: pysharepi-1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for pysharepi-1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 760861d4f305ed5b05cf32e9edc5a04220011c51ba4fcb97b16046e647413fad
MD5 787e2db8b9c59295ab16d712acd14b39
BLAKE2b-256 4f0248d99cfe572bee36ae85e44efbe4644d5738495d8cc661a2e0eaa98f4f23

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page