File: python-libknot

package info (click to toggle)
knot 3.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,872 kB
  • sloc: ansic: 154,039; sh: 5,822; python: 1,141; makefile: 818
file content (8 lines) | stat: -rwxr-xr-x 212 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
#!/usr/bin/env python3

import libknot.control
import libknot.dname
import libknot.probe

dname = libknot.dname.KnotDname("knot-dns.cz")
print("%s: wire: %s size: %u" % (dname.str(), dname.wire(), dname.size()))