We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f87bf4e commit 9a470e8Copy full SHA for 9a470e8
README.md
@@ -72,3 +72,19 @@ examples/config_example
72
│ └── cluster.yaml
73
└── region.yaml
74
```
75
+
76
+### Using the python module
77
78
+```py
79
+from hierarchical_yaml import ConfigProcessor
80
81
+config_processor = ConfigProcessor()
82
+path = "examples/config_example/env=dev/region=us-east-1/cluster=cluster2"
83
+filters = () # can choose to output only specific keys
84
+exclude_keys = () # can choose to remove specific keys
85
+output_format = "yaml" # yaml/json
86
87
88
+config_processor.process(path=path, filters=filters, exclude_keys=exclude_keys,
89
+ output_format=output_format, print_data=True)
90
+```
0 commit comments