Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

hellohaptik/unleash-client-python

Repository files navigation

unleash-client-python

This is the Python client for Unleash. It implements Client Specifications 1.0 and checks compliance based on spec in unleash/client-specifications.

Params Required to initialise the FeatureToggles

url -> Unleash Service Client URL

app_name -> Unleash server URL

environment -> Get from ENV variable

cas_name -> Get from ENV variable

redis_host -> Get from ENV variable

redis_port -> Get from ENV variable

redis_db -> Get from ENV variable

enable_feature_oggle_service -> Get from ENV variable

Initialise the client in haptik_api

FeatureToggles.initialize(
url,
app_name,
environment,
cas_name,
redis_host,
redis_port,
redis_db
enable_feature_toggle_service)

Usage in haptik Repositories

# To check if feature is enabled for domain
FeatureToggles.is_enabled_for_domain(, )

# Check if certainfeature is enabled for partner
FeatureToggles.is_enabled_for_partner(, )

# Check if certain feature is enabled for business
FeatureToggles.is_enabled_for_business(, )

# Check if certain feature is enabled for an expert
FeatureToggles.is_enabled_for_expert(, )

About

No description, website, or topics provided.

Resources

Readme

License

MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Stars

Watchers

Forks

Packages

Contributors