Metadata-Version: 2.1
Name: solun
Version: 0.0.3
Summary: Solun-CLI is a command line interface tool for uploading files to Solun.
Home-page: https://solun.pm/
Author: Daniel Wagner
Author-email: contact@solun.pm
License: MIT
Keywords: CLI,file-upload,solun,solun-cli,solun-pm
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: httpx ==0.25.1
Requires-Dist: python-bcrypt ==0.3.2
Requires-Dist: tqdm ==4.66.1

# Solun-CLI

Solun-CLI is a command line interface tool for uploading files to Solun.

## Installation

Clone the repository and navigate to the project directory:

```bash
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.

### Basic Upload
Upload a file:

```bash
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:

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

## 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).

## Build and Publish

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

```bash
pip install build
```

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

```bash
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:

```bash
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):
```bash
twine upload dist/*
```
