Skip to content

anthonychaussin/kDriveClientPY

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📦 kDriveClientPY

Python SDK for the Infomaniak kDrive API.

⚠️ This library is not officially maintained by Infomaniak but made with ❤️ by Anthony.


✅ Features

  • Upload small and large files (automatic chunking)
  • Download files as stream or directly to disk
  • Error handling with parsed API errors
  • Rate limiter (60 requests/minute)
  • Automatic speed test to decide best upload strategy

💡 Installation

pip install kDriveClientPY

🚀 Quick Start

from kdrive_client.kdrive_client import KDriveClient from kdrive_client.kdrive_file import KDriveFile client = KDriveClient(token="your-token", drive_id=123456) # Upload file = KDriveFile("example.txt", "/Private") response = client.upload(file) print("Uploaded file ID:", response["id"]) # Download to file with open("downloaded.txt", "wb") as f: client.download_to(file_id=response["id"], dest=f) # Or get raw bytes raw_data = client.download(response["id"])

🔒 License

MIT License — use freely, contribute with joy 😄


📫 Author

Made by Anthony Chaussin — GitHub

About

kDriveClientPY is a modern python package to simplify file upload and download with Infomaniak kDrive API

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages