sharepy
Simple SharePoint Online authentication for Python
Decision gist · record as of 2026-08-14
Yes, if you need to automate SharePoint Online access and can accept dormant maintenance. The package is stable and has no known vulnerabilities, but GPLv3 copyleft and high install friction (source-only) are real constraints. Evaluate whether the lack of updates since 2023 poses a risk for your authentication flow or Microsoft API compatibility before committing.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.6 or later; interactive authentication prompts for username and password unless provided as arguments.
- High install friction due to source-only distribution (no wheels).
- Dormant maintenance—last release February 2022, no commits since September 2023—means bug fixes and compatibility updates are unlikely.
License · maintenance · safety
GPLv3 (copyleft) — GPLv3 copyleft license requires any derivative work to be released under the same license; suitable for internal tools and open-source projects, but incompatible with proprietary closed-source software.
last release 2022-02-05 (1651 days) · last repo commit 2023-09-20 · 177 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 811,607 downloads/mo, #5,002 on PyPI
Alternatives
Verify before relying
import sharepy
s = sharepy.connect("example.sharepoint.com")
r = s.get("https://example.sharepoint.com/_api/web/lists/GetByTitle('Test Library')")- Whether the package works with current Microsoft authentication endpoints and token formats.
- Compatibility with recent versions of the Requests library it extends.
- Whether ADFS authentication support remains functional with modern Active Directory configurations.
What it is and what it does
SharePy is a thin wrapper around the Requests library that automates authentication to SharePoint Online and O365 sites. It handles the Microsoft security token flow, manages access cookies, and automatically refreshes digest tokens needed for API modifications. The package exposes a session object with familiar Requests methods (get, post, etc.) so developers can make HTTP calls to the SharePoint REST API without manually managing authentication headers or token lifecycle.
The package is designed for straightforward scripting and automation tasks—connecting to a SharePoint site, fetching lists or libraries, downloading files, and making modifications through the REST API. It supports both standard SharePoint Online and ADFS-enabled sites, and can persist authenticated sessions to disk to avoid re-authenticating on each run.
Use it for
- Automate document downloads from SharePoint libraries on a schedule or in response to events.
- Query SharePoint lists and retrieve data for reporting or data pipeline tasks.
- Programmatically upload or modify SharePoint content without manual intervention.
- Build internal tools that need read/write access to O365 SharePoint sites.
- Integrate SharePoint data into Python data processing or ETL workflows.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to automate SharePoint Online access and can accept dormant maintenance.
The package is stable and has no known vulnerabilities, but GPLv3 copyleft and high install friction (source-only) are real constraints. Evaluate whether the lack of updates since 2023 poses a risk for your authentication flow or Microsoft API compatibility before committing.
Install
sharepy on PyPI
Before you install
High install friction due to source-only distribution (no wheels). Dormant maintenance—last release February 2022, no commits since September 2023—means bug fixes and compatibility updates are unlikely.
Requires Python 3.6 or later; interactive authentication prompts for username and password unless provided as arguments.
License in practice
GPLv3 copyleft license requires any derivative work to be released under the same license; suitable for internal tools and open-source projects, but incompatible with proprietary closed-source software.
Quickstart
import sharepy
s = sharepy.connect("example.sharepoint.com")
r = s.get("https://example.sharepoint.com/_api/web/lists/GetByTitle('Test Library')")
Verify before relying
- Whether the package works with current Microsoft authentication endpoints and token formats.
- Compatibility with recent versions of the Requests library it extends.
- Whether ADFS authentication support remains functional with modern Active Directory configurations.
Package facts
| License | GPLv3 copyleft |
| Python support | Supports the current Python release >=3.6, <4 |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Dormant 1,651 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 811,607 / month, #5,002 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: GNU General Public License v3 (GPLv3)Programming Language :: Python :: 3Topic :: Internet |
Evidence: sharepy-2.0.0.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “sharepoint online authentication python”
- sharepyHandles authentication to SharePoint Online and constructs…
- o365O365 provides a Pythonic interface to Microsoft Graph and Office 365…
- SharePlumSharePlum provides a Python interface to SharePoint services,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also SharePlum · office365-rest-python-client · o365 · requests-kerberos · pyodata · office365 · requests · vonage-http-client · Flask-HTTPAuth · requests-gssapi