First Code Commit

This commit is contained in:
Lucas Mathews
2024-05-17 10:48:19 +02:00
parent eeb1468453
commit 745ed14c56
39 changed files with 2227 additions and 0 deletions

19
cli.py Normal file
View File

@@ -0,0 +1,19 @@
# Lucas Mathews - Fontys Student ID: 5023572
# Banking System CLI Utility
import requests
SERVER_URL = "http://127.0.0.1:5000"
def main():
username = "john"
password = "doe"
print(f"Login with {username} and {password}:")
response = requests.get( f"{SERVER_URL}/login?username={username}&password={password}")
print(f"{response}, {response.content}")
print(f"Logout:")
response = requests.get( f"{SERVER_URL}/logout")
print(f"{response}, {response.content}")
print(f"Closing")
main()