flagsmith-python-client
flagsmith-python-client copied to clipboard
Flagsmith Python Client. Flagsmith lets you manage features flags across web, mobile and server side applications. Get builds out faster. Control who has access to new features.
## What When running the client with local evaluation in a gunicorn server (or any multiprocessed environment), the workers environment is never updated ## Why Gunicorn is designed around the...
When doing: ```python flags = flagsmith.get_environment_flags() environment_flags.is_feature_enabled("foo") ``` - If the feature flag does not exist, the following error is raised: `FlagsmithClientError("Feature does not exist: ")` - If the environment...
If folk want to use this SDK in an async/non-blocking environment like [FastAPI](https://fastapi.tiangolo.com/) they will not have a good time. We should move to using async-friendly libraries.
DO NOT MERGE. This contains an automated SDK test for Edge V2 migration. To run, clone, then: ``` pytest tests/test_local_eval.py ``` After the migration, run: ``` pytest tests/test_local_eval.py --migrated ```
This PR adds async support to the python client. Note that this is a draft at the moment, and takes the approach of simply replacing the current client with one...
I'm using version 3.8.0 and have identity overrides enabled for my environment. I'm using a copy of a config for local development and initialize Flagsmith as follows: ``` local_file_handler =...
:robot: I have created a release *beep* *boop* --- ## [5.0.3](https://github.com/Flagsmith/flagsmith-python-client/compare/v5.0.2...v5.0.3) (2025-11-12) ### Bug Fixes * `get_environment_flags` includes segments in evaluation context ([#179](https://github.com/Flagsmith/flagsmith-python-client/issues/179)) ([470c4e3](https://github.com/Flagsmith/flagsmith-python-client/commit/470c4e3e71be55795387ab023b4fe6f7623d6aec)) ### Other * Standardize engine metadata...
updates: - [github.com/psf/black-pre-commit-mirror: 25.9.0 → 25.11.0](https://github.com/psf/black-pre-commit-mirror/compare/25.9.0...25.11.0)
As part of some work in the core Flagsmith repository, we found that there isn't currently a good, generic solution for mocking the flagsmith client to return a given value...