a
This commit is contained in:
parent
54e78333dd
commit
7ba3bdcda1
9 changed files with 40 additions and 39 deletions
|
|
@ -1 +0,0 @@
|
|||
#a
|
||||
2
modules/example_module.py
Normal file
2
modules/example_module.py
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
def get_output():
|
||||
return "Hello from module!"
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
def get_text():
|
||||
return "Hello, world!"
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
import socket
|
||||
|
||||
def get_ip():
|
||||
try:
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
s.connect(("8.8.8.8", 80))
|
||||
ip = s.getsockname()[0]
|
||||
s.close()
|
||||
except Exception:
|
||||
ip = "No Connection"
|
||||
return f"IP: {ip}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue