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
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.0rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a8f8481e3fb07bb18b3e2d4dc5c025e7cf016834c29ddf7dc4b769a6e05710c |
|
MD5 | e4b9d37b937cc7a2f3b18918ec0aa6d6 |
|
BLAKE2b-256 | e4c82a94a3e49aefdaf3c62c172f6b1d1e7e2d6e4533a7170ad7c21fc08397e3 |
Close
Hashes for filebrowser_client-0.1.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08061e838282744bb140d2c2b6d01ac9d7505bf1fbd5f4962c56a0265dd924d1 |
|
MD5 | 1a57e44d16b3cbf8a6a40386e2814722 |
|
BLAKE2b-256 | cc34ec55fcc798b5f3999a3f4ba92eee0ef512c8dec59edd9ceec19902ddd8a8 |