Metadata-Version: 2.4
Name: onedrive-upload
Version: 1.0.0
Summary: Simple OneDrive upload for company-wide access
Author: Your Name
Author-email: Yash Edake <yash.edake@maxspike.in>
License: MIT
Project-URL: Homepage, https://github.com/yourusername/onedrive-upload
Keywords: onedrive,microsoft,graph,upload,azure
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: msal>=1.24.0
Requires-Dist: requests>=2.28.0
Requires-Dist: python-dotenv>=1.0.0
Dynamic: author
Dynamic: requires-python

# OneDrive Upload

Simple Python package for uploading files to a shared OneDrive account.

**Supports files up to 250GB** using resumable upload sessions.

## Installation

```bash
pip install .
```

## Setup

Set environment variables:

```bash
export APPLICATION_ID="your-app-id"
export CLIENT_SECRET="your-secret"
export TENANT_ID="your-tenant-id"
export TARGET_USER_EMAIL="target@company.com"
```

## Usage

```python
from onedrive_upload import upload

# Small file (< 4MB) - simple upload
upload("report.pdf", "Reports/report.pdf")

# Large file (any size) - automatic chunked upload
upload("backup.zip", "Backups/backup.zip")

# With credentials
upload("file.txt", app_id="...", secret="...", tenant="...", user="...")

# Silent mode (no output)
upload("file.txt", silent=True)
```

## Features

- Automatic chunked upload for files > 4MB
- Progress display for large files
- No file size limit (up to 250GB)
- App-only authentication (no user login)

## Azure Setup

1. Register app in Azure AD
2. Add Application permissions: `Files.ReadWrite.All`, `User.Read.All`
3. Grant admin consent
