Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kdriveclientpy-1.0.7.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kdriveclientpy-1.0.7-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file kdriveclientpy-1.0.7.tar.gz.

File metadata

  • Download URL: kdriveclientpy-1.0.7.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kdriveclientpy-1.0.7.tar.gz
Algorithm Hash digest
SHA256 dfdf26d73cb025ba15f0eed6929e11d892350f6e51a37b6f3e3bda41363b5013
MD5 1c8e00a8c9849a2969989f0e7e0ef453
BLAKE2b-256 2de73739dc80a3de7cd0945b269f1ff5eeb480895259819106af526097ac5c96

See more details on using hashes here.

Provenance

The following attestation bundles were made for kdriveclientpy-1.0.7.tar.gz:

Publisher: python-publish.yml on anthonychaussin/kDriveClientPY

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kdriveclientpy-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: kdriveclientpy-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kdriveclientpy-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 32da1ce8be865e1de89b94293cb072d214825a25cb57f15cd99646c963b9815a
MD5 1e6512706e28b57b8ae11347d2d2e0ce
BLAKE2b-256 eacc3fe40ef86896656b262bb7520d3aba933d05aa25679742e866988740ccf2

See more details on using hashes here.

Provenance

The following attestation bundles were made for kdriveclientpy-1.0.7-py3-none-any.whl:

Publisher: python-publish.yml on anthonychaussin/kDriveClientPY

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page