{ "info": { "author": "gonewind", "author_email": "gonewind.he@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Networking" ], "description": "TUN/TAP package for Linux and Windows\n================================\n\n``pytuntap`` is a Python module for you create TUN/TAP device very easily.\nIt canbe work both on Linux and Windows\n\nLicense: MIT (see LICENSE)\n\nInstallation and Dependencies\n-----------------------------\n\nInstall ``pytuntap`` with ``pip install python-pytuntap``\n\nAs ``pytuntap`` is python wrapper for tuntap driver on Linux , and openvpn driver on\nWindows. If you use it on windows, you should install openvpn's tap driver first.\nplease refer to openvpn ,how to install it .\n\nDocumentation\n-------------\n\nNOTE: On most distributions you will need to be root to create TUN/TAP devices.\n\nTo create a TUN device::\n\n from tuntap import TunTap\n\n tun = TunTap(nic_type=\"Tun\",nic_name=\"tun0\")\n\nTo create a TAP device::\n\n \u807d from tuntap import TunTap\n\n tap = TunTap(nic_type=\"Tap\",nic_name=\"tap0\")\n\nTo config device:\n\n tap.config(ip=\"192.168.1.10\",mask=\"255.255.255.0\",gateway=\"192.168.1.254\")\n\nYou can get some parameters of the device directly::\n\n print(tun.name,tun.ip,tun.mask)\n\nIf the device is a TAP you can also get/set its MAC address::\n\n print(tap.mac)\n\nTo read/write to the device, use the methods ``read(size)`` and\n``write(buf)``::\n\n buf = tun.read(size)\n tun.write(buf)\n\nTo close the device::\n\n tun.close()\n\nyou can also use ``TunTapDevice`` objects with all functions that expect a\n``tun.handle`` method (e.g ``select()``)", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gonewind73/pytuntap", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "python-pytuntap", "package_url": "https://pypi.org/project/python-pytuntap/", "platform": "Linux", "project_url": "https://pypi.org/project/python-pytuntap/", "project_urls": { "Homepage": "https://github.com/gonewind73/pytuntap" }, "release_url": "https://pypi.org/project/python-pytuntap/1.0.5/", "requires_dist": null, "requires_python": ">=3", "summary": "Linux/Windows TUN/TAP wrapper for Python", "version": "1.0.5" }, "last_serial": 3862771, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "105b741def77c62196af7d7aa679655e", "sha256": "03b0fbf385440d2787a6bbed09ab1e539e551ab03d4fd03476d0b653e24ffade" }, "downloads": -1, "filename": "python-pytuntap-1.0.0.tar.gz", "has_sig": false, "md5_digest": "105b741def77c62196af7d7aa679655e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 6444, "upload_time": "2018-05-09T00:29:46", "url": "https://files.pythonhosted.org/packages/56/8e/93add201e0797134dde95b449de55d05a005433d562b4c80abae6a13b536/python-pytuntap-1.0.0.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "91ec7af7ac1102125abe9d7741f31e4b", "sha256": "75150ecd32af09d011fb5a7c153e3125fc12803d74f183a77174e4ba6fb57c59" }, "downloads": -1, "filename": "python-pytuntap-1.0.3.tar.gz", "has_sig": false, "md5_digest": "91ec7af7ac1102125abe9d7741f31e4b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 6738, "upload_time": "2018-05-09T13:24:08", "url": "https://files.pythonhosted.org/packages/ab/3e/fdc6b901ec37991c7ff8a58be1a022fd2624715c6ac59b2af2b5ebe03523/python-pytuntap-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "f6a555ad41a5a0db043dc6536f2463e4", "sha256": "a0575900bef4203d4e74a2a1f4b0a1cfe15075e4661d09256ab0cc4effca286f" }, "downloads": -1, "filename": "python-pytuntap-1.0.4.tar.gz", "has_sig": false, "md5_digest": "f6a555ad41a5a0db043dc6536f2463e4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 6542, "upload_time": "2018-05-09T14:07:30", "url": "https://files.pythonhosted.org/packages/71/0b/7e37e3e0bafa3e0cbfa55ba3d7492483ae4037354a6ccf376b026c95db3e/python-pytuntap-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "2cee132d3de9b4503588e95b245993b4", "sha256": "cfb7ea426bb07169192d598e3b1581523aa1982a69bfb3dc29cfff64a3ec86ff" }, "downloads": -1, "filename": "python-pytuntap-1.0.5.tar.gz", "has_sig": false, "md5_digest": "2cee132d3de9b4503588e95b245993b4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 6573, "upload_time": "2018-05-14T23:31:59", "url": "https://files.pythonhosted.org/packages/3b/ce/aa916a946cba833fb486143acc5515719c8729af46cea939639d9cc8bf76/python-pytuntap-1.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2cee132d3de9b4503588e95b245993b4", "sha256": "cfb7ea426bb07169192d598e3b1581523aa1982a69bfb3dc29cfff64a3ec86ff" }, "downloads": -1, "filename": "python-pytuntap-1.0.5.tar.gz", "has_sig": false, "md5_digest": "2cee132d3de9b4503588e95b245993b4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 6573, "upload_time": "2018-05-14T23:31:59", "url": "https://files.pythonhosted.org/packages/3b/ce/aa916a946cba833fb486143acc5515719c8729af46cea939639d9cc8bf76/python-pytuntap-1.0.5.tar.gz" } ] }