skip to navigation
skip to content

Not Logged In

pyguacamole 0.1

A Guacamole python client library.

Latest Version: 0.2

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

 
File Type Py Version Uploaded on Size
pyguacamole-0.1.tar.gz (md5) Source 2014-06-03 4KB
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 18 downloads in the last week
  • 116 downloads in the last month
  • Author: Mohab Usama
  • Home Page: https://github.com/mohabusama/pyguacamole
  • License:
    The MIT License (MIT)
    
    Copyright (c) 2014 Mohab Usama
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:
    
    The above copyright notice and this permission notice shall be included in all
    copies or substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    SOFTWARE.
  • Categories
  • Package Index Owner: mohabusama
  • DOAP record: pyguacamole-0.1.xml