Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Flask extension to make using Unleash that much easier! 🚦🚦🚦 This plugin makes integrating the Python Unleash client into quick and easy.
To try out Flask-Unleash, you'll need an instance of the Unleash server. You can either use:
Install Flask-Unleash using pip.
pip install Flask-Unleash
Next, add Flask-Unleash to your code.
from flask import Flask
from flask_unleash import Unleash
app = Flask(__name__)
app.config["UNLEASH_URL"] = "http://localhost:4242/api"
app.config["UNLEASH_APP_NAME"] = "demoapp"
unleash = Unleash(app)
Now you can use the client to check feature flags
flag_value_1 = unleash.client.is_enabled("simple-feature")
# You can pass in a context object (https://unleash.github.io/docs/unleash_context) for more complex features.
context = {
'userId': 'hamster@hamster.com'
}
flag_value_2 = unleash.client.is_enabled("complex-feature", context)
Check out the demo app for a more real-life sample implementation.
See the Flask-Unleash documentation for information about configuring Unleash.
FAQs
Flask extension for unleash-client-python.
We found that flask-unleash demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.