Skip to main content

A Guacamole python client library.

Project description

# PyGuacamole

A Python client library for communication with [Guacamole](http://guac-dev.org/) server (guacd)

[![Build Status](https://travis-ci.org/mohabusama/pyguacamole.svg?branch=master)](https://travis-ci.org/mohabusama/pyguacamole)

## Installation

Using pip

` $ sudo pip install pyguacamole `

From source

` $ sudo python setup.py install `

## Usage

GuacamoleClient handles communication with a running guacd server via [Guacamole Protocol](http://guac-dev.org/doc/gug/protocol-reference.html).

GuacamoleClient must be used by a broker server which handles communication with a Javscript application running in the browser. GuacamoleClient implements the methods that enables communication with guacd server (send & receive).

First step should be establishing handshake with guacd server, then Broker server should handle instruction sending and receiving:

  • send: send instruction to guacd server

  • receive: receive instruction from guacd server

` >>> from guacamole.client import GuacamoleClient >>> client = GuacamoleClient('127.0.0.1', 4822) >>> client.handshake(protocol='rdp', hostname='localhost', port=3389) `

Once instruction is received from guacd server, it should be sent immediately to the browser

` >>> instruction = client.receive() >>> instruction '4.size,1.0,4.1024,3.768;' `

and once instruction is sent from browser, it should be sent immediately to guacd server

` >>> instruction = '5.mouse,3.400,3.500;' >>> client.send(instruction) `

## Notes

PyGuacamole is released under the [MIT License](https://raw.githubusercontent.com/mohabusama/pyguacamole/master/LICENSE) and is based on the initial effort by Rescale [django-guacamole](https://github.com/rescale/django-guacamole) project.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyguacamole-0.1.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file pyguacamole-0.1.tar.gz.

File metadata

  • Download URL: pyguacamole-0.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyguacamole-0.1.tar.gz
Algorithm Hash digest
SHA256 8eaf91d0d99466184ad369a803bd35244a6342565df7f920141fa90243ab6f33
MD5 b7913f3b46ec7c554376f2b9cbb6fcd5
BLAKE2b-256 c7c3726b38a92ce6a01b3f1631b38ed37d9dd2c7b78af0d2117b9f9e0a84587b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page