To create a new python module, that can be shared or used personally.
Create a python file in your enviroment
Use def() functions to create commands
Use class functions to sort def() functions
Use import [module] as [alias] to import all functions
Use from [module] import [function] to import only one function
Use from [module] import * to import all functions as standalone
BONUS TIP: Use the brackets in def() to allow the user to add arguments for further options
Use arg = "Hello World" to create optional arguments
# main.py
import module as mdl
mdl.greet(text="Hi")
# module.py
def greet(text="Hello"):
print(text)