From e8040e2ba8144a80bb45863ee53c95cad28c1a47 Mon Sep 17 00:00:00 2001 From: Andrew Ridgway Date: Wed, 17 Sep 2025 09:25:55 +1000 Subject: [PATCH] unleash client --- requirements.txt | 1 + unleash_client.py | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 unleash_client.py diff --git a/requirements.txt b/requirements.txt index 33dffec..a93465b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,3 +6,4 @@ chromadb langchain-ollama PyJWT dotenv +UnleashClient \ No newline at end of file diff --git a/unleash_client.py b/unleash_client.py new file mode 100644 index 0000000..58b18cf --- /dev/null +++ b/unleash_client.py @@ -0,0 +1,13 @@ +from UnleashClient import UnleashClient +import asyncio + +client = UnleashClient( + url="http://192.168.178.160:30007/api/", + app_name="unleash-onboarding-python", + custom_headers={'Authorization': 'default:development.6uQIie4GdslTxgYAWVu35sRBjjBMPRRKw6vBj6mFsgFfvdXuy73GgLQg'}) # in production use environment variable + +client.initialize_client() + +while True: + print(client.is_enabled("crew_ai_integration")) + asyncio.run(asyncio.sleep(1)) \ No newline at end of file