eggpipe 0.3.0__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.
- eggpipe/__init__.py +129 -0
- eggpipe/cli/__init__.py +0 -0
- eggpipe/cli/main.py +710 -0
- eggpipe/config/__init__.py +0 -0
- eggpipe/config/app_config.py +35 -0
- eggpipe/config/logging.py +40 -0
- eggpipe/config/project_config.py +162 -0
- eggpipe/core/__init__.py +0 -0
- eggpipe/core/composition.py +431 -0
- eggpipe/core/discovery.py +566 -0
- eggpipe/core/document.py +32 -0
- eggpipe/core/format_registry.py +230 -0
- eggpipe/core/layers.py +385 -0
- eggpipe/core/model.py +308 -0
- eggpipe/core/naming.py +36 -0
- eggpipe/core/parser.py +96 -0
- eggpipe/core/paths.py +12 -0
- eggpipe/core/provenance.py +52 -0
- eggpipe/core/slicing.py +110 -0
- eggpipe/core/validator.py +518 -0
- eggpipe/engine/__init__.py +0 -0
- eggpipe/engine/artifact_writer.py +741 -0
- eggpipe/engine/engine.py +679 -0
- eggpipe/engine/plugin_loader.py +215 -0
- eggpipe/engine/policy.py +27 -0
- eggpipe/engine/report.py +90 -0
- eggpipe/interfaces/__init__.py +0 -0
- eggpipe/interfaces/diagnostics.py +129 -0
- eggpipe/interfaces/formats.py +122 -0
- eggpipe/interfaces/generator.py +235 -0
- eggpipe/py.typed +0 -0
- eggpipe/templating.py +84 -0
- eggpipe/utils/__init__.py +0 -0
- eggpipe/utils/exceptions.py +65 -0
- eggpipe/utils/yaml.py +44 -0
- eggpipe/version.py +3 -0
- eggpipe/watch/__init__.py +0 -0
- eggpipe/watch/watcher.py +168 -0
- eggpipe-0.3.0.dist-info/METADATA +251 -0
- eggpipe-0.3.0.dist-info/RECORD +43 -0
- eggpipe-0.3.0.dist-info/WHEEL +4 -0
- eggpipe-0.3.0.dist-info/entry_points.txt +2 -0
- eggpipe-0.3.0.dist-info/licenses/LICENSE +21 -0
eggpipe/__init__.py
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"""Eggpipe — public core API."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from eggpipe.config.app_config import AppConfig
|
|
6
|
+
from eggpipe.config.project_config import (
|
|
7
|
+
GeneratorConfig,
|
|
8
|
+
ProjectConfig,
|
|
9
|
+
ProjectConfigLoader,
|
|
10
|
+
SourceConfig,
|
|
11
|
+
)
|
|
12
|
+
from eggpipe.core.composition import Composition, CompositionResult
|
|
13
|
+
from eggpipe.core.document import ImportSpec, ModelDocument
|
|
14
|
+
from eggpipe.core.format_registry import FormatRegistry
|
|
15
|
+
from eggpipe.core.model import (
|
|
16
|
+
PRIMITIVE_TYPES,
|
|
17
|
+
UNSET,
|
|
18
|
+
Constraints,
|
|
19
|
+
CustomType,
|
|
20
|
+
Entity,
|
|
21
|
+
EntityIdentity,
|
|
22
|
+
EnumDef,
|
|
23
|
+
EnumValue,
|
|
24
|
+
ExtendsRef,
|
|
25
|
+
FieldDef,
|
|
26
|
+
FieldIdentity,
|
|
27
|
+
FormatInfo,
|
|
28
|
+
FormatSchema,
|
|
29
|
+
InputSelection,
|
|
30
|
+
MergePolicy,
|
|
31
|
+
ModelSlice,
|
|
32
|
+
SourceModel,
|
|
33
|
+
)
|
|
34
|
+
from eggpipe.core.naming import NamingStyle, transform
|
|
35
|
+
from eggpipe.core.parser import Parser, normalize_version
|
|
36
|
+
from eggpipe.core.provenance import Provenance, git_provenance
|
|
37
|
+
from eggpipe.core.slicing import select_slice
|
|
38
|
+
from eggpipe.core.validator import validate_document, validate_entity_model
|
|
39
|
+
from eggpipe.engine.engine import Engine
|
|
40
|
+
from eggpipe.engine.report import ArtifactReport, EngineReport, GeneratorReport
|
|
41
|
+
from eggpipe.interfaces.diagnostics import Diagnostic, DiagnosticLocation
|
|
42
|
+
from eggpipe.interfaces.formats import EntityModelFormat, FormatPlugin
|
|
43
|
+
from eggpipe.interfaces.generator import (
|
|
44
|
+
Artifact,
|
|
45
|
+
GenerationContext,
|
|
46
|
+
GenerationResult,
|
|
47
|
+
GeneratorInput,
|
|
48
|
+
GeneratorPlugin,
|
|
49
|
+
ImportedFile,
|
|
50
|
+
generator,
|
|
51
|
+
)
|
|
52
|
+
from eggpipe.utils.exceptions import (
|
|
53
|
+
ArtifactPathError,
|
|
54
|
+
ConfigValidationError,
|
|
55
|
+
DocumentError,
|
|
56
|
+
EggpipeError,
|
|
57
|
+
FormatConflictError,
|
|
58
|
+
FormatInheritanceError,
|
|
59
|
+
LockError,
|
|
60
|
+
ManifestError,
|
|
61
|
+
PluginContractError,
|
|
62
|
+
UnknownFormatError,
|
|
63
|
+
)
|
|
64
|
+
from eggpipe.version import __version__
|
|
65
|
+
|
|
66
|
+
__all__ = [
|
|
67
|
+
"PRIMITIVE_TYPES",
|
|
68
|
+
"UNSET",
|
|
69
|
+
"AppConfig",
|
|
70
|
+
"Artifact",
|
|
71
|
+
"ArtifactPathError",
|
|
72
|
+
"ArtifactReport",
|
|
73
|
+
"Composition",
|
|
74
|
+
"CompositionResult",
|
|
75
|
+
"ConfigValidationError",
|
|
76
|
+
"Constraints",
|
|
77
|
+
"CustomType",
|
|
78
|
+
"Diagnostic",
|
|
79
|
+
"DiagnosticLocation",
|
|
80
|
+
"DocumentError",
|
|
81
|
+
"EggpipeError",
|
|
82
|
+
"Engine",
|
|
83
|
+
"EngineReport",
|
|
84
|
+
"Entity",
|
|
85
|
+
"EntityIdentity",
|
|
86
|
+
"EntityModelFormat",
|
|
87
|
+
"EnumDef",
|
|
88
|
+
"EnumValue",
|
|
89
|
+
"ExtendsRef",
|
|
90
|
+
"FieldDef",
|
|
91
|
+
"FieldIdentity",
|
|
92
|
+
"FormatConflictError",
|
|
93
|
+
"FormatInfo",
|
|
94
|
+
"FormatInheritanceError",
|
|
95
|
+
"FormatPlugin",
|
|
96
|
+
"FormatRegistry",
|
|
97
|
+
"FormatSchema",
|
|
98
|
+
"GenerationContext",
|
|
99
|
+
"GenerationResult",
|
|
100
|
+
"GeneratorConfig",
|
|
101
|
+
"GeneratorInput",
|
|
102
|
+
"GeneratorPlugin",
|
|
103
|
+
"GeneratorReport",
|
|
104
|
+
"ImportSpec",
|
|
105
|
+
"ImportedFile",
|
|
106
|
+
"InputSelection",
|
|
107
|
+
"LockError",
|
|
108
|
+
"ManifestError",
|
|
109
|
+
"MergePolicy",
|
|
110
|
+
"ModelDocument",
|
|
111
|
+
"ModelSlice",
|
|
112
|
+
"NamingStyle",
|
|
113
|
+
"Parser",
|
|
114
|
+
"PluginContractError",
|
|
115
|
+
"ProjectConfig",
|
|
116
|
+
"ProjectConfigLoader",
|
|
117
|
+
"Provenance",
|
|
118
|
+
"SourceConfig",
|
|
119
|
+
"SourceModel",
|
|
120
|
+
"UnknownFormatError",
|
|
121
|
+
"__version__",
|
|
122
|
+
"generator",
|
|
123
|
+
"git_provenance",
|
|
124
|
+
"normalize_version",
|
|
125
|
+
"select_slice",
|
|
126
|
+
"transform",
|
|
127
|
+
"validate_document",
|
|
128
|
+
"validate_entity_model",
|
|
129
|
+
]
|
eggpipe/cli/__init__.py
ADDED
|
File without changes
|