Skip to main content

Programmatically upload files to kDrive drop boxes

Project description

kDrive Uploader

A small tool to programmatically upload files to kDrive drop boxes, used by the author as a poor man's backup solution.

Quickstart

First install with pip then run:

pip install kdrive-uploader

# upload all files in current folder
kdrive-uploader 0000000/00000000-0000-0000-0000-000000000000

# upload a specific file
kdrive-uploader 0000000/00000000-0000-0000-0000-000000000000 README.md

The link can either be just the last part containing the ids as above or a full kDrive drop box link (in the shape https://kdrive.infomaniak.com/app/collaborate/0000000/00000000-0000-0000-0000-000000000000).

You can also run it directly using uv:

uvx kdrive-uploader --help

Or with docker (still using uv):

docker run --rm --workdir /io -v .:/io -v uv-cache:/root/ ghcr.io/astral-sh/uv:alpine uvx kdrive-uploader --help

Manual

Usage: kdrive-uploader [OPTIONS] LINK [PATH]

╭─ Arguments ────────────────────────────────────────────────────────────────────────────────────────╮
│ *    link      TEXT    [required]                                                                  │
│      path      [PATH]  [default: .]                                                                │
╰────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────╮
│ --first-name                    TEXT  [default: kdrive]                                            │
│ --last-name                     TEXT  [default: uploader]                                          │
│ --email                         TEXT  [default: kdrive-uploader@ik.me]                             │
│ --dry-run       --no-dry-run          [default: no-dry-run]                                        │
│ --help                                Show this message and exit.                                  │
╰────────────────────────────────────────────────────────────────────────────────────────────────────╯

Dev/quickstart

# create dev env
uv sync --dev

# test
cd test_data
uv run kdrive-uploader 0000000/00000000-0000-0000-0000-000000000000

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

kdrive_uploader-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

kdrive_uploader-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file kdrive_uploader-0.1.0.tar.gz.

File metadata

  • Download URL: kdrive_uploader-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for kdrive_uploader-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d0903df0b6ca88e1ddb63bb5c432d1a134f0a585de4816d23ea929e9f69e1549
MD5 9d8b1b7b276c45f0b7af4dfdc744b470
BLAKE2b-256 cad3e56b5d041358897e9bf14aeecfac4caf95283bf6fd9553ee24bc37ac420c

See more details on using hashes here.

File details

Details for the file kdrive_uploader-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: kdrive_uploader-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for kdrive_uploader-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2853596e3db5137ce4933196cfe7bb9a4aeb4db60739db6de9f40c25d083b98
MD5 a03f0564b7d5f422f99c7cc0aea73711
BLAKE2b-256 34ac8aa4e45f5e3c2f1975a6e52ac607e14ab54453be3f8a21095148d4043992

See more details on using hashes here.

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