Skip to content

chermed/filebrowser-client

Repository files navigation

Overview

The filebrowser-client is an async client CLI and library for the Filebrowser API.

Installation

The easiest way to install the filebrowser-client is to use pip:

    pip3 install filebrowser-client

Features

  • Download a remote file or a directory
  • Upload a file or a directory to a remote location
  • Delete a file or a directory from a remote location

Usage

The filebrowser-client provides a cli client and a library to interact with the Filebrowser API.

CLI

Run filebrowser-client --help to see the global options and the available commands.

    filebrowser-client --help
    Usage: filebrowser-client [OPTIONS] COMMAND [ARGS]...

    Options:
    --help  Show this message and exit.


    Commands:
    download  Download a file or a directory from a remote location
    upload    Upload a file or a directory to a remote location
    delete    Delete a file or a directory from a remote location

Library

    import asyncio
    from filebrowser_client import FilebrowserClient

    client = FilebrowserClient("http://localhost:8080", "admin", "admin")
    asyncio.run(client.connect())

    asyncio.run(client.download("/path/to/file", "/path/to/destination"))

License

This project is licensed under the MIT License

Development

The filebrowser-client is developed using poetry and pre-commit.

Prerequisites

Setup

    poetry install
    pre-commit install

Build

    poetry build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages