Skip to content

NTFSvolume/bunkr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Upload files to bunkr.cr

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages