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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sharepointing-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 c0bf9034afe5176a851a0b9e1fa6d53654890d9b1674cd4fcc5d35a921ed5997
MD5 84b88873a1ca49e7bb6b65340dcad1cd
BLAKE2b-256 bf2ad66469a736052bf9589dd0ab5848acad91b45671d6f971c8e3c57b41c5ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sharepointing-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1799645ab3372e242284762dcd8dec5fe9a1b670c737b0e02190c18e56a15008
MD5 1ce13f780877f20fd0c192a9ddda08a9
BLAKE2b-256 2481776312529a7d4ee4c0dbfeb80f4849e81cf1f4051be974e6f2868cfdf330

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