{"id":18463947,"url":"https://github.com/unleash/flask-unleash","last_synced_at":"2025-04-08T08:30:51.333Z","repository":{"id":42203523,"uuid":"214171796","full_name":"Unleash/Flask-Unleash","owner":"Unleash","description":"Flask extension to make using Unleash that much easier! 🚦🚦🚦","archived":false,"fork":false,"pushed_at":"2024-06-03T09:35:31.000Z","size":5752,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-23T08:51:12.751Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://unleash.github.io/Flask-Unleash/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Unleash.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-10T12:02:55.000Z","updated_at":"2024-06-03T09:28:36.000Z","dependencies_parsed_at":"2022-07-10T20:48:07.018Z","dependency_job_id":null,"html_url":"https://github.com/Unleash/Flask-Unleash","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Unleash%2FFlask-Unleash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Unleash%2FFlask-Unleash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Unleash%2FFlask-Unleash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Unleash%2FFlask-Unleash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Unleash","download_url":"https://codeload.github.com/Unleash/Flask-Unleash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247804308,"owners_count":20998945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T09:08:26.380Z","updated_at":"2025-04-08T08:30:51.043Z","avatar_url":"https://github.com/Unleash.png","language":"Python","readme":"# Flask-Unleash\n\n![](https://github.com/unleash/flask-unleash/workflows/CI/badge.svg?branch=main) [![Coverage Status](https://coveralls.io/repos/github/Unleash/Flask-Unleash/badge.svg?branch=main)](https://coveralls.io/github/Unleash/Flask-Unleash?branch=main) [![PyPI version](https://badge.fury.io/py/flask-unleash.svg)](https://badge.fury.io/py/flask-unleash) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/flask_unleash) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nFlask extension to make using Unleash that much easier! 🚦🚦🚦  This plugin makes integrating the [Python Unleash client](https://github.com/unleash/unleash-client-python) into quick and easy.\n\n* [Documentation](https://unleash.github.io/Flask-Unleash/)\n* [Changelog](https://docs.getunleash.io/Flask-Unleash/changelog.html)\n\n## Pre-requisites\n\nTo try out Flask-Unleash, you'll need an instance of the [Unleash](http://github.com/unleash/unleash) server.  You can either use:\n* Spin up a stack in Docker Compose using [unleash-docker](https://github.com/Unleash/unleash-docker)\n* Check out the demo at [Unleash-Hosted](https://www.unleash-hosted.com/)\n\n## Quickstart\nInstall Flask-Unleash using pip.\n\n```python\npip install Flask-Unleash\n```\n\nNext, add Flask-Unleash to your code.\n\n```Python\nfrom flask import Flask\nfrom flask_unleash import Unleash\n\napp = Flask(__name__)\napp.config[\"UNLEASH_URL\"] = \"http://localhost:4242/api\"\napp.config[\"UNLEASH_APP_NAME\"] = \"demoapp\"\nunleash = Unleash(app)\n```\n\nNow you can use the client to check feature flags\n```Python\nflag_value_1 = unleash.client.is_enabled(\"simple-feature\")\n\n# You can pass in a context object (https://unleash.github.io/docs/unleash_context) for more complex features.\ncontext = {\n    'userId': 'hamster@hamster.com'\n}\nflag_value_2 = unleash.client.is_enabled(\"complex-feature\", context)\n```\n\nCheck out the [demo app](https://github.com/Unleash/Flask-Unleash/tree/main/demo_app) for a more real-life sample implementation.\n\n## Configuring Flask-Unleash\n\nSee the [Flask-Unleash documentation](https://docs.getunleash.io/Flask-Unleash/) for information about configuring Unleash.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funleash%2Fflask-unleash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funleash%2Fflask-unleash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funleash%2Fflask-unleash/lists"}