An async CLI client and library for filebrowser API
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")
asyncio.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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for filebrowser_client-0.1.0rc3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06c4df95c28b9ae8cde2ee4ccccce8dccc12ec502f1984df393d63a130a687d6 |
|
MD5 | b6348df614bfd5319ad22a24c19431f4 |
|
BLAKE2b-256 | d459432e040389e4b9baadf88596211bd235c9a88a700d6b02a8a908543f2a64 |
Close
Hashes for filebrowser_client-0.1.0rc3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec066b154494095032ba797c67f7798e2c07c8ebbb6f2aa3be02cb1a1ea395fc |
|
MD5 | f46591949f02700537f99c007af1cfa4 |
|
BLAKE2b-256 | 11b8c210bbc73c33208ab0e675a16b039ccac6e7164bf377fa05802a42927bfa |