Skip to content

Commit

Permalink
fork into separate provider
Browse files Browse the repository at this point in the history
  • Loading branch information
leohoare committed Nov 8, 2024
1 parent de92f5d commit 0fb851e
Show file tree
Hide file tree
Showing 8 changed files with 770 additions and 354 deletions.
4 changes: 3 additions & 1 deletion openfeature/api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import typing

from openfeature import _event_support
from openfeature.client import OpenFeatureClient
from openfeature.client import OpenFeatureClient, AsyncOpenFeatureClient
from openfeature.evaluation_context import EvaluationContext
from openfeature.event import (
EventHandler,
Expand Down Expand Up @@ -38,6 +38,8 @@ def get_client(
) -> OpenFeatureClient:
return OpenFeatureClient(domain=domain, version=version)

def get_client_async(domain: typing.Optional[str] = None, version: typing.Optional[str] = None) -> OpenFeatureClient:
return AsyncOpenFeatureClient(domain=domain, version=version)

def set_provider(
provider: FeatureProvider, domain: typing.Optional[str] = None
Expand Down
Loading

0 comments on commit 0fb851e

Please sign in to comment.