chefe 0.0.1__tar.gz

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.
Files changed (47) hide show
  1. chefe-0.0.1/.coderabbit.yaml +12 -0
  2. chefe-0.0.1/.github/dependabot.yml +10 -0
  3. chefe-0.0.1/.github/workflows/ci.yml +26 -0
  4. chefe-0.0.1/.github/workflows/docs.yml +37 -0
  5. chefe-0.0.1/.github/workflows/publish.yml +19 -0
  6. chefe-0.0.1/.gitignore +19 -0
  7. chefe-0.0.1/LICENSE +202 -0
  8. chefe-0.0.1/PKG-INFO +112 -0
  9. chefe-0.0.1/README.md +67 -0
  10. chefe-0.0.1/chefe.toml +8 -0
  11. chefe-0.0.1/docs/assets/logo.svg +14 -0
  12. chefe-0.0.1/docs/commands.md +79 -0
  13. chefe-0.0.1/docs/index.md +76 -0
  14. chefe-0.0.1/docs/install.sh +21 -0
  15. chefe-0.0.1/docs/manifest.md +116 -0
  16. chefe-0.0.1/docs/stylesheets/extra.css +84 -0
  17. chefe-0.0.1/mkdocs.yml +78 -0
  18. chefe-0.0.1/pyproject.toml +105 -0
  19. chefe-0.0.1/src/chefe/__init__.py +14 -0
  20. chefe-0.0.1/src/chefe/backends/__init__.py +8 -0
  21. chefe-0.0.1/src/chefe/backends/cargo.py +49 -0
  22. chefe-0.0.1/src/chefe/backends/npm.py +32 -0
  23. chefe-0.0.1/src/chefe/backends/pixi.py +39 -0
  24. chefe-0.0.1/src/chefe/backends/tool.py +70 -0
  25. chefe-0.0.1/src/chefe/base.py +21 -0
  26. chefe-0.0.1/src/chefe/cli.py +37 -0
  27. chefe-0.0.1/src/chefe/compiled/__init__.py +6 -0
  28. chefe-0.0.1/src/chefe/compiled/npm.py +26 -0
  29. chefe-0.0.1/src/chefe/compiled/pixi.py +64 -0
  30. chefe-0.0.1/src/chefe/manager.py +198 -0
  31. chefe-0.0.1/src/chefe/manifest/__init__.py +17 -0
  32. chefe-0.0.1/src/chefe/manifest/document.py +108 -0
  33. chefe-0.0.1/src/chefe/manifest/schema.py +181 -0
  34. chefe-0.0.1/src/chefe/state.py +18 -0
  35. chefe-0.0.1/src/chefe/utils.py +24 -0
  36. chefe-0.0.1/tests/__init__.py +0 -0
  37. chefe-0.0.1/tests/__snapshots__/test_compile.ambr +81 -0
  38. chefe-0.0.1/tests/conftest.py +98 -0
  39. chefe-0.0.1/tests/strategies.py +141 -0
  40. chefe-0.0.1/tests/test_backends.py +183 -0
  41. chefe-0.0.1/tests/test_cli.py +58 -0
  42. chefe-0.0.1/tests/test_compile.py +84 -0
  43. chefe-0.0.1/tests/test_document.py +133 -0
  44. chefe-0.0.1/tests/test_models.py +141 -0
  45. chefe-0.0.1/tests/test_stateful.py +78 -0
  46. chefe-0.0.1/tests/test_workspace.py +161 -0
  47. chefe-0.0.1/uv.lock +1456 -0
