sqlite-export-for-ynab 3.0.0__tar.gz → 3.0.2__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-3.0.0/sqlite_export_for_ynab.egg-info → sqlite_export_for_ynab-3.0.2}/PKG-INFO +3 -3
- {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/README.md +1 -1
- {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/pyproject.toml +2 -2
- {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/sqlite_export_for_ynab/_main.py +6 -5
- {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2/sqlite_export_for_ynab.egg-info}/PKG-INFO +3 -3
- {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/sqlite_export_for_ynab.egg-info/requires.txt +1 -1
- {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/LICENSE +0 -0
- {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/setup.cfg +0 -0
- {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/sqlite_export_for_ynab/__init__.py +0 -0
- {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/sqlite_export_for_ynab/__main__.py +0 -0
- {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/sqlite_export_for_ynab/ddl/__init__.py +0 -0
- {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/sqlite_export_for_ynab/ddl/create-relations.sql +0 -0
- {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/sqlite_export_for_ynab/ddl/drop-relations.sql +0 -0
- {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/sqlite_export_for_ynab/py.typed +0 -0
- {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/sqlite_export_for_ynab.egg-info/SOURCES.txt +0 -0
- {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/sqlite_export_for_ynab.egg-info/dependency_links.txt +0 -0
- {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/sqlite_export_for_ynab.egg-info/entry_points.txt +0 -0
- {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/sqlite_export_for_ynab.egg-info/top_level.txt +0 -0
- {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/testing/__init__.py +0 -0
- {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/testing/fixtures.py +0 -0
- {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/tests/__init__.py +0 -0
- {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/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.0.
|
|
3
|
+
Version: 3.0.2
|
|
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
|
|
@@ -16,7 +16,7 @@ License-File: LICENSE
|
|
|
16
16
|
Requires-Dist: aiohttp>=3
|
|
17
17
|
Requires-Dist: aiopathlib
|
|
18
18
|
Requires-Dist: aiosqlite
|
|
19
|
-
Requires-Dist: asyncio-for-ynab~=1.
|
|
19
|
+
Requires-Dist: asyncio-for-ynab~=1.89.0
|
|
20
20
|
Requires-Dist: fasteners
|
|
21
21
|
Requires-Dist: rich>=12
|
|
22
22
|
Requires-Dist: tenacity
|
|
@@ -104,7 +104,7 @@ additions:
|
|
|
104
104
|
|
|
105
105
|
## Querying
|
|
106
106
|
|
|
107
|
-
You can issue queries with typical SQLite tools.
|
|
107
|
+
You can issue queries with typical SQLite tools. _`sqlite-export-for-ynab` deliberately does not implement a SQL REPL._
|
|
108
108
|
|
|
109
109
|
### Sample Queries
|
|
110
110
|
|
|
@@ -80,7 +80,7 @@ additions:
|
|
|
80
80
|
|
|
81
81
|
## Querying
|
|
82
82
|
|
|
83
|
-
You can issue queries with typical SQLite tools.
|
|
83
|
+
You can issue queries with typical SQLite tools. _`sqlite-export-for-ynab` deliberately does not implement a SQL REPL._
|
|
84
84
|
|
|
85
85
|
### Sample Queries
|
|
86
86
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "sqlite_export_for_ynab"
|
|
3
|
-
version = "3.0.
|
|
3
|
+
version = "3.0.2"
|
|
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
|
|
@@ -18,7 +18,7 @@ dependencies = [
|
|
|
18
18
|
"aiohttp>=3",
|
|
19
19
|
"aiopathlib",
|
|
20
20
|
"aiosqlite",
|
|
21
|
-
"asyncio-for-ynab~=1.
|
|
21
|
+
"asyncio-for-ynab~=1.89.0",
|
|
22
22
|
"fasteners",
|
|
23
23
|
"rich>=12",
|
|
24
24
|
"tenacity",
|
{sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/sqlite_export_for_ynab/_main.py
RENAMED
|
@@ -55,9 +55,10 @@ from tenacity import stop_after_attempt
|
|
|
55
55
|
from sqlite_export_for_ynab import ddl
|
|
56
56
|
|
|
57
57
|
if TYPE_CHECKING:
|
|
58
|
-
from collections.abc import
|
|
58
|
+
from collections.abc import AsyncGenerator
|
|
59
59
|
from collections.abc import Awaitable
|
|
60
60
|
from collections.abc import Callable
|
|
61
|
+
from collections.abc import Generator
|
|
61
62
|
from collections.abc import Iterable
|
|
62
63
|
from collections.abc import Iterator
|
|
63
64
|
from collections.abc import Sequence
|
|
@@ -111,7 +112,7 @@ _PROGRESS_COLUMNS = (
|
|
|
111
112
|
|
|
112
113
|
|
|
113
114
|
def resolve_token(token_override: str | None = None) -> str:
|
|
114
|
-
token = token_override or os.environ.get(_ENV_TOKEN)
|
|
115
|
+
token = token_override or os.environ.get(_ENV_TOKEN, "")
|
|
115
116
|
if token:
|
|
116
117
|
return token
|
|
117
118
|
|
|
@@ -161,7 +162,7 @@ def default_db_path() -> Path:
|
|
|
161
162
|
return (
|
|
162
163
|
(
|
|
163
164
|
Path(xdg_data_home)
|
|
164
|
-
if (xdg_data_home := os.environ.get("XDG_DATA_HOME"))
|
|
165
|
+
if (xdg_data_home := os.environ.get("XDG_DATA_HOME", ""))
|
|
165
166
|
else Path.home() / ".local" / "share"
|
|
166
167
|
)
|
|
167
168
|
/ _PACKAGE
|
|
@@ -206,7 +207,7 @@ async def _context(
|
|
|
206
207
|
*,
|
|
207
208
|
quiet: bool,
|
|
208
209
|
timeout: float = _SYNC_LOCK_TIMEOUT,
|
|
209
|
-
) ->
|
|
210
|
+
) -> AsyncGenerator[_Context]:
|
|
210
211
|
progress = Progress(*_PROGRESS_COLUMNS, disable=quiet)
|
|
211
212
|
lock_path = db.parent / f"{db.name}.lock"
|
|
212
213
|
lock = fasteners.InterProcessLock(lock_path)
|
|
@@ -242,7 +243,7 @@ async def _context(
|
|
|
242
243
|
|
|
243
244
|
|
|
244
245
|
@contextmanager
|
|
245
|
-
def _progress(context: _Context) ->
|
|
246
|
+
def _progress(context: _Context) -> Generator[None]:
|
|
246
247
|
context.progress.start()
|
|
247
248
|
try:
|
|
248
249
|
yield
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sqlite_export_for_ynab
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.2
|
|
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
|
|
@@ -16,7 +16,7 @@ License-File: LICENSE
|
|
|
16
16
|
Requires-Dist: aiohttp>=3
|
|
17
17
|
Requires-Dist: aiopathlib
|
|
18
18
|
Requires-Dist: aiosqlite
|
|
19
|
-
Requires-Dist: asyncio-for-ynab~=1.
|
|
19
|
+
Requires-Dist: asyncio-for-ynab~=1.89.0
|
|
20
20
|
Requires-Dist: fasteners
|
|
21
21
|
Requires-Dist: rich>=12
|
|
22
22
|
Requires-Dist: tenacity
|
|
@@ -104,7 +104,7 @@ additions:
|
|
|
104
104
|
|
|
105
105
|
## Querying
|
|
106
106
|
|
|
107
|
-
You can issue queries with typical SQLite tools.
|
|
107
|
+
You can issue queries with typical SQLite tools. _`sqlite-export-for-ynab` deliberately does not implement a SQL REPL._
|
|
108
108
|
|
|
109
109
|
### Sample Queries
|
|
110
110
|
|
|
File without changes
|
|
File without changes
|
{sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/sqlite_export_for_ynab/__init__.py
RENAMED
|
File without changes
|
{sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/sqlite_export_for_ynab/__main__.py
RENAMED
|
File without changes
|
{sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/sqlite_export_for_ynab/ddl/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.2}/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
|