This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
so im back after months of inactivity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
os.system('cls') # for beaty reasons | |
username = input("what is your username?: ") | |
password = maskpass.askpass(prompt="what is your password?: ", mask="*") | |
project = input("what project you want to connect to? (use project id, optional): ") | |
# getting user input ↑ | applying user input ↓ | |
print("logging in to user...") | |
session = sa.login(username, password) | |
print("connecting to cloud project...") | |
cloud = session.connect_cloud(project) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while True: | |
cmd = input(">") | |
if cmd == "help": | |
print("help - lists all the commands.") | |
print("time - tells the current time.") | |
elif cmd == "time": | |
print(time.strftime("%H:") + time.strftime("%M:") + time.strftime("%S ")) | |
else: | |
print("there is no command named " + cmd + ".") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
first gist i have |