An easy use of Office365-REST-Python-Client to download/upload/list sharepoint files
Project description
An easy use of Office365-REST-Python-Client to download/upload/list sharepoint files
How to use
from sharepointio import sharepointio
tenant = ‘https://mypersonnal.sharepoint.com’
site = ‘/sites/12345-MyTeams-Channel’
sharepoint = sharepointio.SharePointBytesIO(tenant, site, username=USERNAME, password=PASSWORD)
Commands
sharepoint.read(path) : Read file in the given path
sharepoint.list_files(folder, site=None, keep_only=None, start_with=None, str_contains=None) : List all files in a folder
sharepoint.list_folders(folder) : List all folders in a folder
sharepoint.move(file, old_path, new_path, site=None) : Move file to another directory
sharepoint.copy(old_path, new_path) : Copy file to another directory
sharepoint.download(file, folder=None, site=None, download_path=None, get_download_path=False) : Download file in a temporary directory
License
SharepointIO is licensed under the Apache 2.0 license.
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
Built Distribution
Hashes for sharepointio-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 433bdc4020ba813eb458618629e0773b158482fc60ae281d9b9a0d239adf755f |
|
MD5 | adc2d4a2731d3a36b877f671a80a9b76 |
|
BLAKE2b-256 | 642761f584c86efd99052755cfdec5e02e422f714bf4ea7425c9b5d6b66858e6 |