Metadata-Version: 2.1
Name: qrshare-io-cli
Version: 0.0.5
Summary: A CLI tool for uploading files with https://qrshare.io service
Home-page: https://qrshare.io
Author: Sergey Royz
Author-email: zjor.se@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: requests (>=2.31.0,<3.0.0)
Project-URL: Repository, https://github.com/zjor/qrshare.io-cli
Description-Content-Type: text/markdown

# QRshare.io CLI

A CLI tool for uploading files with [qrshare.io](https://qrshare.io) service.

It returns a QR-code with a download URL back in the console

## Installation

The package is available at [https://pypi.org/project/qrshare-io-cli/](https://pypi.org/project/qrshare-io-cli/)

Execute the following command
```bash
pip install qrshare-io-cli
```

If you see a warning like this: 
`WARNING: The script qrs is installed in '/usr/local/Cellar/python@3.8/3.8.17/Frameworks/Python.framework/Versions/3.8/bin' which is not on PATH.`,
then add the path specified about to `${PATH}` environment variable.

E.g.
```bash
echo '# Added by qrshare.io-cli' >> ~/.bash_profile
echo 'export PATH="/usr/local/Cellar/python@3.8/3.8.17/Frameworks/Python.framework/Versions/3.8/bin:${PATH}"' >> ~/.bash_profile
echo -e "\n" >> ~/.bash_profile

```

## Usage 

```bash
qrs <filename>
```

**Output**
```bash
Uploading: .gitignore...
                                                                          
                                                                          
    ██████████████    ████████████  ██      ████  ████  ██████████████    
    ██          ██    ██      ████    ██                ██          ██    
    ██  ██████  ██  ████      ██          ████    ████  ██  ██████  ██    
    ██  ██████  ██  ██████      ██████████      ██  ██  ██  ██████  ██    
    ██  ██████  ██  ██████  ██    ██    ██    ████      ██  ██████  ██    
    ██          ██  ████    ██████████████  ██    ████  ██          ██    
    ██████████████  ██  ██  ██  ██  ██  ██  ██  ██  ██  ██████████████    
                    ██████████  ████  ████  ██    ██                      
    ██  ██████████    ██████  ██████████        ██      ██████████        
      ██            ██            ██    ████  ██    ██  ██████████        
      ██    ██████████████            ██    ██  ████████    ██    ██      
      ████  ██    ██            ██  ██  ██████    ██    ████      ████    
    ██████████  ██  ██  ██████    ██          ████  ████  ████  ████      
    ██      ██      ████  ████████████    ██  ████    ██      ████        
    ██  ██████████          ██████    ██    ██  ██  ██    ██████    ██    
      ████████    ██      ██    ██  ████████  ██████    ██      ██████    
    ████      ████████  ██      ██      ██  ████    ██████  ██            
    ██████    ██  ████    ████  ████          ████  ████████  ████████    
    ██    ████████        ██  ██  ████████            ██    ████  ████    
    ██  ████      ████    ██    ██  ██    ████  ████  ████    ████  ██    
    ████  ██  ████  ██  ██    ██████    ██  ████    ██      ██  ██        
    ██    ████      ██    ██  ██████    ██  ██████      ████  ████        
    ██      ██  ██      ██      ████  ██  ██    ██  ██      ██    ██      
    ██  ██  ██    ████  ██    ██  ██  ████  ████████    ██      ██  ██    
    ██        ████  ██  ██████    ██████            ██████████████  ██    
                    ██        ██  ██          ██  ████      ██████  ██    
    ██████████████            ██  ██  ██████    ██  ██  ██  ████          
    ██          ██  ████████████    ██    ████      ██      ██████████    
    ██  ██████  ██  ████████████████  ██    ██      ██████████  ██        
    ██  ██████  ██  ████    ██████████  ██    ██      ██████  ██████      
    ██  ██████  ██  ████      ████    ████  ██  ████████████              
    ██          ██      ████  ██    ██████  ████████        ████  ████    
    ██████████████  ████        ████████    ██    ██    ██        ██      
                                                                          
                                                                          
    ╔══════════════╦══════════════════════════════════════════════════════════╗
    ║     Filename ║ .gitignore                                               ║
    ╠══════════════╬══════════════════════════════════════════════════════════╣
    ║         Size ║ 29 bytes                                                 ║
    ╠══════════════╬══════════════════════════════════════════════════════════╣
    ║ Download URL ║ https://api2.qrshare.io/api/v2/transfer/ddl/m9jQM2Pre06l ║
    ╚══════════════╩══════════════════════════════════════════════════════════╝

```

### Downloading with `cURL`

```bash
curl --content-disposition https://api2.qrshare.io/api/v2/transfer/ddl/m9jQM2Pre06l
```

> Note: make sure to use `--content-disposition` parameter to keep the original filename
