Giter Site home page Giter Site logo

solun-pm / cli Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 27 KB

Solun-CLI is a command line interface tool for uploading and downloading files from Solun.

Home Page: https://solun.pm

Python 100.00%
brute-force-protection cli cli-tool end-to-end-encryption file-management file-sharing file-transfer file-upload password python

cli's Introduction

Solun-CLI

Solun-CLI is a command line interface tool for uploading and downloading files from Solun.

Installation

Clone the repository and navigate to the project directory:

cd cli
pip install .

Usage

The solun command can be used to upload files with optional settings for brute force protection, password, end-to-end encryption, and auto deletion. The solun download command can be also used to download files from Solun.

Basic Upload

Upload a file:

solun file -p /path/to/your/file

Advanced Upload

Upload a file with brute force protection, a password, end-to-end encryption, and set an auto deletion parameter:

solun file -p /path/to/your/file -b -pw "YourPassword" -e2e -ad 1d

Download

Download a file:

solun download -l https://solun.pm/file/xyz

Arguments

  • -p, --path: Path to the file to be uploaded.
  • -b, --bruteforceSafe: Enable brute force protection (default: disabled).
  • -pw, --password: Set a password for the file (default: None).
  • -e2e, --endToEndEncryption: Enable end-to-end encryption (default: disabled).
  • -ad, --autoDeletion: Set auto deletion parameter. Options: download, 1d, 1w, 1m, 3m, 6m, 1y, never (default: download).
  • -l, --link: Link to the file to be downloaded.

Build and Publish

To build the package, first install the build tool with:

pip install build

Then run the following command in the root directory of the project:

python3 -m build

This will generate distribution files in the dist directory that you can publish to PyPI. Before publishing the package, ensure any previous build artifacts are cleared to avoid errors:

rm -rf solun.egg-info

To publish the package to PyPI, use the following twine command (make sure twine is installed using pip install twine):

twine upload dist/*

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.