skip to navigation
skip to content

guacamole-cli 0.3.1

Guacamole command line interface

A command line interface for https://github.com/Antojitos/guacamole

Tested with Python 2.7 and 3.4

Install

$ pip install guacamole-cli

Usage

Uploading a file

To upload a file you need to specify your Guacamole server URL and a filename, for example:

$ guacamole screenshot.jpg
http://guacamole.antojitos.io/files/TRPm/0lkq/6egk/yHgg/OeDg/fVHr/screenshot.jpg

Command options

Use --help to show the command options:

$ guacamole --help
usage: guacamole [-h] [-c CONFIG_FILE] [-e ENDPOINT] [-s SHORTENER] filename

positional arguments:
  filename              file to upload

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG_FILE, --config-file CONFIG_FILE
                        Specify a configuration file
  -e ENDPOINT, --endpoint ENDPOINT
                        Guacamole endpoint URL
  -s SHORTENER, --shortener SHORTENER
                        Tamales endpoint URL

Configuration file

By default the command line interface looks for a configuration file in ~/.guacamole.conf. You can also specify an alternative configuration file using the --config-file command line option.

Here’s an example:

[general]
endpoint = http://guacamole.antojitos.io/files/

# an empty value disable the URL shortener service
shortener = http://t.antojitos.io/api/v1/urls

Tests

In order to execute the test suite you need to run the next commands:

pip install -r requirements-dev.txt
python tests/main.py
 
File Type Py Version Uploaded on Size
guacamole-cli-0.3.1.tar.gz (md5) Source 2015-11-27 3KB