]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
add some more examples
authorBob Halley <halley@dnspython.org>
Mon, 25 Sep 2006 02:59:06 +0000 (02:59 +0000)
committerBob Halley <halley@dnspython.org>
Mon, 25 Sep 2006 02:59:06 +0000 (02:59 +0000)
examples/e164.py [new file with mode: 0755]
examples/reverse_name.py [new file with mode: 0755]

diff --git a/examples/e164.py b/examples/e164.py
new file mode 100755 (executable)
index 0000000..ad40ccf
--- /dev/null
@@ -0,0 +1,6 @@
+#!/usr/bin/env python
+
+import dns.e164
+n = dns.e164.from_e164("+1 555 1212")
+print n
+print dns.e164.to_e164(n)
diff --git a/examples/reverse_name.py b/examples/reverse_name.py
new file mode 100755 (executable)
index 0000000..351896b
--- /dev/null
@@ -0,0 +1,6 @@
+#!/usr/bin/env python
+
+import dns.reversename
+n = dns.reversename.from_address("127.0.0.1")
+print n
+print dns.reversename.to_address(n)