Skip to main content

Async Bunkr uploader

Project description

Bunkr Uploader

PyPI - Version PyPI - Python Version linting - Ruff GitHub License

Supports

  • Bunkr accounts
  • Parallel uploads
  • Retries
  • Progress bars

Preview1

Preview2

Usage: bunkr upload --token STR [OPTIONS] PATH

Upload a file or files to bunkr

╭─ Arguments ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ *  PATH  File or directory to look for files in to upload [required]                                                                               │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Parameters ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│    --recurse                Read files in PATH recursely [default: False]                                                                          │
│ *  --token -t               API token for your account so that you can upload to a specific account/folder. You can also set the BUNKR_TOKEN       │
│                             environment variable for this [env var: BUNKR_TOKEN] [required]                                                        │
│    --album-name -n          Name to use for album. If an album with this name already exists, add the files to that album                          │
│    --concurrent-uploads -c  Maximum parallel uploads to do at once [default: 2]                                                                    │
│    --chunk-size             Size of chunks to use for uploads. 0 or None will use the server's maximum chunk size                                  │
│    --public --no-public     Make all uploaded files public [default: True]                                                                         │
│    --retries -R             How many times to retry a failed file upload [default: 1]                                                              │
│    --chunk-retries          How many times to retry a failed chunk upload [default: 2]                                                             │
│    --delay                  How many seconds to wait in between failed upload attempts [default: 1.0]  

TODO

  • Slit API and UploadClient
  • Migrate to aiohttp
  • Upload logging
  • Replace tqdm with rich progress
  • Skipping duplicate uploads
  • Private and public directory uploads
  • Update README
  • Make it work
  • Add file zipping and cleanup
  • Add tests
  • Add github runners for tests
  • Recursive directory upload support

Original code by alexmi256

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

bunkr-0.1.1.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

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

bunkr-0.1.1-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file bunkr-0.1.1.tar.gz.

File metadata

  • Download URL: bunkr-0.1.1.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for bunkr-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cebfe339eb843765ade3857446b30ef9549715670141334d777d510389907c8a
MD5 d09e4eb308b9b2a5025d9f54883fa4a9
BLAKE2b-256 873c8fa225045bbb834b9f827b91b7e15a36185d0f58110714e9de833f0e9dc7

See more details on using hashes here.

File details

Details for the file bunkr-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: bunkr-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for bunkr-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a5983b5dbec3d555d4019139b12452ecb1c2086e41fd650b8ca4709a7acee1c7
MD5 881578fc585dcd50e92ced18166782ce
BLAKE2b-256 41fa74ea0b7e10d4b787a8fb1ba4d67d95c172c9934d520dc484bf4db87ce5e6

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