Skip to main content

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

Init sharepoint connexion

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. Output is a Pandas dataframe.

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, download_path=None, get_download_path=False) : Download file in a temporary directory

Changelog

0.0.4 - Update list_files : add security in case of max rate exceeded - Update list_folder : add security in case of max rate exceeded

0.0.3 - Update download : Error handling due to too many attempts has been incorporated. Bugs have been fixed.

0.0.2 :

  • Update list_files : Automatically read all “Email%20Messages” folders received on Sharepoint when a new folder is automatically created by Sharepoint. The function outputs a pandas table with the following fields : name, date_created, date_lastupdate, ServerRelativeUrl

  • Update download : new field full_URL, allows to pass the links of the ServerRelativeUrl field in list_files.

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

sharepointio-0.0.4.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

sharepointio-0.0.4-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file sharepointio-0.0.4.tar.gz.

File metadata

  • Download URL: sharepointio-0.0.4.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for sharepointio-0.0.4.tar.gz
Algorithm Hash digest
SHA256 5e2fafa5984cdf10a956d370f7bf1faf9d6b7043d206cc88ecc6b7a51fea479b
MD5 0867c027fc90ac7f869484f2847565cd
BLAKE2b-256 1c13be2c991c101de744947f79e895d1f544c285e61d25d2b79ffd7419e56e51

See more details on using hashes here.

File details

Details for the file sharepointio-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: sharepointio-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for sharepointio-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6ab4dda157fe5109c32ddc3a26d35f9941036c94d7fada8e5cb08a0d7010800c
MD5 3bc6ec091d7cc11110b29b789c1f59b8
BLAKE2b-256 4668fe8c0df8aeb90f0d3cd7a45143905ac1e7e458657d9c264456f2a832f7f8

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