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.0rc5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6d17dcd0a168982a7991dfe52ef9ad281768f5d01a3ade4cbf1611314094d1b |
|
MD5 | 25bf108eb869f83b6e7c966a9265b82a |
|
BLAKE2b-256 | bad3993471e9d2beb6032c33363e079bd032d340a9fb0c5c1191558365aa31ba |
Close
Hashes for filebrowser_client-0.1.0rc5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e045862fc33af3c9fd2afbdcbe19debec57df83c9baf1e01d88a721bec48202 |
|
MD5 | 97108eccfe4ed9799a18951c2e6cc3c9 |
|
BLAKE2b-256 | 83d5db51ce6d2f43118621a71abb9c55e565e6765c3bc5129cf571275d2b8956 |