MCPcopy Create free account
hub / github.com/rthalley/dnspython / main

Function main

examples/doq.py:96–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94
95
96def main():
97 print("*** Single Queries ***")
98 print("--- Sync ---")
99 srun()
100 print("--- Asyncio ---")
101 dns.asyncbackend.set_default_backend("asyncio")
102 arun()
103 if have_trio:
104 print("--- Trio ---")
105 dns.asyncbackend.set_default_backend("trio")
106 trun()
107 print("*** Multi-connection Queries ***")
108 print("--- Sync ---")
109 smultirun()
110 print("--- Asyncio ---")
111 dns.asyncbackend.set_default_backend("asyncio")
112 amultirun()
113 if have_trio:
114 print("--- Trio ---")
115 dns.asyncbackend.set_default_backend("trio")
116 tmultirun()
117
118
119if __name__ == "__main__":

Callers 1

doq.pyFile · 0.70

Calls 6

srunFunction · 0.85
arunFunction · 0.85
trunFunction · 0.85
smultirunFunction · 0.85
amultirunFunction · 0.85
tmultirunFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…