vncdotool


Namevncdotool JSON
Version 1.2.0 PyPI version JSON
download
home_pagehttp://github.com/sibson/vncdotool
SummaryCommand line VNC client
upload_time2023-07-06 18:00:43
maintainer
docs_urlhttps://pythonhosted.org/vncdotool/
authorMarc Sibson
requires_python
licenseMIT License
keywords vnc rfb
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://img.shields.io/pypi/pyversions/vncdotool.svg
   :target: https://pypi.python.org/pypi/vncdotool
   :alt: Python Versions

.. image:: https://img.shields.io/pypi/v/vncdotool
    :target: https://pypi.org/project/vncdotool/
    :alt: PyPi Package

.. image:: https://img.shields.io/pypi/pyversions/vncdotool.svg
   :target: https://pypi.python.org/pypi/vncdotool
   :alt: Python Versions

.. image:: https://github.com/sibson/vncdotool/workflows/VNCDo%20CI/badge.svg
   :target: https://github.com/sibson/vndotool/actions
   :alt: Actions Status

.. image:: https://readthedocs.org/projects/vncdotool/badge/?version=latest&style=flat
   :target: https://vncdotool.readthedocs.io/en/latest/
   :alt: ReadTheDocs

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
   :target: https://github.com/psf/black
   :alt: Code style: black



vncdotool
===========
vncdotool is a command line VNC client.
It can be useful to automating interactions with virtual machines or
hardware devices that are otherwise difficult to control.

It's under active development and seems to be working, but please report any problems you have.

Quick Start
--------------------------------
To use vncdotool you will need a VNC server.
Most virtualization products include one, or use RealVNC, TightVNC or clone your Desktop using x11vnc.

Once, you have a server running you can install vncdotool from pypi::

    pip install vncdotool

and then send a message to the vncserver with::

    vncdo -s vncserver type "hello world"

The `vncserver` argument needs to be in the format `address[:display|::port]`. For example::

    # connect to 192.168.1.1 on default port 5900
    vncdo -s 192.168.1.1 type "hello world"

    # connect to localhost on display :3 (port 5903)
    vncdo -s localhost:3 type "hello world"

    # connect to myvncserver.com on port 5902 (two colons needed)
    vncdo -s myvncserver.com::5902 type "hello world"

    # connect via IPv6 to localhost on display :3 (port 5903)
    vncdo -s '[::1]:3' type "hello IPv6"
    #         ^   ^ mind those square brackets around the IPv6 address

You can also take a screen capture with::

    vncdo -s vncserver capture screen.png


More documentation can be found on `Read the Docs`_.

Feedback
--------------------------------
If you need help getting VNCDoTool working try the community at `_Stackoverflow`

Patches, and ideas for improvements are welcome and appreciated, via `_GitHub` issues.
If you are reporting a bug or issue please include the version of both vncdotool
and the VNC server you are using it with.


Acknowledgements
--------------------------------
Thanks to Chris Liechti, techtonik and Todd Whiteman for developing the RFB
and DES implementations used by vncdotool.
Also, to the TigerVNC_ project for creating a community focus RFB specification document



.. _Read The Docs: http://vncdotool.readthedocs.org
.. _GitHub: http://github.com/sibson/vncdotool
.. _TigerVNC: http://sourceforge.net/apps/mediawiki/tigervnc/index.php?title=Main_Page
.. _python-vnc-viewer: http://code.google.com/p/python-vnc-viewer
.. _Stackoverflow: https://stackoverflow.com/questions/ask?tags=vncdotool

1.2.0 (2023-06-06)
----------------------
  - fixes for api.shutdown and disconnect raise exceptions, #256

1.1.0 (2023-04-01)
----------------------
Huge thanks to @pmhahn for single handedly driving conversion to modern Python3, as well
as cleaning up a ton of outstanding issues.

  - [BREAKING] drop python 2.x support, thanks @pmhahn
  - Use built-in Unittest and mock for testing
  - PEP-484 type hinting, thanks @pmhahn
  - Doc improvements, thanks @luke-jr, @pmhahn, @samiraguiar
  - Test for byte handling, thanks @ponty, refs #177
  - Internal implementation of DES replaced by PyCrotodomeX

  - Support for Apple Remote Desktop (ARD), thanks @andywgrant, @pmhahn
  - Support for pseudo-encoding LastRec, thanks @pmhahn
  - Support for Extended QEMU Key Events, thanks @pmhahn
  - Support IPv6 addresses for server connection, thanks @pmhahn

  - Bugfix, use configured log outputs over stdout, thanks @pevogam
  - Bugfix, handle invalid password, thanks @dozysun
  - Bugfixes for loggingproxy, thanks @joachimmetz, @pmhahn, @guicho271828


1.0.0 (2020-04-10)
----------------------
  - add ZRLE encoding, thanks Adrian Weiler
  - drop python2 support
  - fix mouseDrag behaviour, thanks Samir Aguiar

0.13.0 (2019-11-21)
----------------------
  - new flag --incremental-refreshes, increased compatibility of capture, thanks Amir Rossert
  - exit non-zero and print to stderr for unknown commands, thanks Amir Rossert

0.12.1 (2018-12-06)
----------------------
   - bugfix expectRegion to use cropped images for compare, thanks Michael Fürnschuß
   - direct support for building RPMs, thanks Plamen Dimitrov

0.12.0 (2018-04-07)
----------------------
  - connect via UNIX sockets, thanks Matteo Cafasso
  - bugfix, XTightVNC initial connection, thanks Antti Kervinen

0.11.2 (2017-09-24)
----------------------
  - fix version metadata, thanks Kevin Gottsman

0.11.1 (2017-07-23)
----------------------
  - add api.client.disconnect()
  - fix python2.x compatibility, thanks Ostrosablin Vitaly

0.11.0 (2017-06-09)
---------------------
  - enable PSEUDO_DESKTOP_SIZE_ENCODING by default to allow desktop resizing, thanks rebasegod
  - python 3.0 support, thanks jamtwister
  - added pastefile command, thanks Rogan Dawes
  - debian packaging improvements, thanks Alexander Kläser
  - fix loggingproxy, thanks Matthias Weckbecker

0.10.0 (2016-03-03)
---------------------
  - drop official 2.6 support, it'll probably work for a while still
  - use frombytes rather than fromstring for compatibility with PIL
  - vnclog works with password protected servers using --password-required
  - exit more reliably after an error
  - use increatmental frameBufferUpdateRequests, appears to be compatible with more servers
  - include basic version negotiation with servers, thanks Ezra Bühler

