Skip to main content

A basic sharepoint wrapper to be used with app-only credentials

Reason this release was yanked:

unstable version

Project description

Sharepoint Wrapper

Create Cofiguration

from sharepoint_wrapper import SharePointConfig

config = SharePointConfig(
    tenant="<tenant>",
    tenant_domain="<tenant_domain>",
    client_id="<client_id>",
    client_secret="<client_secret>",
    site="<site_name>",
)

Get Folders

from sharepoint_wrapper import get_folders

folders_at_root = get_folders(config)
# or 
# ensure your path starts with a slash "/"
folders_at_path = get_folders(config, "/my/path") 

Get Files

from sharepoint_wrapper import get_files

files_at_root = get_files(config)
# or 
# ensure your path starts with a slash "/"
files_at_path = get_files(config, "/my/path") 

Get File Content

from sharepoint_wrapper import get_file_content
from io import BytesIO

file_name = "my_file.pdf"

# returns a BytesIO file

file_at_root: BytesIO = get_file_content(config, file_name)
# or 
# ensure your path starts with a slash "/"
file_at_path: BytesIO = get_file_content(config, file_name, "/my/path") 

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_wrapper-0.0.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

sharepoint_wrapper-0.0.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file sharepoint_wrapper-0.0.2.tar.gz.

File metadata

  • Download URL: sharepoint_wrapper-0.0.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for sharepoint_wrapper-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8ec7f1732d200802fbf4fd68e75ff2dd9f3365a8db1f1fd1d9c563a68704a58c
MD5 1570ac4b5324451850fc4dd23187421c
BLAKE2b-256 f2e2b6ddb3b92ec399148feae693db662aee871d27342cd6519411a8cb1af550

See more details on using hashes here.

File details

Details for the file sharepoint_wrapper-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for sharepoint_wrapper-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 71d66008d9781610b5a2a0b4fc6c5178e02e27af93046e5054cc9f6d9702dee3
MD5 0627518ff3e5a76977d6333997219a7e
BLAKE2b-256 b46e321bfafc243c821ebe7a84030aade8b64dcfae9552457381063ede4b90ea

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