{ "info": { "author": "Justin Riley (original author: gaohawk)", "author_email": "justin.t.riley@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Topic :: Internet", "Topic :: System :: Networking :: Firewalls" ], "description": ".. image:: https://travis-ci.org/jtriley/pystun.svg?branch=master\n :target: https://travis-ci.org/jtriley/pystun\n\n.. image:: https://coveralls.io/repos/jtriley/pystun/badge.png\n :target: https://coveralls.io/r/jtriley/pystun\n\n\nPyStun\n======\nA Python STUN client for getting NAT type and external IP\n\nThis is a fork of pystun originally created by gaohawk (http://code.google.com/p/pystun/)\n\nPyStun follows RFC 3489: http://www.ietf.org/rfc/rfc3489.txt\n\nA server following STUN-bis hasn't been found on internet so RFC3489 is the\nonly implementation.\n\nInstallation\n------------\nTo install the latest version::\n\n $ pip install pystun\n\nor download/clone the source and install manually using::\n\n $ cd /path/to/pystun/src\n $ python setup.py install\n\nIf you're hacking on pystun you should use the 'develop' command instead::\n\n $ python setup.py develop\n\nThis will make a link to the sources inside your site-packages directory so\nthat any changes are immediately available for testing.\n\nUsage\n-----\nFrom command line::\n\n $ pystun\n NAT Type: Full Cone\n External IP: \n External Port: 54320\n\nPass --help for more options::\n\n % pystun --help\n usage: pystun [-h] [-d] [-H STUN_HOST] [-P STUN_PORT] [-i SOURCE_IP]\n [-p SOURCE_PORT] [--version]\n\n optional arguments:\n -h, --help show this help message and exit\n -d, --debug Enable debug logging (default: False)\n -H STUN_HOST, --host STUN_HOST\n STUN host to use (default: None)\n -P STUN_PORT, --host-port STUN_PORT\n STUN host port to use (default: 3478)\n -i SOURCE_IP, --interface SOURCE_IP\n network interface for client (default: 0.0.0.0)\n -p SOURCE_PORT, --port SOURCE_PORT\n port to listen on for client (default: 54320)\n --version show program's version number and exit\n\nFrom Python::\n\n import stun\n nat_type, external_ip, external_port = stun.get_ip_info()\n\nThis will rotate through an internal list of STUN servers until a response is\nfound. If no response is found you will get \"Blocked\" as the *nat_type* and\n**None** for *external_ip* and *external_port*.\n\nIf you prefer to use a specific STUN server::\n\n nat_type, external_ip, external_port = stun.get_ip_info(stun_host='stun.ekiga.net')\n\nIf you prefer to use a specific STUN server port::\n\n nat_type, external_ip, external_port = stun.get_ip_info(stun_port=3478)\n\nYou may also specify the client interface and port that is used although this\nis not needed::\n\n sip = \"0.0.0.0\" # interface to listen on (all)\n port = 54320 # port to listen on\n nat_type, external_ip, external_port = stun.get_ip_info(sip, port)\n\nRead the code for more details...\n\nLICENSE\n-------\nMIT", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/jtriley/pystun", "keywords": "STUN NAT", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "pystun", "package_url": "https://pypi.org/project/pystun/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pystun/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/jtriley/pystun" }, "release_url": "https://pypi.org/project/pystun/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "A Python STUN client for getting NAT type and external IP (RFC 3489)", "version": "0.1.0" }, "last_serial": 1298832, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "da32642af0ac111b86b4e9e4d1d1f16a", "sha256": "33d0fa649ab0aba3bb70d0b1132e66049bd3e2690f2a62fbb0ba3335c4a4e220" }, "downloads": -1, "filename": "pystun-0.0.2.tar.gz", "has_sig": false, "md5_digest": "da32642af0ac111b86b4e9e4d1d1f16a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5121, "upload_time": "2011-09-20T07:56:33", "url": "https://files.pythonhosted.org/packages/96/a0/c32a929940c396a1adc257ba196ca5380d603c75cf15e3ca5d3381a084ec/pystun-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "b58f71f971ac5eca30767c6a32dc8653", "sha256": "3c9e2d1bc84d966d4e714c65aec6d6136f3f05b7cecafb508da1b7d5bbc3a503" }, "downloads": -1, "filename": "pystun-0.0.3.tar.gz", "has_sig": false, "md5_digest": "b58f71f971ac5eca30767c6a32dc8653", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5207, "upload_time": "2013-05-21T20:28:04", "url": "https://files.pythonhosted.org/packages/8f/d5/f5aefb8550d364caa71849eeca16b89b10e8bb0f9326ed81cbba8d1247d9/pystun-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "abd28264ac8e5d0fe54a1725db10d76c", "sha256": "4de4c59b26b134c66f55bbc860684e5572066bc5266ecb1f078f64928ff0671a" }, "downloads": -1, "filename": "pystun-0.0.4.tar.gz", "has_sig": false, "md5_digest": "abd28264ac8e5d0fe54a1725db10d76c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5391, "upload_time": "2013-10-14T17:16:56", "url": "https://files.pythonhosted.org/packages/f7/d4/8df3ca920eed883524d6214faf0ef494053e9e4c01b0d5070434dcf4aed4/pystun-0.0.4.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "5cefad003e24b1aa04577ddf21a65779", "sha256": "787a2d1c1328ae8ac31152a0d6d96b2f02ab8677febdc25e463c2c8fee34679f" }, "downloads": -1, "filename": "pystun-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5cefad003e24b1aa04577ddf21a65779", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6286, "upload_time": "2014-11-07T22:13:19", "url": "https://files.pythonhosted.org/packages/a9/72/0b6a4f8ad71f72ed3b3946a21084a8b3c17de10ddc5fc0dfec43c48fc768/pystun-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5cefad003e24b1aa04577ddf21a65779", "sha256": "787a2d1c1328ae8ac31152a0d6d96b2f02ab8677febdc25e463c2c8fee34679f" }, "downloads": -1, "filename": "pystun-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5cefad003e24b1aa04577ddf21a65779", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6286, "upload_time": "2014-11-07T22:13:19", "url": "https://files.pythonhosted.org/packages/a9/72/0b6a4f8ad71f72ed3b3946a21084a8b3c17de10ddc5fc0dfec43c48fc768/pystun-0.1.0.tar.gz" } ] }