
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
flipt
Advanced tools
This directory contains the Python source code for the Flipt server-side client.
API documentation is available at https://www.flipt.io/docs/reference/overview.
pip install flipt=={version}
In your Python code you can import this client and use it as so:
from flipt import FliptClient
from flipt.evaluation import BatchEvaluationRequest, EvaluationRequest
flipt_client = FliptClient()
variant_flag = flipt_client.evaluation.variant(
EvaluationRequest(
namespace_key="default",
flag_key="flagll",
entity_id="entity",
context={"fizz": "buzz"},
)
)
print(variant_flag)
There is a more detailed example in the examples directory.
You can set custom HTTP headers for the client by using the headers parameter in the constructor.
flipt_client = FliptClient(headers={"X-Custom-Header": "Custom-Value"})
Flipt V2 introduces the concept of environments. This client supports evaluation of flags in a specific environment by using the X-Flipt-Environment header.
flipt_client = FliptClient(headers={"X-Flipt-Environment": "production"})
After adding new code, please don't forget to add unit tests for new features.
To format the code, check it with linters and run tests, use the make check command.
Please keep the Python PEP8 in mind while adding new code.
FAQs
Flipt Server SDK
We found that flipt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.