Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
FF-1677 Python SDK UFC update (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmit authored Apr 24, 2024
1 parent a52c582 commit d7cba6b
Show file tree
Hide file tree
Showing 22 changed files with 1,482 additions and 687 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ test-data:
rm -rf $(testDataDir)
mkdir -p $(tempDir)
git clone -b ${branchName} --depth 1 --single-branch ${githubRepoLink} ${gitDataDir}
cp ${gitDataDir}rac-experiments-v3.json ${testDataDir}
cp -r ${gitDataDir}assignment-v2 ${testDataDir}
cp -r ${gitDataDir}ufc ${testDataDir}
rm -rf ${tempDir}

.PHONY: test
Expand Down
6 changes: 3 additions & 3 deletions eppo_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
from eppo_client.client import EppoClient
from eppo_client.config import Config
from eppo_client.configuration_requestor import (
ExperimentConfigurationDto,
ExperimentConfigurationRequestor,
)
from eppo_client.configuration_store import ConfigurationStore
from eppo_client.constants import MAX_CACHE_ENTRIES
from eppo_client.http_client import HttpClient, SdkParams
from eppo_client.models import Flag
from eppo_client.read_write_lock import ReadWriteLock
from eppo_client.version import __version__

__version__ = "1.3.1"

__client: Optional[EppoClient] = None
__lock = ReadWriteLock()
Expand All @@ -31,7 +31,7 @@ def init(config: Config) -> EppoClient:
apiKey=config.api_key, sdkName="python", sdkVersion=__version__
)
http_client = HttpClient(base_url=config.base_url, sdk_params=sdk_params)
config_store: ConfigurationStore[ExperimentConfigurationDto] = ConfigurationStore(
config_store: ConfigurationStore[Flag] = ConfigurationStore(
max_size=MAX_CACHE_ENTRIES
)
config_requestor = ExperimentConfigurationRequestor(
Expand Down
Loading

0 comments on commit d7cba6b

Please sign in to comment.