b3-prosaic 0.4.1__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.
@@ -0,0 +1,209 @@
1
+ Metadata-Version: 2.4
2
+ Name: b3-prosaic
3
+ Version: 0.4.1
4
+ Summary: Canonical Markdown prose distribution engine
5
+ License-Expression: Apache-2.0
6
+ Project-URL: Repository, https://github.com/B3Cognition/prosaic
7
+ Project-URL: Issues, https://github.com/B3Cognition/prosaic/issues
8
+ Requires-Python: >=3.11
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ License-File: NOTICE
12
+ Requires-Dist: PyYAML>=6.0
13
+ Requires-Dist: pyuca>=1.2
14
+ Requires-Dist: markdown-it-py<5,>=3.0
15
+ Provides-Extra: test
16
+ Requires-Dist: pytest>=8; extra == "test"
17
+ Requires-Dist: build>=1; extra == "test"
18
+ Requires-Dist: setuptools>=77; extra == "test"
19
+ Requires-Dist: wheel>=0.45; extra == "test"
20
+ Requires-Dist: packaging>=24; extra == "test"
21
+ Dynamic: license-file
22
+
23
+ # Prosaic
24
+
25
+ Author canonical Markdown-with-YAML prose once; distribute it to 40 AI coding
26
+ targets. Prosaic also inspects neutral artifacts for Prosaic Runtime and Harness.
27
+
28
+ ## Install
29
+
30
+ Prosaic 0.4.1 is a Python 3.11+ candidate. Its public distribution is `b3-prosaic`; the
31
+ repository, Python import module and CLI remain `prosaic`. There is no Node.js
32
+ runtime dependency. The normal package-index channel starts with this release.
33
+
34
+ ```sh
35
+ uv tool install 'b3-prosaic==0.4.1'
36
+ # Alternative:
37
+ pipx install 'b3-prosaic==0.4.1'
38
+ ```
39
+
40
+ The GitHub release provides the same qualified wheel and source archive as the
41
+ package index. Use a fresh virtual environment or reinstall a pipx/uv tool when
42
+ migrating from the old `prosaic` distribution: old and new distributions share
43
+ import files and must not coexist. PyPI's unrelated `prosaic` project is not this
44
+ SDK. Historical release names and bytes remain unchanged. npm installation and
45
+ the JavaScript library API are retired; remove its old CLI and check
46
+ `command -v prosaic` when switching a global installation.
47
+
48
+ ## Quick start
49
+
50
+ Create `.prosaic/commands/greet.md`:
51
+
52
+ ```markdown
53
+ ---
54
+ description: Greet the user
55
+ ---
56
+ Say hello to $ARGUMENTS.
57
+ ```
58
+
59
+ Then preview and distribute it:
60
+
61
+ ```sh
62
+ prosaic apply --targets claude-code --dry-run
63
+ prosaic apply --targets claude-code
64
+ prosaic inspect commands/greet.md
65
+ prosaic resolve commands/greet.md --target claude-code
66
+ prosaic revert --targets claude-code --dry-run
67
+ ```
68
+
69
+ Canonical source directories are `rules/`, `skills/`, `subagents/`, and
70
+ `commands/`. Skill/subagent bundles retain their companion resources and
71
+ internal references.
72
+
73
+ ## Configuration and commands
74
+
75
+ Existing filenames and keys remain supported: `prosaic.config.yaml`,
76
+ `prosaic.config.yml`, `.prosaic.yaml`, `source`, `targets`, `artifactTypes`,
77
+ `lossyPolicy`, `backupRetention`, and `packages`. Markdown and manifest formats
78
+ are unchanged.
79
+
80
+ ```yaml
81
+ source: .prosaic
82
+ targets: [claude-code, codex-cli]
83
+ artifactTypes: [rule, skill, subagent, command]
84
+ lossyPolicy: warn
85
+ backupRetention: 3
86
+ ```
87
+
88
+ ```sh
89
+ prosaic apply --dry-run
90
+ prosaic apply
91
+ prosaic revert --dry-run
92
+ prosaic revert
93
+ prosaic import ./foreign --format claude-code --dry-run
94
+ prosaic resolve commands/deploy.md --target claude-code
95
+ prosaic inspect subagents/reviewer.md --json
96
+ prosaic validate --json --strict --targets claude-code
97
+ prosaic tools --source .prosaic
98
+ prosaic package deploy my-package --dry-run
99
+ prosaic package revert my-package --dry-run
100
+ ```
101
+
102
+ `inspect`, `resolve`, and `tools` emit JSON. Import warnings go to stderr;
103
+ apply warnings remain on stdout. Explicit `--color` / `--no-color`,
104
+ `NO_COLOR`, and `FORCE_COLOR` retain the CLI presentation contract.
105
+
106
+ See [read-only validation](docs/validation.md), [package deployment](docs/packages.md), [target contracts](docs/target-contracts.md),
107
+ [adding a target](docs/add-a-target.md), and [examples](examples/README.md).
108
+
109
+ ## Neutral CLI-tool catalogue
110
+
111
+ `prosaic tools` lists sorted YAML/YML manifests from `<source>/tools`;
112
+ `--directory <path>` selects an explicit directory. Discovery is bounded,
113
+ non-recursive and read-only. It never resolves executables, probes, installs,
114
+ executes, or grants access. Malformed/duplicate/oversized/symlinked manifests
115
+ fail closed. The Python API is `discover_tools(directory)`.
116
+
117
+ Execution belongs in Prosaic Runtime with operator-configured grants.
118
+ See the [companion CLI-tool guide](https://github.com/B3Cognition/prosaic-runtime/blob/main/docs/cli-tools.md).
119
+
120
+ ### Declarations are not permission grants
121
+
122
+ When executing through the companion Runtime/Harness, an agent can declare
123
+ `tools: [analyze_spec]` in Markdown frontmatter. That requests a tool; it does
124
+ not install it, trust its manifest, grant filesystem/network access, or enable
125
+ an OS sandbox. Installing an executable or listing it with `prosaic tools` also
126
+ grants nothing.
127
+
128
+ The operator must independently configure Runtime `allowed_tools` and trust
129
+ the manifest directory via `tool_directories`. The host then grants the tool
130
+ and narrow `read_roots` in a Runtime invocation or Harness agent step. Missing
131
+ grants deny access. Markdown and model output cannot expand these permissions.
132
+
133
+ Runtime 0.5.2+ and Harness 0.4.2+ support `cli_sandbox: {mode: required}`
134
+ in **Runtime YAML, not Markdown**. This isolates custom CLI subprocesses/probes
135
+ with macOS Seatbelt or Linux Bubblewrap, not Python callbacks or native coding
136
+ providers. It defaults to off;
137
+ upgrading Prosaic alone does not activate it. See the
138
+ [sandboxed Runtime example](https://github.com/B3Cognition/prosaic-runtime/blob/main/examples/README.md#sandboxed-cli-tools-runtime-052)
139
+ or [sandboxed Harness workflow](https://github.com/B3Cognition/prosaic-harness/blob/main/examples/README.md#sandboxed-cli-workflow-harness-042)
140
+ for installation, all permission layers and offline verification.
141
+
142
+ ## Python API
143
+
144
+ ```python
145
+ from pathlib import Path
146
+ from prosaic import (apply, inspect_artifact, resolve_execution_data, discover_tools,
147
+ validate_artifact_definition, validate_project)
148
+
149
+ root = Path('/path/to/project')
150
+ inspection = inspect_artifact(root, 'subagents/reviewer.md')
151
+ preview = apply(root, cli={'targets': ['claude-code']}, dry_run=True)
152
+ project_report = validate_project(root, {'targets': ['claude-code']}, strict=True)
153
+ resolved = resolve_execution_data(root, 'commands/deploy.md', 'claude-code')
154
+ catalogue = discover_tools(root / '.prosaic/tools')
155
+ validation = validate_artifact_definition('subagent', {
156
+ 'name': 'reviewer', 'description': 'Review supplied prose',
157
+ })
158
+ ```
159
+
160
+ `validate_artifact_definition(kind, frontmatter)` performs pure canonical validation
161
+ for explicit `rule`, `skill`, `subagent`, or `command` definitions. It returns
162
+ `{'ok': True, 'frontmatter': ...}` with a shallow metadata copy, or
163
+ `{'ok': False, 'field': ..., 'reason': ...}`. A supplied `type` must match `kind`;
164
+ an absent `type` stays absent. Validation retains extension metadata and never
165
+ reads files or executes tools. Runtime applies its execution constraints separately.
166
+
167
+ Python function names use snake_case; serialized contract keys retain camelCase.
168
+ Registry injection, configuration precedence, target registration and pipeline
169
+ operations remain available. This package distributes/inspects prose; it does
170
+ not execute models or orchestrate application workflows.
171
+
172
+ ## Development and verification
173
+
174
+ ```sh
175
+ python3 -m venv .venv
176
+ .venv/bin/python -m pip install -e '.[test]'
177
+ .venv/bin/python scripts/verify_migration.py
178
+ .venv/bin/python -m pytest
179
+ .venv/bin/python -m build
180
+ python3 -m venv .wheel-test
181
+ .wheel-test/bin/python -m pip install dist/b3_prosaic-0.4.1-py3-none-any.whl
182
+ .wheel-test/bin/python scripts/wheel_smoke.py
183
+ ```
184
+
185
+ The verifier restores immutable TS v0.2.0 from this repository's Git history,
186
+ runs Python differential/golden tests and original CLI suites through Python,
187
+ and records `parity-results/latest.json`. Node/npm are required only for the
188
+ frozen oracle, never for installed usage. Python CI covers 3.11, 3.12 and 3.13.
189
+ Use `--consumers ../prosaic-runtime ../prosaic-harness --freeze-consumers`
190
+ for tests against immutable consumer snapshots.
191
+
192
+ [Validation history](docs/parity-status.md) and
193
+ [0.3.0 migration notes](docs/release-0.3.0.md) distinguish completed trials
194
+ from untested workflows. Runtime/Harness live staged/preloaded workflows passed.
195
+ Echelon + Codex authored, reviewed, repaired, and validated a reverse-text CLI
196
+ spec, stopping at its expected human approval checkpoint. Full design/planning/
197
+ publication, Claude, and delivery remain untested. The local endpoint's direct
198
+ forced-read limitation reproduced with TS and Python inspectors; see
199
+ [diagnosis](docs/tool-choice-diagnosis.md).
200
+
201
+ ## Safety and license
202
+
203
+ Ownership manifests, integrity checks, contained paths, bounded backups, and
204
+ read-only dry runs protect application files. Python additionally rejects
205
+ dangling symlink escapes and bounds cyclic package-directory traversal. No
206
+ production consumer pin or global CLI installation is changed by this release.
207
+ The previous TS implementation remains recoverable from `v0.2.0`.
208
+
209
+ Apache-2.0; original attribution is retained in LICENSE and NOTICE.
@@ -0,0 +1,25 @@
1
+ b3_prosaic-0.4.1.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
2
+ b3_prosaic-0.4.1.dist-info/licenses/NOTICE,sha256=FcF6btC1cDOFkc7uWV2aeBW0FQ3AevfOSju5p6w7FNI,250
3
+ prosaic/__init__.py,sha256=ftl5L5JGtJSOYJiOICWhubnMqAPn4CUB6hp0cLOiGVo,1450
4
+ prosaic/__main__.py,sha256=k1ocEWawweo1qCJWNFAAvyxz3tcY13dzvCenHszij30,48
5
+ prosaic/cli.py,sha256=p22H2aHu-7bNZYJriEUdDhnsQf7xZmXez6Bwuzgx1G0,12272
6
+ prosaic/compat.py,sha256=w0MwUfXVqme6AYSdwMQuJDJk_rfWh4365_gpLy0waH4,18285
7
+ prosaic/config.py,sha256=7v5dV6Vl-WRsY2muUAktmw8ODbMVjcBOL_fs9KvUe_0,7277
8
+ prosaic/core.py,sha256=P_-VU16RGstIPcWFxEJHC-Gv_rPpl9v72WIVl8pXPYg,12967
9
+ prosaic/filesystem.py,sha256=CpimGHbdYlnTgPjw4wCxPDGtHndrTe2McxBiJmDZHH4,15531
10
+ prosaic/import_toml.py,sha256=Kk1vv3czLOd230OXeT6r1A-PuvU8O8-vZReAhLViRmc,19148
11
+ prosaic/importing.py,sha256=U6Z1uSqzvVViE6pL9vxcNTwq86hlcSOgXJA4fHNSbK0,35703
12
+ prosaic/lifecycle.py,sha256=8EYfN69OQKDR8vJ-dFmMOH6UWU-dKshDn9MI_yIYkT8,8600
13
+ prosaic/locking.py,sha256=q8Ka435ibewWPzV-SE4OYKIC2J3tW8_oThBVRCj-EWo,4317
14
+ prosaic/packages.py,sha256=B5CbLWycyfNcuCa6L1goDMw3V5pC_DY_enHtpRnKltA,9006
15
+ prosaic/pipeline.py,sha256=wxxLUnTIgOZsTDgU8OLReDzwKqyzbrUJTeWcgZluAoY,14553
16
+ prosaic/registry.py,sha256=sKlncdmUkFRAjDHY-jwcJ0sgbDrqU1OX-83kP2f23c0,14408
17
+ prosaic/toml_types.py,sha256=PS8vTQbPP14mOhQzSlRFjouFu8TuwrJWNZVx8-hKe98,5240
18
+ prosaic/tools.py,sha256=mZK9xYAVztncg_50cgLMQjn4f50ISzLi7hXA8sIqzZA,6170
19
+ prosaic/validation.py,sha256=LioMwHpmh6QitwWNnPagpPa68OssPxMQI4VoYGlKYLM,4670
20
+ prosaic/data/help.json,sha256=u76MuG5soZGkiG9wSnGld4zygCO5itBNXPFXNF3W194,11537
21
+ b3_prosaic-0.4.1.dist-info/METADATA,sha256=-w0G4hNxEnCSKDxHKiV1YIdsFUFaIJI9V-nESYjDvOk,8844
22
+ b3_prosaic-0.4.1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
23
+ b3_prosaic-0.4.1.dist-info/entry_points.txt,sha256=7FuWggmSiuac6DE6ZZpCINjFB1IZYf4tBrPbM6FBeCg,45
24
+ b3_prosaic-0.4.1.dist-info/top_level.txt,sha256=kVeB3bFxLzmw2p2zQeaA92bW-eZ5FFnV4xpTkGIZssE,8
25
+ b3_prosaic-0.4.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ prosaic = prosaic.cli:main
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,5 @@
1
+ Prosaic
2
+
3
+ This project is distributed under the Apache License, Version 2.0; see LICENSE.
4
+ Third-party dependencies retain their own licenses and attribution notices.
5
+ Previously published versions and tags retain the license notices shipped with them.
@@ -0,0 +1 @@
1
+ prosaic
prosaic/__init__.py ADDED
@@ -0,0 +1,39 @@
1
+ """Canonical prose inspection and distribution, implemented in Python."""
2
+ from .core import (ArtifactNotFoundError, ParseError, discover, inspect_artifact,
3
+ parse_artifact, validate_artifact_definition)
4
+ from .config import ConfigError, resolve_config
5
+ from .registry import (Registry, StaticRegistrySource, BuiltinRegistrySource, CatalogRegistrySource,
6
+ UnknownTargetError, REGISTRY_VERSION, builtin_registry, get_target,
7
+ parse_descriptor, validate_descriptor, register_target, runtime_capability_for)
8
+ from .pipeline import run_pipeline, PIPELINE_STAGES, resolve_execution, LossyTransformError
9
+
10
+ from .tools import discover_tools
11
+ from .locking import ProjectBusyError, ProjectLockError
12
+ from .validation import validate_project
13
+
14
+ __version__ = '0.4.1'
15
+
16
+
17
+ def apply(*args, **kwargs):
18
+ from .lifecycle import apply as operation
19
+ return operation(*args, **kwargs)
20
+
21
+
22
+ def revert(*args, **kwargs):
23
+ from .lifecycle import revert as operation
24
+ return operation(*args, **kwargs)
25
+
26
+
27
+ def resolve_execution_data(*args, **kwargs):
28
+ from .pipeline import resolve_execution_data as operation
29
+ return operation(*args, **kwargs)
30
+
31
+
32
+ def deploy_package(*args, **kwargs):
33
+ from .packages import deploy_package as operation
34
+ return operation(*args, **kwargs)
35
+
36
+
37
+ def revert_package(*args, **kwargs):
38
+ from .packages import revert_package as operation
39
+ return operation(*args, **kwargs)
prosaic/__main__.py ADDED
@@ -0,0 +1,3 @@
1
+ from .cli import main
2
+
3
+ raise SystemExit(main())