Commit Graph

60 Commits

Author SHA1 Message Date
Andrew Helsby b44224be0d
fix: Move flag evaluation details to a dataclass (#27)
* fix/flag-error-message: Move flag evaluation details to a dataclass and add error message to the class
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

* fix/flag-error-message: Rename flag_key in FlagEvaluationDetails to match spec
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

* fix/flag-error-message: Rename flag_key in provider.py to match spec
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

* fix/flag-error-message: Rename flag_key in open_feature_client.py
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

* fix/flag-error-message: Rename flag_key in open_feature_client.py
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

* fix/flag-error-message: handle error_message doesn't exist exception
Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
2022-10-18 15:23:24 +04:00
Andrew Helsby bc58cd8932
hooks: Implementation of hooks for python OpenFeature (#6)
* hooks: Implementation of hooks for python Open Feature

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

* hooks: Fix tests broken as a result of providing hook support

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

* hooks: Add api level evaluation context support

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

* hooks: Change typing on iterables to be compatible with python 3.8

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

* hooks: Add docstring for evaluate_flag_details method

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

* hooks: Add docstring for evaluate_flag_details method

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

* hooks: docstring change requested in review

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

* hooks: add docstrings and comments to

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

* hooks: Use correct exception in error hooks in the client

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

* hooks: Set empty evaluation context in no op provider to None

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
2022-09-02 12:23:15 +04:00
Andrew Helsby 6b05df774e
evaluation-context: Add evaluation context to open feature (#5)
* evaluation-context: Add evaluation context to open feature

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

* evaluation-context: Fix evaluation context tests

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

* evaluation-context: Reduce code on context merge

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

* evaluation-context: Add docstring for create_provider_evaluation

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

* evaluation-context: Add tests for merging evaluation context

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>

* evaluation-context: Fix evaluation context for python 3.8

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
2022-08-03 12:02:43 +01:00
Andrew Helsby d2b484343d
Restructure modules (#3)
restructure-modules: Rename src module to open_feature

Signed-off-by: Andrew Helsby <ajhelsby@hotmail.com>
2022-06-30 21:35:41 +04:00
Andrew Helsby abe82c0484 python-sdk: Use a singleton for the api, move number enums to strings, modify flake8 config 2022-06-21 15:14:04 +01:00
Andrew Helsby af90605aa4 python-sdk: Fix issues raised in code review 2022-06-20 18:28:09 +01:00
Andrew Helsby 5e640a8e81 python-sdk: Fix issues raised in code review 2022-06-09 16:57:33 +04:00
Andrew Helsby 0480749590 python-sdk: Fix broken provider unit tests 2022-05-30 15:25:42 +04:00
Andrew Helsby 940846c6d3 python-sdk: Update flagsmith implementation 2022-05-17 14:37:46 +04:00
Andrew Helsby 8010bef48f python-sdk: Work in progress initial commit of a python sdk 2022-05-12 16:11:40 +04:00