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.0rc4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 433bb28dd9eb5f9432f1af90afdda7b3c3bf888ded647958c647e1699654c2ae |
|
MD5 | b774b1cef9206a375246edb66ea93a37 |
|
BLAKE2b-256 | eb5dfdb40e0f7cf8ee50f32fa208c4b9b0d0d47010cdf5db3362af4103325c59 |
Close
Hashes for filebrowser_client-0.1.0rc4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61e6be0d5a870990e72fdade6897bf352c910ca646d4ab4bc69c90c0d631741e |
|
MD5 | b531fac9a1665390c784307c5eaba42b |
|
BLAKE2b-256 | 5e9fe9263081d4a211df0c8166adbda464b172195bed466627836c14752ef16d |