Skip to main content

A Python client for Foggl

Project description

pyfoggl

python developer client for foggl

Foggl Python Client

The Foggl Python Client is a lightweight package that interacts with the Foggl feature toggling tool's API, allowing users to retrieve feature states and values dynamically.

Installation

You can install the Foggl Python Client using pip:

pip install pyfoggl

Usage

Fetching Feature State and Value

The Foggl Python Client provides convenience functions to fetch feature states and values directly without explicit object instantiation.

  • Fetching Feature State:

    from pyfoggl import foggl_state
    
    auth_token = 'your-auth-token'
    foggl_name = 'your-feature-name'
    
    your_feature_state = foggl_state(auth_token, foggl_name)
    
    if your_feature_state:
      do_something()
    else:
      do_something_else()
    
  • Fetching Feature Value:

    from pyfoggl import foggl_value
    
    auth_token = 'your-auth-token'
    foggl_name = 'your-feature-name'
    
    your_feature_value = foggl_value(auth_token, foggl_name)
    
    do_something(foggl_value)
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyfoggl-0.1.2.tar.gz (2.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page