Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A very Pythonic libpcap wrapper that aims to include as much of the API as is practical

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 doc
Octocat-spinner-32 examples
Octocat-spinner-32 .gitattributes
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.rst
Octocat-spinner-32 generate_defs.c
Octocat-spinner-32 pcap.pxd
Octocat-spinner-32 setup.py
Octocat-spinner-32 yappcap.c
Octocat-spinner-32 yappcap.pyx
README.rst

yappcap

yappcap is a Pythonic wrapper for the libpcap library. It aims to support as much of the libpcap API as is practical to implement in Python with complete documentation and active support.

Installation

make && sudo make install

or

sudo python setup.py install

Getting started

Starting a capture on an interface and saving all packets on port 5060 to a save file:

>>> import yappcap
>>> p = PcapLive("eth0", timeout=1000)
>>> p.activate()
>>> p.filter = "port 5060"
>>> p.loop(-1, None)

Full documentation at http://otherwiseguy.github.com/yappcap/

Something went wrong with that request. Please try again.