Skip to main content

A package to establish a connection to SharePoint site, and upload files through that connection

Project description

Sharepointing

A library to establish connection to sharepoint. Then operate on this connection. Right now it's only possible to upload files.

This library depends on office 365 library, and it will use active directory authentication to connect to SharePoint.

Installation

In order to install this library you need to obtain an SSH code

Use pip to install this library from Github:

pip install sharepointing

Requirements

First you need to initialize the the sharepoint connection, which is an object. You have two options, either use embedded credentials in environment variables:

USERNAME for office365 email

PASSWORD for office365 password

Then you can use this call:

sp = sharepointing.sp_site(site_url)

The second option is to provide the credentials in the class call:

sp = sharepointing.sp_site(site_url,username,password)

Once the object is created successfully, you can call use send_file method to upload the files to sharepoiont

Example

site_url = "https://companysite.sharepoint.com/teams/teamsname"
target = "/teams/teamsname/Shared Documents/General/"
file = 'file.txt'
sp = sharepointing.sp_site(site_url)
sp.send_file(file,target)

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

sharepointing-0.1.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

sharepointing-0.1.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file sharepointing-0.1.2.tar.gz.

File metadata

  • Download URL: sharepointing-0.1.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for sharepointing-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8cd54858781b5b6167c45e2b27f3076e6c9bf36949dcb32632f03fe9b4f6020a
MD5 8259875a3d181d7f2306aa3501977f24
BLAKE2b-256 f26b7b43ed672164cd86449a2ea9ca5cd641af62ab04ee2a9f060143d020192c

See more details on using hashes here.

File details

Details for the file sharepointing-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: sharepointing-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for sharepointing-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4edeacaf5b87b400ad1e09c57e2476f444404f6b007f1d09983776c5ae4ce9c9
MD5 255ea67a00821a63fc290d8a52f49318
BLAKE2b-256 fb40e98a9f8e6db06c4c34b877152e57f66dce84b077fad31e5a0aea114cff20

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