Skip to main content

A simple CLI client for filebrowser

Project description

Overview

The filebrowser-client is an async client library for the Filebrowser API. It provides a cli client and a library to interact with the API.

Installation

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

    pip3 install filebrowser-client

Features

  • Download a file or a directory
  • Upload a file or a directory
  • Delete a file or a directory

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 available commands.

    $ filebrowser-client --help
    usage: filebrowser-client [-h] [--version] --host HOST [--username USERNAME] [--password PASSWORD] [--recaptcha RECAPTCHA] [--insecure]
                            [--concurrent CONCURRENT] [--override] [--source SOURCE] [--destination DESTINATION]
                            {upload,download,delete}

    Filebrowser async client CLI

    positional arguments:
    {upload,download,delete}
                            Command to execute

    optional arguments:
    -h, --help            show this help message and exit
    --version             show program's version number and exit
    --host HOST           Filebrowser host
    --username USERNAME   Filebrowser username
    --password PASSWORD   Filebrowser password
    --recaptcha RECAPTCHA
                            Filebrowser recaptcha
    --insecure            Disable SSL verification
    --concurrent CONCURRENT
                            Number of concurrent requests
    --override            Override existing files
    --source SOURCE       Source file or directory
    --destination DESTINATION
                            Destination file or directory

Library

    import asyncio
    from filebrowser_client import FilebrowserClient

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

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

License

This project is licensed under the MIT License - see the LICENSE file for details

Development

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

Prerequisites

Build

    poetry build

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_client-0.1.0rc1.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

filebrowser_client-0.1.0rc1-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page