open-feature / open-feature/python-sdk

Support isolated API instances

Open
#584 0 comments 0 reactions 1 assignee View on GitHub

@marcozabel is already working on this.

Since Apr 22, 2026.

Dominant language
Python
Stars
111
Forks
44
Avg merge
2h 37m
Merged PRs (30d)
14

Description

The spec now supports creating independent, non-singleton instances of the OpenFeature API. Each instance has its own providers, context, hooks, and events; totally separate from the global singleton and from each other. This is useful for things like DI frameworks and testing.

What needs to happen
  • Add a factory function (or equivalent) that creates new, independent API instances
  • Each instance should conform to the same API contract as the existing singleton
  • Ideally the factory lives in its own module for discoverability (recommended, not required)
  • A single provider instance shouldn't be bound to more than one API instance at a time
Links

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.