toml-combine 0.1.5__py3-none-any.whl → 0.1.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {toml_combine-0.1.5.dist-info → toml_combine-0.1.7.dist-info}/METADATA +13 -4
- {toml_combine-0.1.5.dist-info → toml_combine-0.1.7.dist-info}/RECORD +4 -4
- {toml_combine-0.1.5.dist-info → toml_combine-0.1.7.dist-info}/WHEEL +0 -0
- {toml_combine-0.1.5.dist-info → toml_combine-0.1.7.dist-info}/entry_points.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: toml-combine
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.7
|
4
4
|
Summary: A tool for combining complex configurations in TOML format.
|
5
5
|
Author-email: Joachim Jablon <ewjoachim@gmail.com>
|
6
6
|
License-Expression: MIT
|
@@ -20,9 +20,10 @@ Description-Content-Type: text/markdown
|
|
20
20
|
# Toml-combine
|
21
21
|
|
22
22
|
`toml-combine` is a Python lib and CLI-tool that reads a TOML configuration file
|
23
|
-
defining a default configuration
|
24
|
-
configurations. Let's say: you have multiple
|
25
|
-
describe them all without repeating the
|
23
|
+
defining a default configuration alongside with overrides, and merges everything
|
24
|
+
following rules you define to get final configurations. Let's say: you have multiple
|
25
|
+
services, and environments, and you want to describe them all without repeating the
|
26
|
+
parts that are common to everyone.
|
26
27
|
|
27
28
|
## Concepts
|
28
29
|
|
@@ -207,4 +208,12 @@ result = toml_combine.combine(
|
|
207
208
|
)
|
208
209
|
|
209
210
|
print(result)
|
211
|
+
{
|
212
|
+
"production-job-manage": {...},
|
213
|
+
"production-job-special-command": {...},
|
214
|
+
"staging-job-manage": {...},
|
215
|
+
"staging-job-special-command": {...},
|
216
|
+
}
|
210
217
|
```
|
218
|
+
|
219
|
+
You can pass either `config` (TOML string or dict) or `config_file` (`pathlib.Path` or string path) to `combine()`. Additional `kwargs` restrict the output.
|
@@ -4,7 +4,7 @@ toml_combine/cli.py,sha256=MZrAEP4wt6f9Qn0TEXIjeLoQMlvQulFpkMciwU8GRO4,2328
|
|
4
4
|
toml_combine/combiner.py,sha256=98iWUnkbzDVGEkw-dXFZEt5G7io5SQzayceuTU2hRvo,7315
|
5
5
|
toml_combine/exceptions.py,sha256=SepRFDxeWQEbD88jhF5g7laZSSULthho83BpW8u9RWs,897
|
6
6
|
toml_combine/toml.py,sha256=_vCINvfJeS3gWid35Pmm3Yz4xyJ8LpKJRHL0axSU8nk,384
|
7
|
-
toml_combine-0.1.
|
8
|
-
toml_combine-0.1.
|
9
|
-
toml_combine-0.1.
|
10
|
-
toml_combine-0.1.
|
7
|
+
toml_combine-0.1.7.dist-info/METADATA,sha256=vUsTB2Phm6t8GMpu28aPPsIxkSNOb0nBIFnQuKJSj_Y,6401
|
8
|
+
toml_combine-0.1.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
9
|
+
toml_combine-0.1.7.dist-info/entry_points.txt,sha256=dXUQNom54uZt_7ylEG81iNYMamYpaFo9-ItcZJU6Uzc,58
|
10
|
+
toml_combine-0.1.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|