Skip to main content

A simple Python utility to download files or entire folders recursively from Filebrowser shares.

Project description

Filebrowser Downloader

A simple Python utility to download files or folders from a Filebrowser public share URL.

Supports:

✅ Password-protected shares
✅ Recursive folder downloads (preserves structure)
✅ Progress display for file downloads
✅ Skipping already downloaded files (with size check)
✅ Partial file cleanup on error
✅ Configurable verbosity and error handling

Although primarily intended as a downloader, this utility also supports file uploads using username and password auth.


Installation

Download from PyPI:

pip install filebrowser-downloader

Minimal Usage

from filebrowser_downloader import download

# Download a single file into the current working directory:
download("https://yourhost/share/abc123")

# Download a folder (recursively) into path/to/folder
download(
    base_url="https://yourhost/share/def456", 
    password="secret", 
    destination_folder="path/to/folder"
)

Parameters:

  • base_url: The public share URL (https://host/share/<share_id>).
  • password: Password if the share is protected. If None and required, the user is prompted interactively.
  • destination_folder: Where to save files/folders. Defaults to cwd if it's a file, otherwise a folder is downloaded into a new subdirectory named after the share_id
  • abort_if_exists: Skip files that already exist and match size. If a file exists but size mismatches, it is re-downloaded. (Default = True)
  • verbose: Show progress, warnings, and status messages. (Default = True)
  • raise_on_error: If True, raises exceptions instead of failing silently/logging. (Default = False)
  • Returns: Path to the downloaded file or folder.

Upload Usage

from filebrowser_downloader import upload

upload(
    base_url="https://yourhost",
    local_file="path/to/file.bin",
    remote_folder="my/remote/folder",
    username="your_username",
    password="your_password",  # omit to prompt interactively
    override=True,
)

Notes:

  • remote_folder is appended to /api/tus/<remote_folder>/<filename>.
  • override controls whether remote file is overwritten or kept.

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

filebrowser_downloader-0.2.1.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

filebrowser_downloader-0.2.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file filebrowser_downloader-0.2.1.tar.gz.

File metadata

  • Download URL: filebrowser_downloader-0.2.1.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for filebrowser_downloader-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b98d189c3248727b0569082bd8a48a505d5989da6dd6a12c6b0d070e3c601326
MD5 ba596c54028a4ac599cb79f2e375d826
BLAKE2b-256 8b4f5283b8ac097ebe2179f0d06a56b436591cab50614349244b98bb983b3179

See more details on using hashes here.

File details

Details for the file filebrowser_downloader-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for filebrowser_downloader-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a3b2a6ff65617073fc6cda3149c0077ff8535f86906b8c1511f80f96d1008240
MD5 bb20fb6c28733c09431146be77ef6607
BLAKE2b-256 2864b51fd02af73b1b6e744812f7ff94e51681ffcca82d49f6b5720a6091c349

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