Files
amq-adapter-python/cleverswarm/main.py
T
2025-04-22 08:50:16 +01:00

15 lines
487 B
Python

import getch
from amqp.config.amq_configuration import AMQConfiguration
from clever_swarm_adapter import CleverSwarmAmqpAdapter
if __name__ == "__main__":
adapter = CleverSwarmAmqpAdapter(AMQConfiguration("./application.properties.local"))
print("Press the space bar to exit...")
while True:
key = getch.getch() # Wait for a keypress
if key == " ": # Check if the key is the space bar
print("Space bar pressed. Exiting...")
break