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.5.tar.gz (4.9 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.5-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

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

Hashes for kdriveclientpy-1.0.5.tar.gz
Algorithm Hash digest
SHA256 b10c05e8b93180c24559a3ae831bad26946102ac4c040d4837af352af1eba5cc
MD5 b9ce04b53d18fbf64e1790f678c2155a
BLAKE2b-256 e268ebbe20e2803be8130ee2ea987d2e6de4f53dd474730da02cf5fbfdb8afcd

See more details on using hashes here.

Provenance

The following attestation bundles were made for kdriveclientpy-1.0.5.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.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

Hashes for kdriveclientpy-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8d360f91d31e2c73747afc6cbd6361768e2c1e53290e45b0e873c4cc2f17da6c
MD5 3c764c490a04ddb0bc8a1ad6dda996a6
BLAKE2b-256 13fa73a4d93dbf2e41f12b61c0036199949f6ad061c66d7f1f44519c7b23ff65

See more details on using hashes here.

Provenance

The following attestation bundles were made for kdriveclientpy-1.0.5-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