@@ -0,0 +1,12 @@
1
+ # https://docs.coderabbit.ai/guides/configure-coderabbit
2
+ language: en
3
+ reviews:
4
+ profile: chill
5
+ request_changes_workflow: false
6
+ high_level_summary: true
7
+ poem: false
8
+ auto_review:
9
+ enabled: true
10
+ drafts: false
11
+ chat:
12
+ auto_reply: true
@@ -0,0 +1,10 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: pip
4
+ directory: /
5
+ schedule:
6
+ interval: weekly
7
+ - package-ecosystem: github-actions
8
+ directory: /
9
+ schedule:
10
+ interval: weekly
@@ -0,0 +1,26 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ jobs:
9
+ test:
10
+ runs-on: ubuntu-latest
11
+ strategy:
12
+ fail-fast: false
13
+ matrix:
14
+ python: ["3.11", "3.12", "3.13", "3.14"]
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - uses: astral-sh/setup-uv@v5
18
+ with:
19
+ python-version: ${{ matrix.python }}
20
+ enable-cache: true
21
+ - run: uv sync --extra dev
22
+ - run: uv run ruff check .
23
+ - run: uv run ruff format --check .
24
+ - run: uv run mypy src
25
+ - run: uv run pyrefly check
26
+ - run: uv run pytest -q
@@ -0,0 +1,37 @@
1
+ name: Docs
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ paths: ["docs/**", "mkdocs.yml", ".github/workflows/docs.yml"]
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: read
11
+ pages: write
12
+ id-token: write
13
+
14
+ concurrency:
15
+ group: pages
16
+ cancel-in-progress: false
17
+
18
+ jobs:
19
+ build:
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - uses: actions/checkout@v4
23
+ - uses: astral-sh/setup-uv@v5
24
+ - run: uv run --extra docs mkdocs build -d site
25
+ - uses: actions/upload-pages-artifact@v3
26
+ with:
27
+ path: site
28
+
29
+ deploy:
30
+ needs: build
31
+ runs-on: ubuntu-latest
32
+ environment:
33
+ name: github-pages
34
+ url: ${{ steps.deployment.outputs.page_url }}
35
+ steps:
36
+ - id: deployment
37
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,19 @@
1
+ name: Publish
2
+
3
+ # Publishes to PyPI on a version tag via Trusted Publishing (OIDC, no token to store).
4
+ # Configure the trusted publisher once at https://pypi.org/manage/account/publishing/
5
+ on:
6
+ push:
7
+ tags: ["v*"]
8
+
9
+ jobs:
10
+ publish:
11
+ runs-on: ubuntu-latest
12
+ environment: pypi
13
+ permissions:
14
+ id-token: write
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - uses: astral-sh/setup-uv@v5
18
+ - run: uv build
19
+ - uses: pypa/gh-action-pypi-publish@release/v1
chefe-0.0.1/.gitignore ADDED
@@ -0,0 +1,19 @@
1
+ # chefe's own generated env + manifests
2
+ .chefe/
3
+
4
+ # python
5
+ __pycache__/
6
+ *.py[cod]
7
+ .venv/
8
+ dist/
9
+ build/
10
+ *.egg-info/
11
+
12
+ # tooling
13
+ .ruff_cache/
14
+ .pytest_cache/
15
+ .hypothesis/
16
+ .coverage
17
+ htmlcov/
18
+ .mypy_cache/
19
+ .pyrefly/
chefe-0.0.1/LICENSE ADDED
@@ -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.
chefe-0.0.1/PKG-INFO ADDED
@@ -0,0 +1,112 @@
1
+ Metadata-Version: 2.4
2
+ Name: chefe
3
+ Version: 0.0.1
4
+ Summary: One manifest for every package manager | conda, PyPI, npm, cargo & more, behind a single file.
5
+ Project-URL: Homepage, https://github.com/phvv-me/chefe
6
+ Project-URL: Repository, https://github.com/phvv-me/chefe
7
+ Project-URL: Issues, https://github.com/phvv-me/chefe/issues
8
+ Author-email: Pedro Valois <contact@phvv.me>
9
+ License-Expression: Apache-2.0
10
+ License-File: LICENSE
11
+ Keywords: cargo,conda,monorepo,npm,package-manager,pixi,polyglot,pypi
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: Apache Software License
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Programming Language :: Python :: 3.14
19
+ Classifier: Topic :: Software Development :: Build Tools
20
+ Classifier: Topic :: System :: Software Distribution
21
+ Requires-Python: >=3.11
22
+ Requires-Dist: cyclopts>=4
23
+ Requires-Dist: packaging>=24
24
+ Requires-Dist: plumbum>=1.8
25
+ Requires-Dist: pydantic>=2.7
26
+ Requires-Dist: rich>=13
27
+ Requires-Dist: tomlkit>=0.13
28
+ Requires-Dist: typing-extensions>=4.6
29
+ Provides-Extra: dev
30
+ Requires-Dist: dirty-equals>=0.8; extra == 'dev'
31
+ Requires-Dist: faker>=30; extra == 'dev'
32
+ Requires-Dist: hypothesis>=6.100; extra == 'dev'
33
+ Requires-Dist: mypy>=1.11; extra == 'dev'
34
+ Requires-Dist: pyrefly>=1; extra == 'dev'
35
+ Requires-Dist: pytest-cov>=5; extra == 'dev'
36
+ Requires-Dist: pytest-mock>=3.14; extra == 'dev'
37
+ Requires-Dist: pytest-subprocess>=1.5; extra == 'dev'
38
+ Requires-Dist: pytest>=8; extra == 'dev'
39
+ Requires-Dist: ruff>=0.6; extra == 'dev'
40
+ Requires-Dist: syrupy>=4; extra == 'dev'
41
+ Provides-Extra: docs
42
+ Requires-Dist: mkdocs-llmstxt>=0.2; extra == 'docs'
43
+ Requires-Dist: mkdocs-material>=9.5; extra == 'docs'
44
+ Description-Content-Type: text/markdown
45
+
46
+ <div align="center">
47
+
48
+ <img src="docs/assets/logo.svg" width="148" alt="chefe logo, a domed serving cloche" />
49
+
50
+ # chefe
51
+
52
+ **One manifest for every package manager.** 🧑‍🍳
53
+
54
+ [![CI](https://github.com/phvv-me/chefe/actions/workflows/ci.yml/badge.svg)](https://github.com/phvv-me/chefe/actions/workflows/ci.yml)
55
+ [![PyPI](https://img.shields.io/pypi/v/chefe.svg?color=EAB308)](https://pypi.org/project/chefe/)
56
+ [![Docs](https://img.shields.io/badge/docs-phvv.me%2Fchefe-EAB308)](https://phvv.me/chefe)
57
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
58
+
59
+ </div>
60
+
61
+ > [!WARNING]
62
+ > **chefe is early (`0.0.x`).** The manifest and commands may still change.
63
+
64
+ ## Installation
65
+
66
+ ```sh
67
+ curl -fsSL https://phvv.me/chefe/install.sh | sh
68
+ ```
69
+
70
+ This installs [pixi](https://pixi.sh) (the engine chefe compiles to) and chefe itself. Prefer the raw package? Use `pip install chefe` or `uv tool install chefe`.
71
+
72
+ ## What it is
73
+
74
+ Conda, PyPI, npm, cargo. Real projects need several at once, scattered across `pixi.toml`, `package.json`, and `Cargo.toml`. chefe is the head chef. You write **one `chefe.toml`** recipe, chefe runs the line (pixi, npm, cargo) and plates a single environment. It never re-implements a solver. It runs the cooks.
75
+
76
+ ```toml
77
+ [workspace]
78
+ name = "my-project"
79
+ channels = ["conda-forge"]
80
+
81
+ [deps] # bare table is conda, the default source
82
+ python = ">=3.11"
83
+ ripgrep = "*"
84
+
85
+ [pypi.deps] # resolved by pixi-via-uv, in the same env
86
+ torch = ">=2.6"
87
+
88
+ [cargo.deps] # other ecosystems are explicit via [<eco>.deps]
89
+ bookokrat = "*"
90
+
91
+ [npm.deps]
92
+ prettier = ">=3"
93
+ ```
94
+
95
+ ## Usage
96
+
97
+ ```sh
98
+ chefe init # scaffold a chefe.toml
99
+ chefe add ripgrep # add deps, use --pypi / --cargo / --npm for others
100
+ chefe install # provision every ecosystem at once
101
+ chefe tree # what's declared vs installed, per ecosystem
102
+ ```
103
+
104
+ > [!TIP]
105
+ > Run `chefe tree` anytime to see declared vs installed across every ecosystem at a glance. ✅
106
+
107
+ > [!NOTE]
108
+ > Full documentation lives at **[phvv.me/chefe](https://phvv.me/chefe)**.
109
+
110
+ ## Lore
111
+
112
+ A head chef never cooks every dish alone. They write the recipe and run the line, and the cooks each work their station. chefe does the same for your dependencies. One recipe in, one plated environment out, with pixi, npm, and cargo working the stations. 🧑‍🍳
chefe-0.0.1/README.md ADDED
@@ -0,0 +1,67 @@
1
+ <div align="center">
2
+
3
+ <img src="docs/assets/logo.svg" width="148" alt="chefe logo, a domed serving cloche" />
4
+
5
+ # chefe
6
+
7
+ **One manifest for every package manager.** 🧑‍🍳
8
+
9
+ [![CI](https://github.com/phvv-me/chefe/actions/workflows/ci.yml/badge.svg)](https://github.com/phvv-me/chefe/actions/workflows/ci.yml)
10
+ [![PyPI](https://img.shields.io/pypi/v/chefe.svg?color=EAB308)](https://pypi.org/project/chefe/)
11
+ [![Docs](https://img.shields.io/badge/docs-phvv.me%2Fchefe-EAB308)](https://phvv.me/chefe)
12
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
13
+
14
+ </div>
15
+
16
+ > [!WARNING]
17
+ > **chefe is early (`0.0.x`).** The manifest and commands may still change.
18
+
19
+ ## Installation
20
+
21
+ ```sh
22
+ curl -fsSL https://phvv.me/chefe/install.sh | sh
23
+ ```
24
+
25
+ This installs [pixi](https://pixi.sh) (the engine chefe compiles to) and chefe itself. Prefer the raw package? Use `pip install chefe` or `uv tool install chefe`.
26
+
27
+ ## What it is
28
+
29
+ Conda, PyPI, npm, cargo. Real projects need several at once, scattered across `pixi.toml`, `package.json`, and `Cargo.toml`. chefe is the head chef. You write **one `chefe.toml`** recipe, chefe runs the line (pixi, npm, cargo) and plates a single environment. It never re-implements a solver. It runs the cooks.
30
+
31
+ ```toml
32
+ [workspace]
33
+ name = "my-project"
34
+ channels = ["conda-forge"]
35
+
36
+ [deps] # bare table is conda, the default source
37
+ python = ">=3.11"
38
+ ripgrep = "*"
39
+
40
+ [pypi.deps] # resolved by pixi-via-uv, in the same env
41
+ torch = ">=2.6"
42
+
43
+ [cargo.deps] # other ecosystems are explicit via [<eco>.deps]
44
+ bookokrat = "*"
45
+
46
+ [npm.deps]
47
+ prettier = ">=3"
48
+ ```
49
+
50
+ ## Usage
51
+
52
+ ```sh
53
+ chefe init # scaffold a chefe.toml
54
+ chefe add ripgrep # add deps, use --pypi / --cargo / --npm for others
55
+ chefe install # provision every ecosystem at once
56
+ chefe tree # what's declared vs installed, per ecosystem
57
+ ```
58
+
59
+ > [!TIP]
60
+ > Run `chefe tree` anytime to see declared vs installed across every ecosystem at a glance. ✅
61
+
62
+ > [!NOTE]
63
+ > Full documentation lives at **[phvv.me/chefe](https://phvv.me/chefe)**.
64
+
65
+ ## Lore
66
+
67
+ A head chef never cooks every dish alone. They write the recipe and run the line, and the cooks each work their station. chefe does the same for your dependencies. One recipe in, one plated environment out, with pixi, npm, and cargo working the stations. 🧑‍🍳
chefe-0.0.1/chefe.toml ADDED
@@ -0,0 +1,8 @@
1
+ [workspace]
2
+ name = "proj"
3
+ version = "0.1.0"
4
+ platforms = ["osx-arm64"]
5
+ channels = ["conda-forge"]
6
+
7
+ [deps]
8
+ python = ">=3.11"
@@ -0,0 +1,14 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 120" fill="none"
2
+ stroke="#EAB308" stroke-linecap="round" stroke-linejoin="round">
3
+ <title>chefe, the cloche at the pass</title>
4
+ <!-- knob -->
5
+ <circle cx="50" cy="40" r="3.5" stroke-width="3"/>
6
+ <path d="M50 43 v6" stroke-width="3"/>
7
+ <!-- domed lid -->
8
+ <path d="M20 86 a30 36 0 0 1 60 0" stroke-width="3"/>
9
+ <!-- inner sheen -->
10
+ <path d="M33 80 a17 22 0 0 1 12 -20" stroke-width="2.5" opacity="0.55"/>
11
+ <!-- plate -->
12
+ <path d="M13 86 h74" stroke-width="3"/>
13
+ <ellipse cx="50" cy="90" rx="33" ry="5.5" stroke-width="3"/>
14
+ </svg>
@@ -0,0 +1,79 @@
1
+ # Commands
2
+
3
+ chefe mirrors pixi's verbs over the unified manifest. Most commands take an optional `env` that defaults to `default`.
4
+
5
+ | command | what it does |
6
+ |---|---|
7
+ | `chefe init` | scaffold a starter `chefe.toml` in the current directory |
8
+ | `chefe sync` | compile `chefe.toml` into `.chefe/{pixi.toml, package.json, …}` |
9
+ | `chefe install [env]` | sync, then provision every ecosystem for `env` |
10
+ | `chefe update [env]` | re-solve to the newest allowed versions across ecosystems |
11
+ | `chefe add <pkg…>` | add packages to the manifest, then re-sync |
12
+ | `chefe remove <pkg…>` | remove packages wherever they're declared, then re-sync |
13
+ | `chefe tree [env]` | declared vs installed, each dep checked in **its own** ecosystem |
14
+ | `chefe run <task> [args…]` | run a task inside the environment |
15
+ | `chefe x <cmd…>` | run a command in a throwaway env, like uvx or pipx run |
16
+ | `chefe shell [env]` | open an activated shell in `env` |
17
+ | `chefe global install [name]` | install the conda deps into the shared global pixi env |
18
+ | `chefe clean` | remove the generated `.chefe/` env and manifests |
19
+
20
+ ## init
21
+
22
+ ```sh
23
+ chefe init # name taken from the current directory
24
+ chefe init --name myproj
25
+ ```
26
+
27
+ Writes a minimal `chefe.toml` with the current platform, `conda-forge`, and `python >=3.11`. It refuses to overwrite an existing manifest.
28
+
29
+ ## add
30
+
31
+ Conda is the default source, and flags pick another ecosystem. `--spec` sets the version (default `*`), while `--env` targets a named environment.
32
+
33
+ ```sh
34
+ chefe add ripgrep numpy
35
+ chefe add torch --pypi --spec ">=2.6"
36
+ chefe add prettier --npm
37
+ chefe add vllm --pypi --env serving
38
+ ```
39
+
40
+ Edits keep your comments and formatting.
41
+
42
+ ## tree
43
+
44
+ ```sh
45
+ chefe tree
46
+ chefe tree serving
47
+ ```
48
+
49
+ Each declared package is checked against the ecosystem it was declared in. Conda goes against the pixi env, npm against `.chefe/node_modules`, and cargo against the env's `.crates.toml`. chefe reports each as `✓` ok, `≠` drift, or `✗` missing, with a transitive count.
50
+
51
+ ## run and shell
52
+
53
+ ```sh
54
+ chefe run build
55
+ chefe shell # activated shell in the default env
56
+ chefe shell serving
57
+ ```
58
+
59
+ ## x
60
+
61
+ ```sh
62
+ chefe x ruff check . # run a tool in a throwaway env, no manifest needed
63
+ chefe x --with build python -m build # add extra packages with --with
64
+ ```
65
+
66
+ Like `uvx` or `pipx run`, `chefe x` provisions an ephemeral environment for the tool and runs it, leaving no `chefe.toml` behind.
67
+
68
+ ## global install
69
+
70
+ ```sh
71
+ chefe global install # exposes the conda [deps] as a shared global env
72
+ chefe global install mytools
73
+ ```
74
+
75
+ ## clean
76
+
77
+ ```sh
78
+ chefe clean # wipe .chefe/, a fresh chefe install rebuilds it
79
+ ```