Skip to main content

Package that adds a range of functionality for working with sharepoint sites - under constant development

Project description

sharepoint-stuff

A package that adds a range of functionality for working with sharepoint sites from python e.g. uploading and downloading of files, creation of folders, etc. Under constant development and change as of January 2023.

Installation

Run the following to install:

python -m pip install sharepoint-stuff

Usage

from sharepoint_stuff import getCTX, uploadFile

# Initial authentication is necessary for all other functions in this package

ctx = getCTX("SHAREPOINT_URL", "USERNAME", "PASSWORD")

# then you can use that ClientContext (ctx) to authenticate for all the other functions, for example:

# the sharepoint relative url is relative to the name of your site so if you were in the directory -
# https://contoso.sharepoint.com/sites/MAIN_SITE/Shared%20Documents/important_docs then your relative url is "Shared Documents/important_docs/"

# the filepath should include the filename, this is so that the name of the file on sharepoint can be declared seperately to the name of the
# file on the system
uploadFile(ctx, "FILENAME_FOR_SHAREPOINT", "FILEPATH_ON_SYSTEM", "SHAREPOINT_RELATIVE_URL")

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

sharepoint-stuff-0.0.5.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

sharepoint_stuff-0.0.5-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file sharepoint-stuff-0.0.5.tar.gz.

File metadata

  • Download URL: sharepoint-stuff-0.0.5.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for sharepoint-stuff-0.0.5.tar.gz
Algorithm Hash digest
SHA256 a8e8dddc38b355936477beefa5848365ec05c045b33f09d6829b0c4f20d46586
MD5 297d8db30197c692f03f967a47cda922
BLAKE2b-256 744287cbb2d3d53bb7d8ab8ebdb38573fe496f35b1f92032251d6cbb683ca41b

See more details on using hashes here.

File details

Details for the file sharepoint_stuff-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for sharepoint_stuff-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b82270e1be680e3d875260f904bcb789e4a05867810f0ef959d9f68edb6c1166
MD5 818293c784ce70ea7557289af4196df2
BLAKE2b-256 2006692ef6b2351f6ebfd1023311ac54f11c5a46136b093f54ce710d2a4fe617

See more details on using hashes here.

Supported by

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