Skip to main content

A Guacamole python client library.

Project description

Copyright (c) 2014 - 2016 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.

Description: ===========
PyGuacamole
===========

A Python client library for communication with `Guacamole <http://guac-dev.org/>`_ server (guacd)

.. image:: https://travis-ci.org/mohabusama/pyguacamole.svg?branch=master
:target: https://travis-ci.org/mohabusama/pyguacamole

.. image:: https://img.shields.io/pypi/v/pyguacamole.svg
:target: https://python.org/pypi/pyguacamole/

.. image:: https://img.shields.io/pypi/pyversions/pyguacamole.svg
:target: https://python.org/pypi/pyguacamole/

.. image:: https://img.shields.io/github/license/mohabusama/pyguacamole.svg
:target: https://python.org/pypi/pyguacamole/

.. image:: https://img.shields.io/pypi/status/pyguacamole.svg
:target: https://python.org/pypi/pyguacamole/


Installation
============

Using pip

::

$ pip install pyguacamole


From source

::

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

Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python
Classifier: Topic :: Communications
Classifier: Topic :: Software Development :: Libraries :: Python Modules

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.7.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

pyguacamole-0.7-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyguacamole-0.7.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.1

File hashes

Hashes for pyguacamole-0.7.tar.gz
Algorithm Hash digest
SHA256 8b32a9c7528ebc195df3556d52b2c30fe9537a12baca994b0272768353503a33
MD5 8b8efb0ba1b21fb711228b674f7dbdb5
BLAKE2b-256 29af03cbd15360c6ff5f55b30211677811c498e391305d6f6120c4456e502cbf

See more details on using hashes here.

File details

Details for the file pyguacamole-0.7-py3-none-any.whl.

File metadata

  • Download URL: pyguacamole-0.7-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.1

File hashes

Hashes for pyguacamole-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6fda9ee42f01a9c63d2b926313907688fe33b845aca0d48c7338420aa7a68556
MD5 7cc96fab43fb2cf67c2df174b4089fc7
BLAKE2b-256 c2c68d76d8f73ac0691554ad6312dc7106b13fb7a44cd4b8e75317cf5a08101d

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