dinary 0.0.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.
dinary/__about__.py ADDED
@@ -0,0 +1 @@
1
+ __version__ = "0.0.1"
dinary/__init__.py ADDED
@@ -0,0 +1,8 @@
1
+ """Your dinar diary — track expenses, scan receipts, analyze spending with AI
2
+
3
+ The file is mandatory for build system to find the package.
4
+ """
5
+
6
+ from dinary.__about__ import __version__
7
+
8
+ __all__ = ["__version__"]
dinary/main.py ADDED
@@ -0,0 +1,33 @@
1
+ """dinary."""
2
+
3
+ from pathlib import Path
4
+
5
+ import rich_click as click
6
+
7
+ from dinary 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="dinary")
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 dinary(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
+ dinary() # pylint: disable=no-value-for-parameter
@@ -0,0 +1,83 @@
1
+ Metadata-Version: 2.4
2
+ Name: dinary
3
+ Version: 0.0.1
4
+ Summary: Your dinar diary — track expenses, scan receipts, analyze spending with AI
5
+ Project-URL: Homepage, https://andgineer.github.io/dinary/
6
+ Project-URL: Documentation, https://andgineer.github.io/dinary/
7
+ Author-email: Andrey Sorokin <andrey@sorokin.engineer>
8
+ License: Copyright (c) 2026 Andrey Sorokin <andrey@sorokin.engineer>
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
11
+ this software and associated documentation files (the “Software”), to deal in
12
+ the Software without restriction, including without limitation the rights to use,
13
+ copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
14
+ Software, and to permit persons to whom the Software is furnished to do so,
15
+ subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
21
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
22
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
24
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
25
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27
+ OTHER DEALINGS IN THE SOFTWARE.
28
+ License-File: LICENSE.txt
29
+ Keywords: one,two
30
+ Classifier: License :: OSI Approved :: MIT License
31
+ Classifier: Operating System :: OS Independent
32
+ Classifier: Programming Language :: Python :: 3
33
+ Requires-Python: >=3.10
34
+ Requires-Dist: click>=8.2.0
35
+ Requires-Dist: rich-click>=1.8.8
36
+ Description-Content-Type: text/markdown
37
+
38
+ [![Build Status](https://github.com/andgineer/dinary/workflows/CI/badge.svg)](https://github.com/andgineer/dinary/actions)
39
+ [![Coverage](https://raw.githubusercontent.com/andgineer/dinary/python-coverage-comment-action-data/badge.svg)](https://htmlpreview.github.io/?https://github.com/andgineer/dinary/blob/python-coverage-comment-action-data/htmlcov/index.html)
40
+ # dinary
41
+
42
+ Your dinar diary — track expenses, scan receipts, analyze spending with AI
43
+
44
+ # Documentation
45
+
46
+ [Dinary](https://andgineer.github.io/dinary/)
47
+
48
+
49
+
50
+ # Developers
51
+
52
+ Do not forget to run `. ./activate.sh`.
53
+
54
+ For work it need [uv](https://github.com/astral-sh/uv) installed.
55
+
56
+ Use [pre-commit](https://pre-commit.com/#install) hooks for code quality:
57
+
58
+ pre-commit install
59
+
60
+ ## Allure test report
61
+
62
+ * [Allure report](https://andgineer.github.io/dinary/builds/tests/)
63
+
64
+ # Scripts
65
+
66
+ Install [invoke](https://docs.pyinvoke.org/en/stable/) preferably with [uv tool](https://docs.astral.sh/uv/):
67
+
68
+ uv tool install invoke
69
+
70
+ For a list of available scripts run:
71
+
72
+ invoke --list
73
+
74
+ For more information about a script run:
75
+
76
+ invoke <script> --help
77
+
78
+
79
+ ## Coverage report
80
+ * [Codecov](https://app.codecov.io/gh/andgineer/dinary/tree/main/src%2Fdinary)
81
+ * [Coveralls](https://coveralls.io/github/andgineer/dinary)
82
+
83
+ > Created with cookiecutter using [template](https://github.com/andgineer/cookiecutter-python-package)
@@ -0,0 +1,8 @@
1
+ dinary/__about__.py,sha256=sXLh7g3KC4QCFxcZGBTpG2scR7hmmBsMjq6LqRptkRg,22
2
+ dinary/__init__.py,sha256=cLM66jls3mUsl8EmdOv8Ek3FCC743PFoqjcUBG6GPEI,214
3
+ dinary/main.py,sha256=gTnm3FbPAz4oc7ScOJeIr0lyQCpLmiDes6RRfw_4iOI,1024
4
+ dinary-0.0.1.dist-info/METADATA,sha256=DypK8lXoqKp-rnDJJ5BQD5q9dCcmipjen3PTr4pGI5w,3253
5
+ dinary-0.0.1.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
6
+ dinary-0.0.1.dist-info/entry_points.txt,sha256=XGnL2-3OUBsD2WmrPDYN3PnT_8iypUhTSsayJFcPZ-g,46
7
+ dinary-0.0.1.dist-info/licenses/LICENSE.txt,sha256=E0AP6eva3ZlwU6qYawTRawpzsxjA4UbvwnV6o683Xb4,1092
8
+ dinary-0.0.1.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
+ dinary = dinary.main:dinary
@@ -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.