Skip to content

Commit

Permalink
feat(python): updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
v.kozyar committed Feb 22, 2024
1 parent aa33c65 commit 34ede88
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions flipt-python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ In your Python code you can import this client and use it as so:
from flipt import FliptClient
from flipt.evaluation import BatchEvaluationRequest, EvaluationRequest

fliptClient = FliptClient()
flipt_client = FliptClient()

v = fliptClient.evaluation.variant(
variant_flag = flipt_client.evaluation.variant(
EvaluationRequest(
namespace_key="default",
flag_key="flagll",
Expand All @@ -33,7 +33,13 @@ v = fliptClient.evaluation.variant(
)
)

print(v)
print(variant_flag)
```

There is a more detailed example in the [examples](./examples) directory.


## For developers

After adding new code, please don't forget to add unit tests for new features.
To format the code, check it with linters and run tests, use the `make check` command.

0 comments on commit 34ede88

Please sign in to comment.