open-feature / open-feature/python-sdk

Support isolated API instances

Offen
#584 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@marcozabel arbeitet bereits daran.

Seit 22.4.2026.

Vorherrschende Sprache
Python
Sterne
111
Forks
44
Ø Merge
2 Std. 37 Min.
Gemergte PRs (30 T.)
14

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.