Skip to content

Commit c1ec709

Browse files
author
Dave Johnston
authored
Merge pull request #33 from harness/MAINT-adding-readme-standards
Update Readme.md
2 parents 1a9d04e + aebde1c commit c1ec709

File tree

2 files changed

+20
-17
lines changed

2 files changed

+20
-17
lines changed

README.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Harness Feature Flag Python SDK
1+
Python SDK For Harness Feature Flags
22
========================
33

44
[![pypi](https://img.shields.io/pypi/v/harness-featureflags.svg)](https://pypi.python.org/pypi/harness-featureflags)
@@ -13,10 +13,10 @@ Harness Feature Flag Python SDK
1313

1414
## Intro
1515

16-
Harness Feature Flags (FF) is a feature management solution that enables users to change the software’s functionality, without deploying new code. FF uses feature flags to hide code or behaviours without having to ship new versions of the software. A feature flag is like a powerful if statement.
17-
* For more information, see https://harness.io/products/feature-flags/
18-
* To read more, see https://ngdocs.harness.io/category/vjolt35atg-feature-flags
19-
* To sign up, https://app.harness.io/auth/#/signup/
16+
Use this README to get started with our Feature Flags (FF) SDK for Python. This guide outlines the basics of getting started with the SDK and provides a full code sample for you to try out.
17+
This sample doesn’t include configuration options, for in depth steps and configuring the SDK, for example, disabling streaming or using our Relay Proxy, see the [Python SDK Reference](https://ngdocs.harness.io/article/hwoxb6x2oe-python-sdk-reference).
18+
19+
For a sample FF Python SDK project, see our test [test Golang project](examples/getting_started/getting_started.py).
2020

2121
![FeatureFlags](https://github.com/harness/ff-python-server-sdk/raw/main/docs/images/ff-gui.png)
2222

@@ -29,20 +29,22 @@ Harness Feature Flags (FF) is a feature management solution that enables users t
2929

3030

3131
## Quickstart
32-
The Feature Flag SDK provides a client that connects to the feature flag service, and fetches the value
33-
of featue flags. The following section provides an example of how to install the SDK and initalize it from
34-
an application.
35-
This quickstart assumes you have followed the instructions to [setup a Feature Flag project and have created a flag called `harnessappdemodarkmode` and created a server API Key](https://ngdocs.harness.io/article/1j7pdkqh7j-create-a-feature-flag#step_1_create_a_project).
32+
To follow along with our test code sample, make sure you’ve:
3633

34+
- [Created a Feature Flag on the Harness Platform](https://ngdocs.harness.io/article/1j7pdkqh7j-create-a-feature-flag) called harnessappdemodarkmode
35+
- [Created a server SDK key and made a copy of it](https://ngdocs.harness.io/article/1j7pdkqh7j-create-a-feature-flag#step_3_create_an_sdk_key)
36+
-
3737
### Install the SDK
3838
Install the python SDK using pip
3939
```python
4040
python -m pip install harness-featureflags
4141
```
4242

43-
### A Simple Example
44-
Here is a complete example that will connect to the feature flag service and report the flag value every 10 seconds until the connection is closed.
45-
Any time a flag is toggled from the feature flag service you will receive the updated value.
43+
### Code Sample
44+
The following is a complete code example that you can use to test the `harnessappdemodarkmode` Flag you created on the Harness Platform. When you run the code it will:
45+
- Connect to the FF service.
46+
- Report the value of the Flag every 10 seconds until the connection is closed. Every time the harnessappdemodarkmode Flag is toggled on or off on the Harness Platform, the updated value is reported.
47+
- Close the SDK.
4648

4749
```python
4850
from featureflags.client import CfClient
@@ -85,9 +87,9 @@ $ export FF_API_KEY=<your key here>
8587
$ python3 examples/getting_started/getting_started.py
8688
```
8789

88-
### Running with docker
90+
### Running the example with Docker
8991
If you dont have the right version of python installed locally, or dont want to install the dependancies you can
90-
use docker to quicky get started
92+
use docker to quickly get started
9193

9294
```bash
9395
# Install the package
@@ -99,13 +101,13 @@ docker run -e PYTHONPATH=/app/local -e FF_API_KEY=$FF_API_KEY -v $(pwd):/app -w
99101

100102
### Additional Reading
101103

102-
Further examples and config options are in the further reading section:
103-
104-
[Further Reading](docs/further_reading.md)
104+
For further examples and config options, see the [Python SDK Reference](https://ngdocs.harness.io/article/hwoxb6x2oe-python-sdk-reference).
105105

106+
For more information about Feature Flags, see our [Feature Flags documentation](https://ngdocs.harness.io/article/0a2u2ppp8s-getting-started-with-feature-flags).
106107

107108
-------------------------
108109
[Harness](https://www.harness.io/) is a feature management platform that helps teams to build better software and to
109110
test features quicker.
110111

111112
-------------------------
113+

docs/further_reading.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ You can pass the configuration in as options when the SDK client is created.
2222
| pollInterval | Config(pull_interval=60) | when running in stream mode, the interval in seconds that we poll for changes. | 60 |
2323
| enableStream | with_stream_enabled(True), | Enable streaming mode. | true |
2424
| enableAnalytics | with_analytics_enabled(True) | Enable analytics. Metrics data is posted every 60s | true |
25+
| pollInterval | with_poll_interval(120) | When running in stream mode, the interval in seconds that we poll for changes. | 60 |
2526

2627
## Logging Configuration
2728
The SDK provides a logger that wraps the standard python logging package. You can import and use it with:

0 commit comments

Comments
 (0)