Exploratory Python Chained Generator Project
Project description
Python Chained Generators for Security Data: Read the Docs
Installation
pip install py-chains
Documentation
About
The Chains project is an exploration of python components that you ‘chain’ together to process streaming data (network packets). The use of native python generators means the code is extremely lightweight and efficient.
Example
# Create the classes streamer = packet_streamer.PacketStreamer(iface_name=data_path, max_packets=10) meta = packet_meta.PacketMeta() rdns = reverse_dns.ReverseDNS() printer = packet_printer.PacketPrinter() # Set up the chain meta.link(streamer) rdns.link(meta) printer.link(rdns) # Pull the chain printer.pull()
Example Output
Timestamp: 2015-05-27 01:17:07.919743 Ethernet Frame: 6c:40:08:89:fc:08 --> 01:00:5e:00:00:fb (type: 2048) Packet: IP 192.168.1.9 --> 224.0.0.251 (len:55 ttl:255) -- Frag(df:0 mf:0 offset:0) Domains: LOCAL --> multicast_dns Transport: UDP {'dport': 5353, 'sum': 59346, 'sport': 5353, 'data': '...', 'ulen': 35} Application: None Timestamp: 2015-05-27 01:17:07.919926 Ethernet Frame: 6c:40:08:89:fc:08 --> 33:33:00:00:00:fb (type: 34525) Packet: IP6 fe80::6e40:8ff:fe89:fc08 --> ff02::fb (len:35 ttl:255) Domains: LOCAL --> multicast_dns Transport: UDP {'dport': 5353, 'sum': 6703, 'sport': 5353, 'data': '...', 'ulen': 35} Application: None ...
This is based on dpkt (Google Code) lead by Dug Song and is now being maintained and improved by an extended set of contributors and developers.
LICENSE
MIT Licensed
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
py-chains-0.1.6.tar.gz
(30.2 kB
view details)
Built Distribution
File details
Details for the file py-chains-0.1.6.tar.gz
.
File metadata
- Download URL: py-chains-0.1.6.tar.gz
- Upload date:
- Size: 30.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4da12219613b3eaa7b5fa343b59ff6666c202c8f31f7882960933b0e7515367f |
|
MD5 | ae48844e9366775388e53a8be97833e3 |
|
BLAKE2b-256 | 4a44cb51073edd9d9326f1789f737fe8127c51c9ae06fe584db424f19850894a |
Provenance
File details
Details for the file py_chains-0.1.6-py2.py3-none-any.whl
.
File metadata
- Download URL: py_chains-0.1.6-py2.py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 157325b1fcb708319fc94cd173b3e9c7664e9d55d9258c53ac530e5242324779 |
|
MD5 | b0dfc7e79030ba940e2c37ffbb7a456f |
|
BLAKE2b-256 | 50361ccaac46d7a8b5bcd134c4b2abceb96301a9d53c3ec8c351c33fbcad4669 |