open-feature / open-feature/python-sdk

Support isolated API instances

Aperta
#584 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@marcozabel ci sta già lavorando.

Dal 22/4/2026.

Lingua principale
Python
Stelle
111
Fork
44
Merge medio
2h 37m
PR unite (30g)
14

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.