diglet-0.0.0
توضیحات
A pure python dns query tool
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | diglet-0.0.0 |
| نام | diglet |
| نسخه کتابخانه | 0.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Tony O'Dell |
| ایمیل نویسنده | tony.odell+python@live.com |
| آدرس صفحه اصلی | https://github.com/tony-o/python-diglet |
| آدرس اینترنتی | https://pypi.org/project/diglet/ |
| مجوز | LICENSE |
# diglet
a pure python3 dns query tool
## usage
```python3
import diglet
resp = diglet.Mkreq('google.com', qtype=diglet.QType.A)
# use resp to make that $$$
# more info: https://www.ietf.org/rfc/rfc1035.txt
print(resp)
#{'header': {'id': 26519,
# 'qr': 'response',
# 'opcode': <OpCode.QUERY: 0>,
# 'aa': False,
# 'tc': False,
# 'rd': True,
# 'ra': True,
# 'z': 0,
# 'rcode': <ReturnCode.NO_ERROR: 0>,
# 'qdcount': 1,
# 'ancount': 1,
# 'nscount': 0,
# 'arcount': 0
# },
# 'questions': [{'qname': 'google.com.',
# 'qtype': <QType.A: 1>,
# 'qclass': <Class.IN: 1>
# }
# ],
# 'answers': [{'aname': 'google.com.',
# 'atype': <Type.A: 1>,
# 'aclass': <Class.IN: 1>,
# 'attl': 236,
# 'ardlen': 4,
# 'ardata':
# '142.250.72.206'
# }
# ],
# 'authority': {}
#}
```
نحوه نصب
نصب پکیج whl diglet-0.0.0:
pip install diglet-0.0.0.whl
نصب پکیج tar.gz diglet-0.0.0:
pip install diglet-0.0.0.tar.gz