sqlite-export-for-ynab 3.0.0__tar.gz → 3.0.1__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.
Files changed (22) hide show
  1. {sqlite_export_for_ynab-3.0.0/sqlite_export_for_ynab.egg-info → sqlite_export_for_ynab-3.0.1}/PKG-INFO +3 -3
  2. {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.1}/README.md +1 -1
  3. {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.1}/pyproject.toml +2 -2
  4. {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.1}/sqlite_export_for_ynab/_main.py +6 -5
  5. {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.1/sqlite_export_for_ynab.egg-info}/PKG-INFO +3 -3
  6. {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.1}/sqlite_export_for_ynab.egg-info/requires.txt +1 -1
  7. {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.1}/LICENSE +0 -0
  8. {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.1}/setup.cfg +0 -0
  9. {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.1}/sqlite_export_for_ynab/__init__.py +0 -0
  10. {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.1}/sqlite_export_for_ynab/__main__.py +0 -0
  11. {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.1}/sqlite_export_for_ynab/ddl/__init__.py +0 -0
  12. {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.1}/sqlite_export_for_ynab/ddl/create-relations.sql +0 -0
  13. {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.1}/sqlite_export_for_ynab/ddl/drop-relations.sql +0 -0
  14. {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.1}/sqlite_export_for_ynab/py.typed +0 -0
  15. {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.1}/sqlite_export_for_ynab.egg-info/SOURCES.txt +0 -0
  16. {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.1}/sqlite_export_for_ynab.egg-info/dependency_links.txt +0 -0
  17. {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.1}/sqlite_export_for_ynab.egg-info/entry_points.txt +0 -0
  18. {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.1}/sqlite_export_for_ynab.egg-info/top_level.txt +0 -0
  19. {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.1}/testing/__init__.py +0 -0
  20. {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.1}/testing/fixtures.py +0 -0
  21. {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.1}/tests/__init__.py +0 -0
  22. {sqlite_export_for_ynab-3.0.0 → sqlite_export_for_ynab-3.0.1}/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.0
3
+ Version: 3.0.1
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.87.0
19
+ Requires-Dist: asyncio-for-ynab~=1.88.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. *`sqlite-export-for-ynab` deliberately does not implement a SQL REPL.*
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. *`sqlite-export-for-ynab` deliberately does not implement a SQL REPL.*
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.0"
3
+ version = "3.0.1"
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.87.0",
21
+ "asyncio-for-ynab~=1.88.0",
22
22
  "fasteners",
23
23
  "rich>=12",
24
24
  "tenacity",
@@ -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 AsyncIterator
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
- ) -> AsyncIterator[_Context]:
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) -> Iterator[None]:
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.0
3
+ Version: 3.0.1
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.87.0
19
+ Requires-Dist: asyncio-for-ynab~=1.88.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. *`sqlite-export-for-ynab` deliberately does not implement a SQL REPL.*
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
 
@@ -1,7 +1,7 @@
1
1
  aiohttp>=3
2
2
  aiopathlib
3
3
  aiosqlite
4
- asyncio-for-ynab~=1.87.0
4
+ asyncio-for-ynab~=1.88.0
5
5
  fasteners
6
6
  rich>=12
7
7
  tenacity