Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
72d1ee5
wip
Mar 5, 2024
35b6151
add todo on timestamps
Mar 5, 2024
a3a4833
fix linting errors
Mar 5, 2024
aed5425
wip
Mar 5, 2024
8ba3330
wip
Mar 5, 2024
26006ec
wip
Mar 5, 2024
36a3e18
address comments
Mar 6, 2024
0df2809
wip
Mar 14, 2024
571c2c7
update tests
Mar 14, 2024
c698818
update tests and json
Mar 15, 2024
209bfea
update tests
Mar 15, 2024
bdcbb61
move value type to flag
Mar 15, 2024
7cae3d5
fixes
Mar 15, 2024
a95e0d8
update makefile to point to ufc tests
Mar 15, 2024
4252e78
update version
Mar 15, 2024
9f8f7f7
flake8 + mypy fixes
Mar 15, 2024
6d38056
inject id into subject attributes
Mar 15, 2024
17f09b5
Address Giorgio's comments
Mar 19, 2024
a517779
fix check_type_match
Mar 19, 2024
b231589
eval always returns a FlagEvaluation
Mar 20, 2024
502f8f3
add type signatures
Mar 20, 2024
2ba14c1
more typing
Mar 21, 2024
6a0f3d3
use numeric instead of float
Mar 21, 2024
6ec21dd
more typing
Mar 21, 2024
e55e88f
more careful about rules and tests
Mar 21, 2024
5cb9830
Address Giorgio's comments
Mar 21, 2024
7897a67
fix typing error in none_result
Mar 22, 2024
0506aaa
add NOT_MATCHES operator
Mar 22, 2024
de969b0
get_integer_assignment should return an integer
Mar 23, 2024
dcbe36e
update types in client.py
Mar 25, 2024
b0ad9c1
use numeric instead of float
Mar 28, 2024
8248353
Fix UFC tests, force default value
Apr 3, 2024
9fda450
add metadata logging and is_initialized
Apr 4, 2024
2c0b6cf
update endpoint
Apr 12, 2024
1b830d8
Python UFC SDK updates (#29)
Apr 12, 2024
3931550
Update function signatures
Apr 18, 2024
6f35c5a
added semver tests
Apr 22, 2024
82bfa59
return noneresult more often
Apr 22, 2024
4864085
add sharders test
Apr 22, 2024
67c439f
:broom:
Apr 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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