Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Simple feature toggle tool for Leonardo CMS

Project Description

Leonardo leonardo-feature-switcher

Simple feature toggle tool for Leonardo CMS

.. contents::


.. code-block:: bash

pip install leonardo-feature-switcher

add *feature_switchers* to LEONARDO_CONF_SPEC in your

'feature_switchers': {},

then in your modules add custom switchers::

'my_feature': lambda request, *args, **kw: True,
'my_feature1': 'leonardo_feature_switcher.my_feature1'

and in your templates::

{% load feature_switcher %}

{% is_on "my_feature" %}

{% if my_feature %}

{% endif %}

{% is_on_as "my_feature" as my_feature_result %}

{% if my_feature_result %}
{% endif %}

Read More


Release History

This version
History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(12.7 kB) Copy SHA256 Hash SHA256
Source None Sep 15, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting