sqlite-export-for-ynab 2.9.10__tar.gz → 3.0.0__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.
- {sqlite_export_for_ynab-2.9.10/sqlite_export_for_ynab.egg-info → sqlite_export_for_ynab-3.0.0}/PKG-INFO +2 -3
- {sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/pyproject.toml +2 -3
- {sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/sqlite_export_for_ynab/_main.py +1 -33
- {sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0/sqlite_export_for_ynab.egg-info}/PKG-INFO +2 -3
- {sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/sqlite_export_for_ynab.egg-info/requires.txt +1 -4
- {sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/LICENSE +0 -0
- {sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/README.md +0 -0
- {sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/setup.cfg +0 -0
- {sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/sqlite_export_for_ynab/__init__.py +0 -0
- {sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/sqlite_export_for_ynab/__main__.py +0 -0
- {sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/sqlite_export_for_ynab/ddl/__init__.py +0 -0
- {sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/sqlite_export_for_ynab/ddl/create-relations.sql +0 -0
- {sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/sqlite_export_for_ynab/ddl/drop-relations.sql +0 -0
- {sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/sqlite_export_for_ynab/py.typed +0 -0
- {sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/sqlite_export_for_ynab.egg-info/SOURCES.txt +0 -0
- {sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/sqlite_export_for_ynab.egg-info/dependency_links.txt +0 -0
- {sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/sqlite_export_for_ynab.egg-info/entry_points.txt +0 -0
- {sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/sqlite_export_for_ynab.egg-info/top_level.txt +0 -0
- {sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/testing/__init__.py +0 -0
- {sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/testing/fixtures.py +0 -0
- {sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/tests/__init__.py +0 -0
- {sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/tests/_main_test.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sqlite_export_for_ynab
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: SQLite Export for YNAB - Export YNAB Data to SQLite
|
|
5
5
|
Author-email: Max R <mxr@users.noreply.github.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -18,9 +18,8 @@ Requires-Dist: aiopathlib
|
|
|
18
18
|
Requires-Dist: aiosqlite
|
|
19
19
|
Requires-Dist: asyncio-for-ynab~=1.87.0
|
|
20
20
|
Requires-Dist: fasteners
|
|
21
|
-
Requires-Dist: rich>=
|
|
21
|
+
Requires-Dist: rich>=12
|
|
22
22
|
Requires-Dist: tenacity
|
|
23
|
-
Requires-Dist: typing-extensions; python_version < "3.12"
|
|
24
23
|
Dynamic: license-file
|
|
25
24
|
|
|
26
25
|
# sqlite-export-for-ynab
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "sqlite_export_for_ynab"
|
|
3
|
-
version = "
|
|
3
|
+
version = "3.0.0"
|
|
4
4
|
description = "SQLite Export for YNAB - Export YNAB Data to SQLite"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.11" # generated by mxr/base
|
|
@@ -20,9 +20,8 @@ dependencies = [
|
|
|
20
20
|
"aiosqlite",
|
|
21
21
|
"asyncio-for-ynab~=1.87.0",
|
|
22
22
|
"fasteners",
|
|
23
|
-
"rich>=
|
|
23
|
+
"rich>=12",
|
|
24
24
|
"tenacity",
|
|
25
|
-
"typing-extensions; python_version<'3.12'",
|
|
26
25
|
]
|
|
27
26
|
|
|
28
27
|
[project.urls] # generated by mxr/base
|
{sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/sqlite_export_for_ynab/_main.py
RENAMED
|
@@ -43,6 +43,7 @@ from asyncio_for_ynab import TransactionsApi
|
|
|
43
43
|
from asyncio_for_ynab import TransactionsResponse
|
|
44
44
|
from asyncio_for_ynab import TransactionsResponseData
|
|
45
45
|
from rich.progress import BarColumn
|
|
46
|
+
from rich.progress import MofNCompleteColumn
|
|
46
47
|
from rich.progress import Progress
|
|
47
48
|
from rich.progress import TaskID
|
|
48
49
|
from rich.progress import TextColumn
|
|
@@ -65,48 +66,15 @@ _T = TypeVar("_T")
|
|
|
65
66
|
|
|
66
67
|
if sys.version_info >= (3, 12): # pragma: >=3.12 cover
|
|
67
68
|
from itertools import batched
|
|
68
|
-
from typing import override
|
|
69
69
|
else: # pragma: <3.12 cover
|
|
70
70
|
from itertools import islice
|
|
71
71
|
|
|
72
|
-
from typing_extensions import override
|
|
73
|
-
|
|
74
72
|
def batched(iterable: Iterable[_T], n: int) -> Iterator[tuple[_T, ...]]:
|
|
75
73
|
it = iter(iterable)
|
|
76
74
|
while batch := tuple(islice(it, n)):
|
|
77
75
|
yield batch
|
|
78
76
|
|
|
79
77
|
|
|
80
|
-
try:
|
|
81
|
-
from rich.progress import (
|
|
82
|
-
MofNCompleteColumn, # pyright: ignore[reportAssignmentType]
|
|
83
|
-
)
|
|
84
|
-
# https://github.com/benleb/surepy/issues/240
|
|
85
|
-
except ImportError: # pragma: no cover
|
|
86
|
-
from rich.progress import ProgressColumn
|
|
87
|
-
from rich.progress import Task
|
|
88
|
-
from rich.text import Text
|
|
89
|
-
|
|
90
|
-
if TYPE_CHECKING:
|
|
91
|
-
from rich.table import Column
|
|
92
|
-
|
|
93
|
-
class MofNCompleteColumn(ProgressColumn): # type:ignore[no-redef]
|
|
94
|
-
def __init__(self, separator: str = "/", table_column: Column | None = None):
|
|
95
|
-
self.separator = separator
|
|
96
|
-
super().__init__(table_column=table_column)
|
|
97
|
-
|
|
98
|
-
@override
|
|
99
|
-
def render(self, task: Task) -> Text:
|
|
100
|
-
"""Show completed/total."""
|
|
101
|
-
completed = int(task.completed)
|
|
102
|
-
total = int(task.total) if task.total is not None else "?"
|
|
103
|
-
total_width = len(str(total))
|
|
104
|
-
return Text(
|
|
105
|
-
f"{completed:{total_width}d}{self.separator}{total}",
|
|
106
|
-
style="progress.download",
|
|
107
|
-
)
|
|
108
|
-
|
|
109
|
-
|
|
110
78
|
_EntryTable = Literal[
|
|
111
79
|
"accounts",
|
|
112
80
|
"account_periodic_values",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sqlite_export_for_ynab
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: SQLite Export for YNAB - Export YNAB Data to SQLite
|
|
5
5
|
Author-email: Max R <mxr@users.noreply.github.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -18,9 +18,8 @@ Requires-Dist: aiopathlib
|
|
|
18
18
|
Requires-Dist: aiosqlite
|
|
19
19
|
Requires-Dist: asyncio-for-ynab~=1.87.0
|
|
20
20
|
Requires-Dist: fasteners
|
|
21
|
-
Requires-Dist: rich>=
|
|
21
|
+
Requires-Dist: rich>=12
|
|
22
22
|
Requires-Dist: tenacity
|
|
23
|
-
Requires-Dist: typing-extensions; python_version < "3.12"
|
|
24
23
|
Dynamic: license-file
|
|
25
24
|
|
|
26
25
|
# sqlite-export-for-ynab
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/sqlite_export_for_ynab/__init__.py
RENAMED
|
File without changes
|
{sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/sqlite_export_for_ynab/__main__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sqlite_export_for_ynab-2.9.10 → sqlite_export_for_ynab-3.0.0}/sqlite_export_for_ynab/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|