Summary
Strangle is BIND for Python: a Python library for parsing DNS messages using libbind. Strangle allows you to see DNS messages in two ways:
Direct access to the libbind parsing functions (C-style)
A Python object with various meaningful attributes (OO-style)
Demo
Here is an example of how simple it is to parse DNS messages:
>>> import Strangle
>>> msgFile = file("test/data/www.microsoft.com-query")
>>> msg = Strangle.DNSMessage(msgFile)
>>> msg.id
47096
>>> print msg
ID : 47096
Headers:
Type : question
Opcode : 0
Authoritative : False
Truncated : False
Recursion Desired : True
Recursion Available: False
Response Code : 0
;; QUESTION SECTION:
www.microsoft.com.nsatc.net 0 IN A
>>> msg.flags.type
'question'
>>> msg.flags.recursionDesired
True
Metadata
Release files for Strangle 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| Strangle-0.3.1.tar.gz | 22.0 kB | Without provenance | Details |
Release files / Strangle-0.3.1.tar.gz
| Download URL | Strangle-0.3.1.tar.gz |
|---|---|
| Size | 22.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
939c5bb1a215a0e57a29e6f719d5d6f5ac203d6d97b3f04f847d128290d26222
|
|
BLAKE2b-256 checksum How to use checksums |
aa9227cb0a291f3ef9b6da94f989f32fbd1fced6eca058a7042caf1d4ef742f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Strangle 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.