{ "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\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/lefterisjp/pystun", "keywords": "STUN NAT", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pystun-patched-for-raiden", "package_url": "https://pypi.org/project/pystun-patched-for-raiden/", "platform": "", "project_url": "https://pypi.org/project/pystun-patched-for-raiden/", "project_urls": { "Homepage": "http://github.com/lefterisjp/pystun" }, "release_url": "https://pypi.org/project/pystun-patched-for-raiden/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "A Python STUN client for getting NAT type and external IP (RFC 3489)", "version": "0.1.0" }, "last_serial": 4268755, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "1c559c124e7e88b283ac9ffe3356a593", "sha256": "4be94bd2eff669ddea33173254dcefbd2491c90543ef2d45a8406bdd5c1df29e" }, "downloads": -1, "filename": "pystun-patched-for-raiden-0.1.0.tar.gz", "has_sig": false, "md5_digest": "1c559c124e7e88b283ac9ffe3356a593", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5931, "upload_time": "2018-09-13T13:31:25", "url": "https://files.pythonhosted.org/packages/3f/ed/b41d559e1c44bc98164f0501405bb6fd4567e55fadbe2ae15125fd2aca42/pystun-patched-for-raiden-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1c559c124e7e88b283ac9ffe3356a593", "sha256": "4be94bd2eff669ddea33173254dcefbd2491c90543ef2d45a8406bdd5c1df29e" }, "downloads": -1, "filename": "pystun-patched-for-raiden-0.1.0.tar.gz", "has_sig": false, "md5_digest": "1c559c124e7e88b283ac9ffe3356a593", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5931, "upload_time": "2018-09-13T13:31:25", "url": "https://files.pythonhosted.org/packages/3f/ed/b41d559e1c44bc98164f0501405bb6fd4567e55fadbe2ae15125fd2aca42/pystun-patched-for-raiden-0.1.0.tar.gz" } ] }