llmbroker 0.0.2__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.
llmbroker/__about__.py ADDED
@@ -0,0 +1 @@
1
+ __version__ = "0.0.2"
llmbroker/__init__.py ADDED
@@ -0,0 +1,8 @@
1
+ """
2
+
3
+ The file is mandatory for build system to find the package.
4
+ """
5
+
6
+ from llmbroker.__about__ import __version__
7
+
8
+ __all__ = ["__version__"]
llmbroker/main.py ADDED
@@ -0,0 +1,33 @@
1
+ """llmbroker."""
2
+
3
+ from pathlib import Path
4
+
5
+ import rich_click as click
6
+
7
+ from llmbroker import __version__
8
+
9
+ click.rich_click.USE_MARKDOWN = True
10
+ OUTPUT_FILE_DEFAULT = "output"
11
+
12
+
13
+ @click.command()
14
+ @click.version_option(version=__version__, prog_name="llmbroker")
15
+ @click.argument("input_file", type=click.Path(exists=True))
16
+ @click.argument("output_file", type=click.Path(), required=False)
17
+ @click.option("--force", is_flag=True, help="Overwrite the output file if it exists.")
18
+ def llmbroker(input_file: str, output_file: str, force: bool) -> None:
19
+ """
20
+ `INPUT_FILE` to `OUTPUT_FILE`.
21
+ """
22
+ output_path = (
23
+ Path(output_file) if output_file else Path(input_file).parent / f"{OUTPUT_FILE_DEFAULT}.txt"
24
+ )
25
+ if output_path.exists() and not force:
26
+ click.echo(f"Output file {output_path} already exists. Use --force to overwrite.")
27
+ raise click.Abort()
28
+
29
+ click.echo(f"File saved to {output_path}")
30
+
31
+
32
+ if __name__ == "__main__": # pragma: no cover
33
+ llmbroker() # pylint: disable=no-value-for-parameter
@@ -0,0 +1,80 @@
1
+ Metadata-Version: 2.4
2
+ Name: llmbroker
3
+ Version: 0.0.2
4
+ Project-URL: Homepage, https://andgineer.github.io/llmbroker/
5
+ Project-URL: Documentation, https://andgineer.github.io/llmbroker/
6
+ Author-email: Andrey Sorokin <andrey@sorokin.engineer>
7
+ License: Copyright (c) 2026 Andrey Sorokin (andrey@sorokin.engineer)
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
10
+ this software and associated documentation files (the “Software”), to deal in
11
+ the Software without restriction, including without limitation the rights to use,
12
+ copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
13
+ Software, and to permit persons to whom the Software is furnished to do so,
14
+ subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
20
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
21
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
22
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
23
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
24
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
26
+ OTHER DEALINGS IN THE SOFTWARE.
27
+ License-File: LICENSE
28
+ Keywords: one,two
29
+ Classifier: License :: OSI Approved :: MIT License
30
+ Classifier: Operating System :: OS Independent
31
+ Classifier: Programming Language :: Python :: 3
32
+ Requires-Python: >=3.12
33
+ Requires-Dist: click>=8.2.0
34
+ Requires-Dist: rich-click>=1.8.8
35
+ Description-Content-Type: text/markdown
36
+
37
+ [![Build Status](https://github.com/andgineer/llmbroker/workflows/CI/badge.svg)](https://github.com/andgineer/llmbroker/actions)
38
+ [![Coverage](https://raw.githubusercontent.com/andgineer/llmbroker/python-coverage-comment-action-data/badge.svg)](https://htmlpreview.github.io/?https://github.com/andgineer/llmbroker/blob/python-coverage-comment-action-data/htmlcov/index.html)
39
+ # llmbroker
40
+
41
+
42
+
43
+ # Documentation
44
+
45
+ [llmbroker](https://andgineer.github.io/llmbroker/)
46
+
47
+
48
+
49
+ # Developers
50
+
51
+ Do not forget to run `. ./activate.sh`.
52
+
53
+ For work it need [uv](https://github.com/astral-sh/uv) installed.
54
+
55
+ Use [pre-commit](https://pre-commit.com/#install) hooks for code quality:
56
+
57
+ pre-commit install
58
+
59
+ ## Allure test report
60
+
61
+ * [Allure report](https://andgineer.github.io/llmbroker/builds/tests/)
62
+
63
+ # Scripts
64
+ Install [invoke](https://docs.pyinvoke.org/en/stable/) preferably with [uv tool](https://docs.astral.sh/uv/):
65
+
66
+ uv tool install invoke
67
+
68
+ For a list of available scripts run:
69
+
70
+ invoke --list
71
+
72
+ For more information about a script run:
73
+
74
+ invoke <script> --help
75
+
76
+ ## Coverage report
77
+ * [Codecov](https://app.codecov.io/gh/andgineer/llmbroker/tree/main/src%2Fllmbroker)
78
+ * [Coveralls](https://coveralls.io/github/andgineer/llmbroker)
79
+
80
+ > Created with cookiecutter using [template](https://github.com/andgineer/cookiecutter-python-package)
@@ -0,0 +1,8 @@
1
+ llmbroker/__about__.py,sha256=QvlVh4JTl3JL7jQAja76yKtT-IvF4631ASjWY1wS6AQ,22
2
+ llmbroker/__init__.py,sha256=OrpYIZUgXnJ_RgnVeEBBAPUB40R4KnHIaffyxLoQy00,141
3
+ llmbroker/main.py,sha256=JBWfuLUaOA2HynoRQVt_T7ISfbv05MWcRMH1hqDESAQ,1039
4
+ llmbroker-0.0.2.dist-info/METADATA,sha256=qTGx_nJVElxP1TLEurmNyQ_W6GSy0NzluPm3dZUrHpI,3127
5
+ llmbroker-0.0.2.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
6
+ llmbroker-0.0.2.dist-info/entry_points.txt,sha256=sg4oZeSgU1pXa25EFxAQmd5F4UBwT6xRcc23VaFk_bc,55
7
+ llmbroker-0.0.2.dist-info/licenses/LICENSE,sha256=CrbPl97iXSebTX8ZptPQ4qaodksrPewoUoDz8rwaapc,1092
8
+ llmbroker-0.0.2.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.29.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ llmbroker = llmbroker.main:llmbroker
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2026 Andrey Sorokin (andrey@sorokin.engineer)
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
4
+ this software and associated documentation files (the “Software”), to deal in
5
+ the Software without restriction, including without limitation the rights to use,
6
+ copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
7
+ Software, and to permit persons to whom the Software is furnished to do so,
8
+ subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
14
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
15
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
16
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20
+ OTHER DEALINGS IN THE SOFTWARE.