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.6.tar.gz (4.1 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.6-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sharepointing-0.1.6.tar.gz
Algorithm Hash digest
SHA256 9531f46be67466809a116405699e182c2ef754c6bb764efb5579c4b253953eed
MD5 8fe63489d3e8e6c1d8b2528bcc6fcfc2
BLAKE2b-256 8c108163e81631d09b2dfae1fe8f1f456d8ec8415f4e04edeeecfcee555f3953

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sharepointing-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b174f628ccf4f14fbc7f21d35e527686ec79e583715d9bdb68725125bf26b31a
MD5 2462294843de55540ba9d4411536e347
BLAKE2b-256 14d4367a971d9f62c736ca133f5da0c37391f4f834c6909c6b66c289b7acab14

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