Skip to main content

Object-oriented wrapper around the Linux Tun/Tap device

Project description

https://travis-ci.org/johnthagen/pytap2.svg https://codeclimate.com/github/johnthagen/pytap2/badges/gpa.svg https://codeclimate.com/github/johnthagen/pytap2/badges/issue_count.svg https://codecov.io/github/johnthagen/pytap2/coverage.svg https://img.shields.io/pypi/v/pytap2.svg https://img.shields.io/pypi/status/pytap2.svg https://img.shields.io/pypi/pyversions/pytap2.svg

Fork of PyTap that supports Python 2 & 3.

Installation

You can install, upgrade, and uninstall pytap2 with these commands:

$ pip install pytap2
$ pip install --upgrade pytap2
$ pip uninstall pytap2

Usage

from pytap2 import TapDevice

device = TapDevice()
device.up()
device.ifconfig(mtu=1300)
device.write(b'0000')
device.close()

Releases

1.0.0 - 2017-06-16

Initial release that supports Python 2 and 3.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytap2-1.0.0.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file pytap2-1.0.0.tar.gz.

File metadata

  • Download URL: pytap2-1.0.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pytap2-1.0.0.tar.gz
Algorithm Hash digest
SHA256 362943b9bd67f04e4c5bf2d10f20aff5fe0213101dd99a528b7a67934527c5b7
MD5 9580c204edb16c1ff257a8a4d91e984a
BLAKE2b-256 486b935764677c9ef5238f3e3f6534ff416fa44f052471442bbed5633191f479

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page