GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hellohaptik/unleash-client-python

BranchesTags
Open more actions menu

Latest commit

 

History

189 Commits
189 Commits

Folders and files

NameName
Last commit message
Last commit date
.circleci-archive
.circleci-archive
 
 
.github
.github
 
 
FeatureToggle
FeatureToggle
 
 
UnleashClient
UnleashClient
 
 
docs
docs
 
 
tests
tests
 
 
.bumpversion.cfg
.bumpversion.cfg
 
 
.flake8
.flake8
 
 
.gitignore
.gitignore
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE.md
LICENSE.md
 
 
MANIFEST.in
MANIFEST.in
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
mkdocs.yml
mkdocs.yml
 
 
mypy.ini
mypy.ini
 
 
pylintrc
pylintrc
 
 
pytest.ini
pytest.ini
 
 
requirements-dev.txt
requirements-dev.txt
 
 
requirements-local.txt
requirements-local.txt
 
 
requirements-package.txt
requirements-package.txt
 
 
requirements.txt
requirements.txt
 
 
setup.config
setup.config
 
 
setup.py
setup.py
 
 
tox-osx.ini
tox-osx.ini
 
 
tox.ini
tox.ini
 
 

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(<feature-name>, <domain_name>)

# Check if certainfeature is enabled for partner
FeatureToggles.is_enabled_for_partner(<feature-name>, <partner_name>)

# Check if certain feature is enabled for business
FeatureToggles.is_enabled_for_business(<feature-name>, <business_via_name>)

# Check if certain feature is enabled for an expert
FeatureToggles.is_enabled_for_expert(<feature-name>, <expert_email>)

About

No description, website, or topics provided.

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

0 stars

Watchers

7 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.