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.5.tar.gz (3.7 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.5-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sharepointing-0.1.5.tar.gz
  • Upload date:
  • Size: 3.7 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.5.tar.gz
Algorithm Hash digest
SHA256 d88b13d9d2b4f1d2c51b67d40b114f89587ea8f8f1e48431521a62c0fb2d00b1
MD5 e31f74ec83294a127c5a2d293b68de27
BLAKE2b-256 23a8d37c32ccdd46b833d4a230d4d029119ed168594c640ec5a4015782234b7f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sharepointing-0.1.5-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.9

File hashes

Hashes for sharepointing-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7242de6ed2179d00f129e3f621d74348f3e92374f9b4724a230ff9e7e98e4b72
MD5 ce8d2a06a71b7be98216d009cd47aa94
BLAKE2b-256 beb19dfd5b3ff027beb5e6ee10dd3737e1fe11823eaf065bd4aaa67e72a954e0

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