Metadata-Version: 2.4
Name: spgraph-client
Version: 0.1.0
Summary: A Python client for performing SharePoint actions via Microsoft Graph API.
Author-email: Harry Dinh <hoangdinh.2710@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/hoangdinh2710/spgraph-client
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Requires-Dist: pandas
Dynamic: license-file

# spgraph-client

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

## Installation
```bash
pip install spgraph-client
```

## Usage
```python
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")

```
