Skip to main content

A Python client for performing SharePoint actions via Microsoft Graph API.

Project description

spgraph-client

A Python client for performing SharePoint actions via Microsoft Graph API like download files, SharePoint List or upload files.

Installation

pip install spgraph-client

Usage

from spgraph_client import SharePointClient

client = SharePointClient(
    tenant_id="YOUR_TENANT_ID",
    client_id="YOUR_CLIENT_ID",
    client_secret="YOUR_CLIENT_SECRET",
    site_domain="example.sharepoint.com",
    site_name="MySite"
)

client.create_folder("Reports")
client.upload_file("Reports", "local_report.pdf")
client.get_file("Reports", "local_report.pdf")
client.get_all_files("Reports", "local_report.pdf")

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

spgraph_client-0.1.0.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.

spgraph_client-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file spgraph_client-0.1.0.tar.gz.

File metadata

  • Download URL: spgraph_client-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for spgraph_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5261e5f4bbdf49fa2529554ad3159ee05b172b6e2af8f08d562427df849d0717
MD5 6d79855cbeb85d6dd7f20bd090a913fd
BLAKE2b-256 9555b98221d5861ce05d19e07d7fe2691d20d18634992941cb2ca855eaa36b7c

See more details on using hashes here.

File details

Details for the file spgraph_client-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: spgraph_client-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for spgraph_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 169c1f8616d870de34d2bc11d612666be3887979a0836d4dc79a04aa84bc53f4
MD5 7abdc9a66a9e7f0275b2fb17e97ffd09
BLAKE2b-256 9844c996191602625e0e72c95f24245a640b5cfccca5c87c532377aed70df6ca

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