soaparse
Sane, modular DNS SOA record parsing
Fields are based on https://www.ripe.net/publications/docs/ripe-203
The best-guess email addresses are parsed from the rname field:
- Replacing with
@:- the second from last
.(email_parsed_last) - the first
.(email_parsed_first)
- the second from last
Trailing periods are stripped
Usage
import json
import soaparse
soa_record_str = "ns.example.com. email.example.com. 20200101 60 3 2 1"
soa = soaparse.soa_parse(soa_record_str)
json.dumps(soa.__dict__)
Release files for soaparse 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| soaparse-1.3.0.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| soaparse-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.1 kB
Release files / soaparse-1.3.0.tar.gz
| Download URL | soaparse-1.3.0.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2857872edeea62b4371ae33e1714c4bff4335a83c8e655b99b89a7c55dce5289
|
|
BLAKE2b-256 checksum How to use checksums |
7c95be0c48c6b29fe618851ba809f79bdb6c40297f4e5a80e33340e7e390f83c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|
Release files / soaparse-1.3.0-py3-none-any.whl
| Download URL | soaparse-1.3.0-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce5187f3162193d8a8e2493aabcddf60a74ac951e440a01ca460a55fd94ea6ba
|
|
BLAKE2b-256 checksum How to use checksums |
c8dd2c46c15279e4488a209e153b2e59679db7b58475f73df8f7376f781200f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|