coom-api 0.0.1a1__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.
coom_api-0.0.1a1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 denkbares GmbH
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: coom-api
|
|
3
|
+
Version: 0.0.1a1
|
|
4
|
+
Summary: The COOM product configuration language with its reference implementation in one package
|
|
5
|
+
Keywords: coom,product configuration,knowledge base,solver
|
|
6
|
+
Author: denkbares GmbH
|
|
7
|
+
Author-email: denkbares GmbH <info@denkbares.com>
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
15
|
+
Requires-Dist: coom-core==0.0.1a1
|
|
16
|
+
Requires-Dist: coom-lang==0.0.1a1
|
|
17
|
+
Requires-Dist: coom-clingo==0.0.1a1
|
|
18
|
+
Requires-Dist: coom-cli==0.0.1a1
|
|
19
|
+
Requires-Dist: coom-mcp==0.0.1a1 ; extra == 'mcp'
|
|
20
|
+
Requires-Python: >=3.12
|
|
21
|
+
Project-URL: Homepage, https://www.coom-lang.org
|
|
22
|
+
Project-URL: Repository, https://github.com/denkbares/coom-lang
|
|
23
|
+
Project-URL: Changelog, https://github.com/denkbares/coom-lang/blob/main/CHANGELOG.md
|
|
24
|
+
Provides-Extra: mcp
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
|
|
27
|
+
# coom-api
|
|
28
|
+
|
|
29
|
+
The [COOM](https://www.coom-lang.org) product configuration language with its reference implementation in one
|
|
30
|
+
package. It installs `coom-core`, `coom-lang`, `coom-clingo` and `coom-cli` in matching versions and re-exports their
|
|
31
|
+
main entry points from `coom.api`. The extra `coom-api[mcp]` adds the MCP server.
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
pip install coom-api
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
from coom.api import ClingoSolver, compile_files
|
|
39
|
+
|
|
40
|
+
model = compile_files(["Bike.model"]).model
|
|
41
|
+
configuration = ClingoSolver(model).solve()
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Sources live in the [coom-lang repository](https://github.com/denkbares/coom-lang) under `packages/coom-api`.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# coom-api
|
|
2
|
+
|
|
3
|
+
The [COOM](https://www.coom-lang.org) product configuration language with its reference implementation in one
|
|
4
|
+
package. It installs `coom-core`, `coom-lang`, `coom-clingo` and `coom-cli` in matching versions and re-exports their
|
|
5
|
+
main entry points from `coom.api`. The extra `coom-api[mcp]` adds the MCP server.
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
pip install coom-api
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
```python
|
|
12
|
+
from coom.api import ClingoSolver, compile_files
|
|
13
|
+
|
|
14
|
+
model = compile_files(["Bike.model"]).model
|
|
15
|
+
configuration = ClingoSolver(model).solve()
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Sources live in the [coom-lang repository](https://github.com/denkbares/coom-lang) under `packages/coom-api`.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["uv_build>=0.13.6,<0.14"]
|
|
3
|
+
build-backend = "uv_build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "coom-api"
|
|
7
|
+
version = "0.0.1a1"
|
|
8
|
+
description = "The COOM product configuration language with its reference implementation in one package"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
license-files = ["LICENSE"]
|
|
12
|
+
requires-python = ">=3.12"
|
|
13
|
+
keywords = [
|
|
14
|
+
"coom",
|
|
15
|
+
"product configuration",
|
|
16
|
+
"knowledge base",
|
|
17
|
+
"solver",
|
|
18
|
+
]
|
|
19
|
+
classifiers = [
|
|
20
|
+
"Development Status :: 2 - Pre-Alpha",
|
|
21
|
+
"Intended Audience :: Developers",
|
|
22
|
+
"Programming Language :: Python :: 3",
|
|
23
|
+
"Programming Language :: Python :: 3.12",
|
|
24
|
+
"Programming Language :: Python :: 3.13",
|
|
25
|
+
]
|
|
26
|
+
dependencies = [
|
|
27
|
+
"coom-core==0.0.1a1",
|
|
28
|
+
"coom-lang==0.0.1a1",
|
|
29
|
+
"coom-clingo==0.0.1a1",
|
|
30
|
+
"coom-cli==0.0.1a1",
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
[[project.authors]]
|
|
34
|
+
name = "denkbares GmbH"
|
|
35
|
+
email = "info@denkbares.com"
|
|
36
|
+
|
|
37
|
+
[project.optional-dependencies]
|
|
38
|
+
mcp = ["coom-mcp==0.0.1a1"]
|
|
39
|
+
|
|
40
|
+
[project.urls]
|
|
41
|
+
Homepage = "https://www.coom-lang.org"
|
|
42
|
+
Repository = "https://github.com/denkbares/coom-lang"
|
|
43
|
+
Changelog = "https://github.com/denkbares/coom-lang/blob/main/CHANGELOG.md"
|
|
44
|
+
|
|
45
|
+
[tool.uv.build-backend]
|
|
46
|
+
module-name = "coom.api"
|
|
47
|
+
|
|
48
|
+
[tool.uv.sources.coom-core]
|
|
49
|
+
workspace = true
|
|
50
|
+
|
|
51
|
+
[tool.uv.sources.coom-lang]
|
|
52
|
+
workspace = true
|
|
53
|
+
|
|
54
|
+
[tool.uv.sources.coom-clingo]
|
|
55
|
+
workspace = true
|
|
56
|
+
|
|
57
|
+
[tool.uv.sources.coom-cli]
|
|
58
|
+
workspace = true
|
|
59
|
+
|
|
60
|
+
[tool.uv.sources.coom-mcp]
|
|
61
|
+
workspace = true
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["uv_build>=0.13.6,<0.14"]
|
|
3
|
+
build-backend = "uv_build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "coom-api"
|
|
7
|
+
version = "0.0.1a1"
|
|
8
|
+
description = "The COOM product configuration language with its reference implementation in one package"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
license-files = ["LICENSE"]
|
|
12
|
+
requires-python = ">=3.12"
|
|
13
|
+
authors = [{ name = "denkbares GmbH", email = "info@denkbares.com" }]
|
|
14
|
+
keywords = ["coom", "product configuration", "knowledge base", "solver"]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Development Status :: 2 - Pre-Alpha",
|
|
17
|
+
"Intended Audience :: Developers",
|
|
18
|
+
"Programming Language :: Python :: 3",
|
|
19
|
+
"Programming Language :: Python :: 3.12",
|
|
20
|
+
"Programming Language :: Python :: 3.13",
|
|
21
|
+
]
|
|
22
|
+
# the packages of one release are tested together, so each pins the others exactly
|
|
23
|
+
dependencies = [
|
|
24
|
+
"coom-core==0.0.1a1",
|
|
25
|
+
"coom-lang==0.0.1a1",
|
|
26
|
+
"coom-clingo==0.0.1a1",
|
|
27
|
+
"coom-cli==0.0.1a1",
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
[project.optional-dependencies]
|
|
31
|
+
mcp = ["coom-mcp==0.0.1a1"]
|
|
32
|
+
|
|
33
|
+
[project.urls]
|
|
34
|
+
Homepage = "https://www.coom-lang.org"
|
|
35
|
+
Repository = "https://github.com/denkbares/coom-lang"
|
|
36
|
+
Changelog = "https://github.com/denkbares/coom-lang/blob/main/CHANGELOG.md"
|
|
37
|
+
|
|
38
|
+
[tool.uv.build-backend]
|
|
39
|
+
module-name = "coom.api"
|
|
40
|
+
|
|
41
|
+
[tool.uv.sources]
|
|
42
|
+
coom-core = { workspace = true }
|
|
43
|
+
coom-lang = { workspace = true }
|
|
44
|
+
coom-clingo = { workspace = true }
|
|
45
|
+
coom-cli = { workspace = true }
|
|
46
|
+
coom-mcp = { workspace = true }
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"""The COOM product configuration language with its reference implementation in one import.
|
|
2
|
+
|
|
3
|
+
The packages coom-core, coom-lang and coom-clingo provide the namespace coom with the model, configurations and their
|
|
4
|
+
evaluation, the parser, compiler and writer, and the clingo based reference solver. This module re-exports their main
|
|
5
|
+
entry points.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from importlib.metadata import version
|
|
9
|
+
|
|
10
|
+
from coom.clingo.solver import ClingoSolver, ClingoSolverError
|
|
11
|
+
from coom.compiler import CompileResult, compile, compile_files, compile_text
|
|
12
|
+
from coom.configuration import Configuration
|
|
13
|
+
from coom.diagnostics import Diagnostic, Severity
|
|
14
|
+
from coom.model import Model
|
|
15
|
+
from coom.parser import LANGUAGE_VERSION, ParseResult, parse, parse_file
|
|
16
|
+
from coom.writer import write
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
"LANGUAGE_VERSION",
|
|
20
|
+
"ClingoSolver",
|
|
21
|
+
"ClingoSolverError",
|
|
22
|
+
"CompileResult",
|
|
23
|
+
"Configuration",
|
|
24
|
+
"Diagnostic",
|
|
25
|
+
"Model",
|
|
26
|
+
"ParseResult",
|
|
27
|
+
"Severity",
|
|
28
|
+
"__version__",
|
|
29
|
+
"compile",
|
|
30
|
+
"compile_files",
|
|
31
|
+
"compile_text",
|
|
32
|
+
"parse",
|
|
33
|
+
"parse_file",
|
|
34
|
+
"write",
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
__version__ = version("coom-api")
|
|
File without changes
|