Skip to main content

Async Bunkr uploader

Project description

Bunkrr Uploader

Supports

  • Bunkrr accounts
  • Parallel uploads
  • Retries
  • Progress bars

Preview1

Preview2

usage: bunkr_uploader [-h] [-t str] [-n {str,null}] [-c int] [--chunk-size ByteSize] [--use-max-chunk-size bool] [--public bool] [--config-file {Path,null}] [--upload-retries int] [--chunk-retries int]
                      [--upload-delay int] [--recurse bool]
                      PATH

positional arguments:
  PATH                  File or directory to look for files in to upload

options:
  -h, --help            show this help message and exit
  -t str, --token str   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 (required)
  -n {str,null}, --album-name {str,null}
                        (default: null)
  -c int, --concurrent-uploads int
                        Maximum parallel uploads to do at once (default: 2)
  --chunk-size ByteSize
                        (default: 0)
  --use-max-chunk-size bool
                        Use the server's maximum chunk size instead of the default one (default: True)
  --public bool         Make all files uploaded public (default: True)
  --config-file {Path,null}
                        (default: null)
  --upload-retries int  How many times to retry a failed upload (default: 1)
  --chunk-retries int   How many times to retry a failed chunk or chunk completion (default: 2)
  --upload-delay int    How many seconds to wait in between failed upload attempts (default: 1)
  --recurse bool        Read files in `path` recursely (default: False)

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.0.tar.gz (10.4 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.0-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bunkr-0.1.0.tar.gz
  • Upload date:
  • Size: 10.4 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.0.tar.gz
Algorithm Hash digest
SHA256 649a5ceeb16d036d53d6ab252b1cb485204d3f29e5466c48f02b1a97b0d6f689
MD5 42696273663cc0bcf29cf1c574a594a1
BLAKE2b-256 78bb1f5d36828b3ba578c1b6bf8dffab76795cd1b394e08b80c3ffcad7b16e4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bunkr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e058597ecf8bb71cf376708221c08d5fa8e8e9db2d86089453a2e6bfd4a6b2cc
MD5 6f3c26d1c64c8850c0f2a0af44130e64
BLAKE2b-256 91d07fcc31c6015f24f367b8829fd0f4aecbf8460f7cd3c43d950b5786207dfb

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