An async CLI client and library for filebrowser API
Project description
Overview
The filebrowser-client
is an async client CLI and library for the Filebrowser API.
Installation
The easiest way to install the filebrowser-client
is to use pip
:
pip3 install filebrowser-client
Features
- Download a remote file or a directory
- Upload a file or a directory to a remote location
- Delete a file or a directory from a remote location
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 global options and the available commands.
filebrowser-client --help
Usage: filebrowser-client [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
download Download a file or a directory from a remote location
upload Upload a file or a directory to a remote location
delete Delete a file or a directory from a remote location
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
Development
The filebrowser-client
is developed using poetry
and pre-commit
.
Prerequisites
Setup
poetry install
pre-commit install
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.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55011b99596a9ae904c8b5f5a66cb8bf9ac7afed1260f20a89d0ceb8289b6bf3 |
|
MD5 | c7da35387d2fb92c9469fcd540469b2a |
|
BLAKE2b-256 | 9b68059bb66195bcad8ba24cdb703af591738fe4c6c87b20d695ad644133b824 |