13 lines
452 B
Python
13 lines
452 B
Python
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)) |