We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea3d879 commit 994e901Copy full SHA for 994e901
1 file changed
README.md
@@ -54,6 +54,7 @@ export SHIP_DATE='1984-06-25'
54
export TTL=42
55
export ENABLE_LOGIN=true
56
export GITHUB_REPOS=webargs,konch,ped
57
+export GITHUB_REPO_PRIORITY="webargs=2,konch=3"
58
export COORDINATES=23.3,50.0
59
export LOG_LEVEL=DEBUG
60
```
@@ -82,6 +83,11 @@ enable_feature_x = env.bool("ENABLE_FEATURE_X", False) # => False
82
83
# parsing lists
84
gh_repos = env.list("GITHUB_REPOS") # => ['webargs', 'konch', 'ped']
85
coords = env.list("COORDINATES", subcast=float) # => [23.3, 50.0]
86
+
87
+# parsing dicts
88
+gh_repos_priorities = env.dict(
89
+ "GITHUB_REPO_PRIORITY", subcast_values=int
90
+) # => {'webargs': 2, 'konch': 3}
91
92
93
## Supported types
0 commit comments