Files
AirlockTools/AirlockTools.py
T
2025-08-19 16:01:48 -04:00

29 lines
644 B
Python

import dotenv
import os
import utils.getdeviceevents
dotenv.load_dotenv()
url = "https://172.17.22.240:3129"
def apivalidation():
print("=== Welcome to the Airlock API Tool ===")
match os.getenv('APIKEY'):
case '':
print("Please add your API Key to the .env file")
case _:
menu()
def menu():
print("\n--- Main Menu ---")
print("1. Get All Events for Single Device")
print("2. Policy Enforcement Readiness")
print("3. Get Device with Highest Blocks in 7 Days")
while True:
choice = input("Enter Menu Item: ")
if choice == '1':
utils.getdeviceevents.devicehistory(url)
if __name__ == "__main__":
apivalidation()