Skip to main content

A library to fetch SharePoint list data and return it as a Pandas DataFrame.

Project description

SharePoint to DataFrame

A Python library to fetch data from a SharePoint list and return it as a Pandas DataFrame.

Installation

You can install the package using pip:

pip install sharepoint_to_df

Usage

Here is a simple example of how to use the library:

import pandas as pd
from sharepoint_to_df import sharepoint_utils

# Define your SharePoint credentials and site
username = 'your_username'
password = 'your_password'
sharepoint_site = 'https://yourtenant.sharepoint.com/sites/yoursite'
list_name = 'Your List Name'

# Fetch the data from the SharePoint list
df = sharepoint_utils.get_list_view_test(username, password, sharepoint_site, list_name)

# Display the DataFrame
print(df.head())

Parameters

  • username (str): Your SharePoint username.
  • password (str): Your SharePoint password.
  • sharepoint_site (str): URL of your SharePoint site.
  • list_name (str): Name of the SharePoint list.
  • view_name (str, optional): Name of the SharePoint view. Default is "All Items".

Requirements

  • pandas
  • office365-rest-python-client

You can install the required dependencies using:

pip install pandas office365-rest-python-client

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

sharepoint_to_df-0.5.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sharepoint_to_df-0.5.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file sharepoint_to_df-0.5.0.tar.gz.

File metadata

  • Download URL: sharepoint_to_df-0.5.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.7

File hashes

Hashes for sharepoint_to_df-0.5.0.tar.gz
Algorithm Hash digest
SHA256 07c14613cc26d439d667884aecb19b0cad993f4a40be512e1932bdc04a02fee0
MD5 40f108bd38df4db806bc194ec0b3c649
BLAKE2b-256 ea21354aebe82b6f2db617f81532d450af0fb3a92e40f730e506ba8bd1bc6fe4

See more details on using hashes here.

File details

Details for the file sharepoint_to_df-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sharepoint_to_df-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60c35466a6c971e51d821485072c325ca9c7b2b9684a9c9c680aebc98b5befbe
MD5 f00d980c90d58860693ce6e316d2f328
BLAKE2b-256 bf68674c5814a65747eb7272beb62780cc8fb490668012ead231b72b56783144

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