Skip to main content

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

Project description

email-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_ON_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.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

sharepoint_stuff-0.0.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sharepoint-stuff-0.0.1.tar.gz
  • Upload date:
  • Size: 4.5 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.1.tar.gz
Algorithm Hash digest
SHA256 0ab0ae70cc0d93b405443618c4984660563ba88398d922988ada9c4bfe1198eb
MD5 7ac35fe43b5d57911521474c5f307f9c
BLAKE2b-256 69acf1faf171db327dc6259cd3c0b208464b3e7fbf39e9d3f818521362a21f23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sharepoint_stuff-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 74a0a47cf61eb96ccc3e37f6e5f67aac10c48076148c646082ce1243b0720c13
MD5 7b445129915f44123a29b05f3f4eb077
BLAKE2b-256 e0a40248a09bd62b54a75e99ebcb6c035c66e787680d766f6186d79e4def1297

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