Python SDK for the Infomaniak kDrive API.
⚠️ This library is not officially maintained by Infomaniak but made with ❤️ by Anthony.
- 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
pip install kDriveClientPYfrom 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"])MIT License — use freely, contribute with joy 😄
Made by Anthony Chaussin — GitHub