Simple OneDrive upload for company-wide access
Project description
OneDrive Upload
Simple Python package for uploading files to a shared OneDrive account.
Supports files up to 250GB using resumable upload sessions.
Installation
pip install .
Setup
Set environment variables:
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
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
- Register app in Azure AD
- Add Application permissions:
Files.ReadWrite.All,User.Read.All - Grant admin consent
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
onedrive_upload-1.0.0.tar.gz
(4.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file onedrive_upload-1.0.0.tar.gz.
File metadata
- Download URL: onedrive_upload-1.0.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34a7fd142cba0f40da34b99ddab8e9a3439c1a05e5a1a9080bcc69daadf90ba9
|
|
| MD5 |
4b2cf64815371977af86aa3d27711d88
|
|
| BLAKE2b-256 |
dc014516f3f245ccf9aebd2fbf694e6f4cc800183af3c32f9450d86db6afcca0
|
File details
Details for the file onedrive_upload-1.0.0-py3-none-any.whl.
File metadata
- Download URL: onedrive_upload-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55908626514f92e9c1ff0fb42f67e791b3d29081d517bdd40b43f6ee8b9907ef
|
|
| MD5 |
2302c97ed6b3cdba1fb26dcd0b7da659
|
|
| BLAKE2b-256 |
7640efcb0de797a0e036018c8a84160104db9f4618121889be7bcc36233e79db
|