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.4.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.4-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sharepointing-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 61454e34d91ba02c271daa6e80e2b27d331f9cc2c9d09ddd4d311a9eaa889e9d
MD5 a74ea8e5a6ea4a580742c91fd9410f5d
BLAKE2b-256 7dae6fd3529f2f79ea82594342c29ad793d02fe9ba09efd2503555fb1a431279

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sharepointing-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e510b631521706d718c571913ab2fcb49115f3d214daf0e983b1ed1f8483d601
MD5 59887c20ec27f5b76e30f24e57d3f43b
BLAKE2b-256 23370a3e5d70782f064614980bd7888a44386871a23fccaf9f9088df5ae93b62

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