{ "info": { "author": "Michael Kuty", "author_email": "6du1ro.n@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Software Development", "Topic :: Software Development :: Libraries :: Application Frameworks" ], "description": "==========================\nLeonardo leonardo-feature-switcher\n==========================\n\nSimple feature toggle tool for Leonardo CMS\n\n.. contents::\n :local:\n\nInstallation\n------------\n\n.. code-block:: bash\n\n pip install leonardo-feature-switcher\n\nadd *feature_switchers* to LEONARDO_CONF_SPEC in your local_settings.py::\n\n LEONARDO_CONF_SPEC = {\n 'feature_switchers': {},\n }\n\nthen in your modules add custom switchers::\n\n LEONARDO_FEATURE_SWITCHERS = {\n 'my_feature': lambda request, *args, **kw: True,\n 'my_feature1': 'leonardo_feature_switcher.my_feature1'\n }\n\nand in your templates::\n\n {% load feature_switcher %}\n\n {% is_on \"my_feature\" %}\n\n {% if my_feature %}\n\n {% endif %}\n\n {% is_on_as \"my_feature\" as my_feature_result %}\n\n {% if my_feature_result %}\n {% endif %}\n\nRead More\n=========\n\n* https://github.com/django-leonardo/django-leonardo", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/leonardo-modules/leonardo-feature-switcher", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "leonardo-feature-switcher", "package_url": "https://pypi.org/project/leonardo-feature-switcher/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/leonardo-feature-switcher/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/leonardo-modules/leonardo-feature-switcher" }, "release_url": "https://pypi.org/project/leonardo-feature-switcher/0.0.2/", "requires_dist": null, "requires_python": null, "summary": "Simple feature toggle tool for Leonardo CMS", "version": "0.0.2" }, "last_serial": 2345107, "releases": { "0.0.1.dev1": [ { "comment_text": "", "digests": { "md5": "08a7f8718ac1fe7c72dc0b1929ff76ac", "sha256": "03538087dbf35eceea578a09c4d097c4e34348305fd4853f9661ff63a0c31b9b" }, "downloads": -1, "filename": "leonardo-feature-switcher-0.0.1.dev1.tar.gz", "has_sig": false, "md5_digest": "08a7f8718ac1fe7c72dc0b1929ff76ac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12818, "upload_time": "2016-07-17T08:39:21", "url": "https://files.pythonhosted.org/packages/1a/29/40fde1c00d559107123e37a124fa3165cf2842c0b8a873e430652edca1ec/leonardo-feature-switcher-0.0.1.dev1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "75bd256b5754a8f0bd5ff983b7183501", "sha256": "a7da4ec658df2674e40854ae581a63e6c0f517e87c79931dc2eee242c1718850" }, "downloads": -1, "filename": "leonardo-feature-switcher-0.0.2.tar.gz", "has_sig": false, "md5_digest": "75bd256b5754a8f0bd5ff983b7183501", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12725, "upload_time": "2016-09-15T20:40:54", "url": "https://files.pythonhosted.org/packages/db/23/a40c426eb2e190e6aff7c4de76248d094ca6d85b5fede4c8dcfee712cf50/leonardo-feature-switcher-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "75bd256b5754a8f0bd5ff983b7183501", "sha256": "a7da4ec658df2674e40854ae581a63e6c0f517e87c79931dc2eee242c1718850" }, "downloads": -1, "filename": "leonardo-feature-switcher-0.0.2.tar.gz", "has_sig": false, "md5_digest": "75bd256b5754a8f0bd5ff983b7183501", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12725, "upload_time": "2016-09-15T20:40:54", "url": "https://files.pythonhosted.org/packages/db/23/a40c426eb2e190e6aff7c4de76248d094ca6d85b5fede4c8dcfee712cf50/leonardo-feature-switcher-0.0.2.tar.gz" } ] }