0.9.0 (2015-05-08)
------------------
  - add special keys [~!@#$%^&*()_+{}|:\"<>?] to --force-caps, for servers that don't handle them, Tyler Oderkirk, Aragats Amirkhanyan
  - improve vnclog performance with TCP_NODELAY, Ian Britten
  - by default pause 10ms between sending commands, better compatibility with servers
  - better handle screen resizing, Daniel Stelter-Gliese
  - API, fix deadlocks due to threaded init of PIL, thanks Antti Kervinen
  - API, support password protected server, thanks Antti Kervinen
  - API, able to connect to multiple servers, Daniel Stelter-Gliese
  - drop official support for py2.4 and py2.5
  - use Pillow rather than PIL

Thanks to Jan Sedlák, Daniel Stelter-Gliese, Antti Kervinen, Anatoly Techtonik, Tyler Oderkirk and Aragats Amirkhanyan for helping make this release possible

0.8.0 (2013-08-06)
------------------
  - improved documentation using sphinx
  - regional capture and expect that operate on a portion of the display
  - --force-caps, better compatibility when sending UPPERCASE to servers
  - --timeout, exit with an error after a given number of seconds
  - experimental synchronous API for easier integration with non-Twisted apps

0.3.0 (2012-12-22)
------------------
  - main program renamed to vncdo, vncdotool continues an alias for now
  - use host:display, host::port syntax like other vnc tools, removed -d
  - read/play commands from stdin or file
  - vnclog, creates scripts from captured interactive sessions
  - better control over mouse in screen captures with --nocursor
    and --localcursor
  - mousemove, sleep command aliases to match xdotool
  - keyup/keydown commands for more control over keypresses
  - send SetEncodings on connect, thanks Matias Suarez for fix
  - debian packaging
  - type "Hello World" now preserves capitalization
  - basic compatibility with VNC 4.0 servers, found in some KVMs
  - improved frameUpdate handling
  - --warp to replay script faster than real-time
  - --delay, insert a delay between sending commands

0.2.0 (2012-08-07)
--------------------------------
  - add pause, mouseup, mousedown, drag commands
  - only require Twisted 11.1.0, so we can have py2.4 support
  - bugfixes, thanks Christopher Holm for reporting
     - vncdotool type -something now works
     - no longer silently fail for unsupported image formats

0.1.1 (2011-05-18)
--------------------------------
  - add PIL to requires
  - fix bug where incorrect mouse button is sent

0.1.0 (2011-03-03)
--------------------------------
  - first release
  - commands: press, type, move, click, capture, expect

            

Raw data

            {
    "_id": null,
    "home_page": "http://github.com/sibson/vncdotool",
    "name": "vncdotool",
    "maintainer": "",
    "docs_url": "https://pythonhosted.org/vncdotool/",
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "VNC,RFB",
    "author": "Marc Sibson",
    "author_email": "sibson+vncdotool@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/64/68/d43c145f110fbc7da6cbd4082d940fdbc8aaa7d9e8b52f3f574485d49208/vncdotool-1.2.0.tar.gz",
    "platform": null,
    "description": ".. image:: https://img.shields.io/pypi/pyversions/vncdotool.svg\n   :target: https://pypi.python.org/pypi/vncdotool\n   :alt: Python Versions\n\n.. image:: https://img.shields.io/pypi/v/vncdotool\n    :target: https://pypi.org/project/vncdotool/\n    :alt: PyPi Package\n\n.. image:: https://img.shields.io/pypi/pyversions/vncdotool.svg\n   :target: https://pypi.python.org/pypi/vncdotool\n   :alt: Python Versions\n\n.. image:: https://github.com/sibson/vncdotool/workflows/VNCDo%20CI/badge.svg\n   :target: https://github.com/sibson/vndotool/actions\n   :alt: Actions Status\n\n.. image:: https://readthedocs.org/projects/vncdotool/badge/?version=latest&style=flat\n   :target: https://vncdotool.readthedocs.io/en/latest/\n   :alt: ReadTheDocs\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n   :target: https://github.com/psf/black\n   :alt: Code style: black\n\n\n\nvncdotool\n===========\nvncdotool is a command line VNC client.\nIt can be useful to automating interactions with virtual machines or\nhardware devices that are otherwise difficult to control.\n\nIt's under active development and seems to be working, but please report any problems you have.\n\nQuick Start\n--------------------------------\nTo use vncdotool you will need a VNC server.\nMost virtualization products include one, or use RealVNC, TightVNC or clone your Desktop using x11vnc.\n\nOnce, you have a server running you can install vncdotool from pypi::\n\n    pip install vncdotool\n\nand then send a message to the vncserver with::\n\n    vncdo -s vncserver type \"hello world\"\n\nThe `vncserver` argument needs to be in the format `address[:display|::port]`. For example::\n\n    # connect to 192.168.1.1 on default port 5900\n    vncdo -s 192.168.1.1 type \"hello world\"\n\n    # connect to localhost on display :3 (port 5903)\n    vncdo -s localhost:3 type \"hello world\"\n\n    # connect to myvncserver.com on port 5902 (two colons needed)\n    vncdo -s myvncserver.com::5902 type \"hello world\"\n\n    # connect via IPv6 to localhost on display :3 (port 5903)\n    vncdo -s '[::1]:3' type \"hello IPv6\"\n    #         ^   ^ mind those square brackets around the IPv6 address\n\nYou can also take a screen capture with::\n\n    vncdo -s vncserver capture screen.png\n\n\nMore documentation can be found on `Read the Docs`_.\n\nFeedback\n--------------------------------\nIf you need help getting VNCDoTool working try the community at `_Stackoverflow`\n\nPatches, and ideas for improvements are welcome and appreciated, via `_GitHub` issues.\nIf you are reporting a bug or issue please include the version of both vncdotool\nand the VNC server you are using it with.\n\n\nAcknowledgements\n--------------------------------\nThanks to Chris Liechti, techtonik and Todd Whiteman for developing the RFB\nand DES implementations used by vncdotool.\nAlso, to the TigerVNC_ project for creating a community focus RFB specification document\n\n\n\n.. _Read The Docs: http://vncdotool.readthedocs.org\n.. _GitHub: http://github.com/sibson/vncdotool\n.. _TigerVNC: http://sourceforge.net/apps/mediawiki/tigervnc/index.php?title=Main_Page\n.. _python-vnc-viewer: http://code.google.com/p/python-vnc-viewer\n.. _Stackoverflow: https://stackoverflow.com/questions/ask?tags=vncdotool\n\n1.2.0 (2023-06-06)\n----------------------\n  - fixes for api.shutdown and disconnect raise exceptions, #256\n\n1.1.0 (2023-04-01)\n----------------------\nHuge thanks to @pmhahn for single handedly driving conversion to modern Python3, as well\nas cleaning up a ton of outstanding issues.\n\n  - [BREAKING] drop python 2.x support, thanks @pmhahn\n  - Use built-in Unittest and mock for testing\n  - PEP-484 type hinting, thanks @pmhahn\n  - Doc improvements, thanks @luke-jr, @pmhahn, @samiraguiar\n  - Test for byte handling, thanks @ponty, refs #177\n  - Internal implementation of DES replaced by PyCrotodomeX\n\n  - Support for Apple Remote Desktop (ARD), thanks @andywgrant, @pmhahn\n  - Support for pseudo-encoding LastRec, thanks @pmhahn\n  - Support for Extended QEMU Key Events, thanks @pmhahn\n  - Support IPv6 addresses for server connection, thanks @pmhahn\n\n  - Bugfix, use configured log outputs over stdout, thanks @pevogam\n  - Bugfix, handle invalid password, thanks @dozysun\n  - Bugfixes for loggingproxy, thanks @joachimmetz, @pmhahn, @guicho271828\n\n\n1.0.0 (2020-04-10)\n----------------------\n  - add ZRLE encoding, thanks Adrian Weiler\n  - drop python2 support\n  - fix mouseDrag behaviour, thanks Samir Aguiar\n\n0.13.0 (2019-11-21)\n----------------------\n  - new flag --incremental-refreshes, increased compatibility of capture, thanks Amir Rossert\n  - exit non-zero and print to stderr for unknown commands, thanks Amir Rossert\n\n0.12.1 (2018-12-06)\n----------------------\n   - bugfix expectRegion to use cropped images for compare, thanks Michael F\u00fcrnschu\u00df\n   - direct support for building RPMs, thanks Plamen Dimitrov\n\n0.12.0 (2018-04-07)\n----------------------\n  - connect via UNIX sockets, thanks Matteo Cafasso\n  - bugfix, XTightVNC initial connection, thanks Antti Kervinen\n\n0.11.2 (2017-09-24)\n----------------------\n  - fix version metadata, thanks Kevin Gottsman\n\n0.11.1 (2017-07-23)\n----------------------\n  - add api.client.disconnect()\n  - fix python2.x compatibility, thanks Ostrosablin Vitaly\n\n0.11.0 (2017-06-09)\n---------------------\n  - enable PSEUDO_DESKTOP_SIZE_ENCODING by default to allow desktop resizing, thanks rebasegod\n  - python 3.0 support, thanks jamtwister\n  - added pastefile command, thanks Rogan Dawes\n  - debian packaging improvements, thanks Alexander Kl\u00e4ser\n  - fix loggingproxy, thanks Matthias Weckbecker\n\n0.10.0 (2016-03-03)\n---------------------\n  - drop official 2.6 support, it'll probably work for a while still\n  - use frombytes rather than fromstring for compatibility with PIL\n  - vnclog works with password protected servers using --password-required\n  - exit more reliably after an error\n  - use increatmental frameBufferUpdateRequests, appears to be compatible with more servers\n  - include basic version negotiation with servers, thanks Ezra B\u00fchler\n\n0.9.0 (2015-05-08)\n------------------\n  - add special keys [~!@#$%^&*()_+{}|:\\\"<>?] to --force-caps, for servers that don't handle them, Tyler Oderkirk, Aragats Amirkhanyan\n  - improve vnclog performance with TCP_NODELAY, Ian Britten\n  - by default pause 10ms between sending commands, better compatibility with servers\n  - better handle screen resizing, Daniel Stelter-Gliese\n  - API, fix deadlocks due to threaded init of PIL, thanks Antti Kervinen\n  - API, support password protected server, thanks Antti Kervinen\n  - API, able to connect to multiple servers, Daniel Stelter-Gliese\n  - drop official support for py2.4 and py2.5\n  - use Pillow rather than PIL\n\nThanks to Jan Sedl\u00e1k, Daniel Stelter-Gliese, Antti Kervinen, Anatoly Techtonik, Tyler Oderkirk and Aragats Amirkhanyan for helping make this release possible\n\n0.8.0 (2013-08-06)\n------------------\n  - improved documentation using sphinx\n  - regional capture and expect that operate on a portion of the display\n  - --force-caps, better compatibility when sending UPPERCASE to servers\n  - --timeout, exit with an error after a given number of seconds\n  - experimental synchronous API for easier integration with non-Twisted apps\n\n0.3.0 (2012-12-22)\n------------------\n  - main program renamed to vncdo, vncdotool continues an alias for now\n  - use host:display, host::port syntax like other vnc tools, removed -d\n  - read/play commands from stdin or file\n  - vnclog, creates scripts from captured interactive sessions\n  - better control over mouse in screen captures with --nocursor\n    and --localcursor\n  - mousemove, sleep command aliases to match xdotool\n  - keyup/keydown commands for more control over keypresses\n  - send SetEncodings on connect, thanks Matias Suarez for fix\n  - debian packaging\n  - type \"Hello World\" now preserves capitalization\n  - basic compatibility with VNC 4.0 servers, found in some KVMs\n  - improved frameUpdate handling\n  - --warp to replay script faster than real-time\n  - --delay, insert a delay between sending commands\n\n0.2.0 (2012-08-07)\n--------------------------------\n  - add pause, mouseup, mousedown, drag commands\n  - only require Twisted 11.1.0, so we can have py2.4 support\n  - bugfixes, thanks Christopher Holm for reporting\n     - vncdotool type -something now works\n     - no longer silently fail for unsupported image formats\n\n0.1.1 (2011-05-18)\n--------------------------------\n  - add PIL to requires\n  - fix bug where incorrect mouse button is sent\n\n0.1.0 (2011-03-03)\n--------------------------------\n  - first release\n  - commands: press, type, move, click, capture, expect\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Command line VNC client",
    "version": "1.2.0",
    "project_urls": {
        "Homepage": "http://github.com/sibson/vncdotool"
    },
    "split_keywords": [
        "vnc",
        "rfb"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6468d43c145f110fbc7da6cbd4082d940fdbc8aaa7d9e8b52f3f574485d49208",
                "md5": "fe91187bbbbc1ffbacde7ff63b544a70",
                "sha256": "53408d18ca7f9f21c525fc88189b01ca6594153ec1a9be09f6198306d166ea0d"
            },
            "downloads": -1,
            "filename": "vncdotool-1.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "fe91187bbbbc1ffbacde7ff63b544a70",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 54809,
            "upload_time": "2023-07-06T18:00:43",
            "upload_time_iso_8601": "2023-07-06T18:00:43.146007Z",
            "url": "https://files.pythonhosted.org/packages/64/68/d43c145f110fbc7da6cbd4082d940fdbc8aaa7d9e8b52f3f574485d49208/vncdotool-1.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-06 18:00:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sibson",
    "github_project": "vncdotool",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "circle": true,
    "requirements": [],
    "tox": true,
    "lcname": "vncdotool"
}
        
Elapsed time: 0.08790s