Python SDK for Infomaniak kDrive
Project description
📦 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
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
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 kdriveclientpy-1.0.5.tar.gz.
File metadata
- Download URL: kdriveclientpy-1.0.5.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b10c05e8b93180c24559a3ae831bad26946102ac4c040d4837af352af1eba5cc
|
|
| MD5 |
b9ce04b53d18fbf64e1790f678c2155a
|
|
| BLAKE2b-256 |
e268ebbe20e2803be8130ee2ea987d2e6de4f53dd474730da02cf5fbfdb8afcd
|
Provenance
The following attestation bundles were made for kdriveclientpy-1.0.5.tar.gz:
Publisher:
python-publish.yml on anthonychaussin/kDriveClientPY
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kdriveclientpy-1.0.5.tar.gz -
Subject digest:
b10c05e8b93180c24559a3ae831bad26946102ac4c040d4837af352af1eba5cc - Sigstore transparency entry: 264779397
- Sigstore integration time:
-
Permalink:
anthonychaussin/kDriveClientPY@bb0f271086b1565c78cdc8647c82d6a3bef54ffc -
Branch / Tag:
refs/tags/v1.0.5 - Owner: https://github.com/anthonychaussin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@bb0f271086b1565c78cdc8647c82d6a3bef54ffc -
Trigger Event:
release
-
Statement type:
File details
Details for the file kdriveclientpy-1.0.5-py3-none-any.whl.
File metadata
- Download URL: kdriveclientpy-1.0.5-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d360f91d31e2c73747afc6cbd6361768e2c1e53290e45b0e873c4cc2f17da6c
|
|
| MD5 |
3c764c490a04ddb0bc8a1ad6dda996a6
|
|
| BLAKE2b-256 |
13fa73a4d93dbf2e41f12b61c0036199949f6ad061c66d7f1f44519c7b23ff65
|
Provenance
The following attestation bundles were made for kdriveclientpy-1.0.5-py3-none-any.whl:
Publisher:
python-publish.yml on anthonychaussin/kDriveClientPY
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kdriveclientpy-1.0.5-py3-none-any.whl -
Subject digest:
8d360f91d31e2c73747afc6cbd6361768e2c1e53290e45b0e873c4cc2f17da6c - Sigstore transparency entry: 264779399
- Sigstore integration time:
-
Permalink:
anthonychaussin/kDriveClientPY@bb0f271086b1565c78cdc8647c82d6a3bef54ffc -
Branch / Tag:
refs/tags/v1.0.5 - Owner: https://github.com/anthonychaussin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@bb0f271086b1565c78cdc8647c82d6a3bef54ffc -
Trigger Event:
release
-
Statement type: