Skip to content

Commit 7cbbe7f

Browse files
authored
Merge pull request #12 from maltsev/patch-1
Highlight Python code
2 parents cec62d1 + 9ca8480 commit 7cbbe7f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pip install fastapi-featureflags
2424

2525
## Usage
2626
A simple example of feature flags:
27-
```
27+
```python
2828
from fastapi_featureflags import FeatureFlags, feature_flag, feature_enabled
2929

3030
FeatureFlags(conf_from_url="https://pastebin.com/raw/4Ai3j2DC")
@@ -42,7 +42,7 @@ if feature_enabled("web_2"):
4242
```
4343

4444
You can get FF (feature flags) from a **File**, **URL**, **Dictionary or ENV Variables**:
45-
```
45+
```python
4646
FeatureFlags.load_conf_from_url("https://pastebin.com/raw/4Ai3j2DC")
4747
FeatureFlags.load_conf_from_json("tests/features.json")
4848
FeatureFlags.load_conf_from_dict({"web_1": True, "web_2": False})
@@ -62,7 +62,7 @@ All unregistered or on-the-fly created FF, that are not in the configuration wil
6262
For non-production testing, a router is available,
6363
so you can see the paths in swagger-ui docs.
6464
Use `include_in_schema=False` when defining the router for public deployments
65-
```
65+
```python
6666
from fastapi_featureflags import router as ff_router
6767
app.include_router(ff_router, prefix="/ff", tags=["FeatureFlags"])
6868
```

0 commit comments

Comments
 (0)