Skip to main content

A SharePoint file management tool for python programs.

Project description

Simple SharePoint

This package is designed to be a simple code interface to manage files in a SharePoint account.

How to Install

pip install py_simple_sharepoint

How to Use

import os
from py_simple_sharepoint import SharePointClient

sp = SharePointClient(
    tenant_id=os.getenv("SHAREPOINT_CLIENT_TENANT_ID"),
    client_id=os.getenv("SHAREPOINT_AZURE_APPLICATION_ID"),
    cert_path=r"Certificate.cer",
    key_path=r"Certificate.key",
    site_hostname="<sitename>.sharepoint.com",
    site_path='/sites/<location>',
    library_title='Documents'
)

files = sp.get_files(files_path)
sp.create_folder(folder_path='Path/to/New Folder')
sp.upload_file(local_path='file.txt', target_folder='Path/to/Upload Folder')
sp.download_file(file_path='Path/to/file.txt', download_dir='local/path/to/folder')
sp.move_file(file_path='path/to/file.txt', target_folder='other/path/to/file')
sp.rename_file(file_path='path/to/file.txt', new_name='path/to/new file name.txt')

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

py_simple_sharepoint-1.0.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

py_simple_sharepoint-1.0.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file py_simple_sharepoint-1.0.0.tar.gz.

File metadata

File hashes

Hashes for py_simple_sharepoint-1.0.0.tar.gz
Algorithm Hash digest
SHA256 19a92e163c42d71a883f84335f88ffd03fe1cf17bfc3604d69da12f878a9b21f
MD5 bbbaf0707ac9cdc1db74af0d1cd71a0f
BLAKE2b-256 fabcd12e75436d6ed30f9d08d72b6847ddb201f2b45ca6a8cf53c55ba9db74aa

See more details on using hashes here.

File details

Details for the file py_simple_sharepoint-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for py_simple_sharepoint-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ee7469a157b7441f507efd73d9eb7c20744380da4bdaaf2009ab8b1fd24b99a
MD5 fc87d62c0aa50a2dc7259222932af09b
BLAKE2b-256 6cbc0b7af726464413da22d5ccaa6c2653869eb663dba9987906fb8cd4750773

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