{ "info": { "author": "Slava Bacherikov", "author_email": "slava@bacher09.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Games/Entertainment", "Topic :: Games/Entertainment :: First Person Shooters", "Topic :: Internet", "Topic :: Software Development :: Libraries" ], "description": "xrcon\n=====\n\n.. image:: https://travis-ci.org/bacher09/xrcon.svg?branch=master\n :target: https://travis-ci.org/bacher09/xrcon\n\n.. image:: https://ci.appveyor.com/api/projects/status/d0xmpvmpb8c9skb0?svg=true&branch=master\n :target: https://ci.appveyor.com/project/bacher09/xrcon\n\n.. image:: https://coveralls.io/repos/bacher09/xrcon/badge.svg?branch=master\n :target: https://coveralls.io/r/bacher09/xrcon?branch=master \n\n\nDarkplaces and Quakes rcon [#rcon]_ protocol and client implementation.\nWorks with such games like Xonotic_, `Nexuiz`__, Warsow_ and other games with\nQuakes rcon.\n\n__ Nexuiz_wiki_\n\nFeatures\n--------\n\n * Support old Quake rcon and new Darkplaces secure rcon protocols.\n * Support both IPv4 and IPv6 connections.\n * Bundled console client.\n * Well tested, test coverage near 100%.\n * Works with python 2.7, 3.3+.\n\nInstallation\n------------\n\n * execute ``pip install xrcon``\n * or run ``pip install -e git+https://github.com/bacher09/xrcon#egg=xrcon``\n to install development version from github\n\nUsage\n-----\n\nUsing as library::\n\n from xrcon.client import XRcon\n rcon = XRcon('server', 26000, 'password')\n rcon.connect() # create socket\n try:\n data = rcon.execute('status') # on python3 data would be bytes type\n finally:\n rcon.close()\n\nFor more info read ``XRcon`` docstrings.\n\nUsing console client::\n\n $ xrcon -s yourserver:26001 -p password command\n\nIf you want use IPv6 address it should be put inside square brackets.\nFor example::\n\n $ xrcon -s [1080:0:0:0:8:800:200C:417A]:26002 -p password status\n $ xrcon -s [1080:0:0:0:8:800:200C:417B] -p password status\n\nIf port is omitted then by default would be used port 26000.\nYou may also change type of rcon, by default would be used secure time based\nrcon protocol. This protocol works only in Darkplaces based games.\nFor instance::\n\n $ xrcon -s warsowserver:44400 -p password -t 0 status\n\n0 means old (unsecure) quakes rcon, 1 means secure time base rcon, and 2 is \nsecure challenge based rcon protocol.\n\nYou may also create ini configuration file in your home directory\n``.xrcon.ini``. \nFor example::\n\n [DEFAULT]\n server = someserver:26000\n password = secret\n type = 1\n timeout = 0.9\n\n [other]\n server = someserver:26001\n\n [another]\n server = otherserver\n password = otherpassword\n type = 0\n timeout = 1.2\n\nThen if you wants execute command on this servers just do::\n\n $ xrcon status # for DEFAULT server\n $ xrcon -n other status # for other server\n $ xrcon -n another status # for another server\n\nAlso, there is another one CLI utility \u2014 ``xping``. It can be used to measure\nrtt_ for server or client. It also supports other games too, so you can measure\nping for Warsow, Quake 3, Urban Terror and some other games.\nHere's an example::\n\n $ xping -c 4 pub.regulars.win\n XPING pub.regulars.win (89.163.144.234) port: 26000\n 89.163.144.234 port=26000 time=39.36 ms\n 89.163.144.234 port=26000 time=39.63 ms\n 89.163.144.234 port=26000 time=39.83 ms\n 89.163.144.234 port=26000 time=39.87 ms\n\n --- pub.regulars.win ping statistics ---\n 4 packets transmitted, 4 received, 0.0% packet loss\n rtt min/avg/max/mdev = 39.357/39.672/39.870/0.204 ms\n\nAlso, you can ping clients too, this might be helpful for server admins for\nchecking client networking. First, you need to determine client host and\nport. You can do this via `rcon status` command. Let's suppose that status\ncommand returned ``172.16.254.2:33045`` address, then xping command will be\nlook like this: ``xping -p 33045 172.16.254.2``. Note, that this might not work\nfor some clients because of firewalls and NATs.\n\nHere's few other examples::\n\n $ xping -p 26005 mars.regulars.win # stop it with Ctrl-C\n $ xping -p 44400 -t qfusion 212.83.185.75 # ping warsow server\n $ xping -p 27960 -t q3 144.76.158.173 # ping urban terror server\n\nFor more info about CLI options check ``xping --help``.\n\nIn some cases results of xping might be inaccurate. For example, if you\nexperience packet duplication or reordering. All currently supported\ngaming protocols have no way to identify concrete response for probe.\nBecause of this, there is no way to determine if application received original\nor duplicated response. It can affect result even more, if duplicated packet\nwill arrive some time later, so application can process it as response for\nnew probe. In some cases application might detect packet duplication.\n\nLicense\n-------\nLGPL\n\n.. [#rcon] remote console, for more info read `this`__.\n__ Warsow_rcon_\n\n\n.. _Xonotic: http://www.xonotic.org/\n.. _Nexuiz_wiki: https://en.wikipedia.org/wiki/Nexuiz\n.. _Warsow: http://www.warsow.net/\n.. _Warsow_rcon: http://www.warsow.net/wiki/RCON\n.. _rtt: https://en.wikipedia.org/wiki/Round-trip_delay_time", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bacher09/xrcon", "keywords": "rcon,xonotic,nexuiz,darkplaces,quake", "license": "LGPL", "maintainer": "", "maintainer_email": "", "name": "xrcon", "package_url": "https://pypi.org/project/xrcon/", "platform": "any", "project_url": "https://pypi.org/project/xrcon/", "project_urls": { "Homepage": "https://github.com/bacher09/xrcon" }, "release_url": "https://pypi.org/project/xrcon/0.2/", "requires_dist": null, "requires_python": "", "summary": "Quake and DarkPlaces rcon client.Suppor such games like Xonotic, Nexuiz and other", "version": "0.2" }, "last_serial": 3717450, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "1b1bbb682a81a8e7423654b31f1638d1", "sha256": "5cd6c388fcb093f72053c9684b8b109f94774381df858bd5c9634cf4203eb57d" }, "downloads": -1, "filename": "xrcon-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1b1bbb682a81a8e7423654b31f1638d1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9111, "upload_time": "2014-09-04T12:03:02", "url": "https://files.pythonhosted.org/packages/7a/3b/f402dc6c77a580a7651b52a72d88a122c5c1d8790ab781ef2846a9510318/xrcon-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "772f91de15cd6fd78447bf41f53510c9", "sha256": "3bcf69463779ae41620fe2536bafec9a0a36f01eacac9294b80672363dd97916" }, "downloads": -1, "filename": "xrcon-0.1.tar.gz", "has_sig": false, "md5_digest": "772f91de15cd6fd78447bf41f53510c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12350, "upload_time": "2014-09-04T12:03:05", "url": "https://files.pythonhosted.org/packages/ca/2c/a9bafcf35af912d829121fb4ab865dad36129474a9555545c085e60f5e10/xrcon-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "5d260e9d7919e79b7611beb94a0d2739", "sha256": "c51b995e07f4f73ad05299de4760d3058afb5b4f0660e7364e6695a7bd6b72ab" }, "downloads": -1, "filename": "xrcon-0.2.tar.gz", "has_sig": false, "md5_digest": "5d260e9d7919e79b7611beb94a0d2739", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24072, "upload_time": "2018-03-29T15:58:07", "url": "https://files.pythonhosted.org/packages/8f/95/3ec10dbf33a535204de53c337b2b2618efbf63355e182eb25075cb86df50/xrcon-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5d260e9d7919e79b7611beb94a0d2739", "sha256": "c51b995e07f4f73ad05299de4760d3058afb5b4f0660e7364e6695a7bd6b72ab" }, "downloads": -1, "filename": "xrcon-0.2.tar.gz", "has_sig": false, "md5_digest": "5d260e9d7919e79b7611beb94a0d2739", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24072, "upload_time": "2018-03-29T15:58:07", "url": "https://files.pythonhosted.org/packages/8f/95/3ec10dbf33a535204de53c337b2b2618efbf63355e182eb25075cb86df50/xrcon-0.2.tar.gz" } ] }