esgpull 0.7.1__py3-none-any.whl → 0.7.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.
- esgpull/context.py +6 -1
- esgpull/migrations/versions/0.7.2_update_tables.py +28 -0
- {esgpull-0.7.1.dist-info → esgpull-0.7.2.dist-info}/METADATA +1 -1
- {esgpull-0.7.1.dist-info → esgpull-0.7.2.dist-info}/RECORD +7 -6
- {esgpull-0.7.1.dist-info → esgpull-0.7.2.dist-info}/WHEEL +0 -0
- {esgpull-0.7.1.dist-info → esgpull-0.7.2.dist-info}/entry_points.txt +0 -0
- {esgpull-0.7.1.dist-info → esgpull-0.7.2.dist-info}/licenses/LICENSE +0 -0
esgpull/context.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import asyncio
|
|
4
|
+
import json
|
|
4
5
|
import sys
|
|
5
6
|
from collections.abc import AsyncIterator, Callable, Coroutine, Sequence
|
|
6
7
|
from dataclasses import dataclass, field
|
|
@@ -441,7 +442,9 @@ class Context:
|
|
|
441
442
|
try:
|
|
442
443
|
resp = await self.client.send(result.request)
|
|
443
444
|
resp.raise_for_status()
|
|
444
|
-
result.json =
|
|
445
|
+
result.json = json.loads(
|
|
446
|
+
resp.content.decode(encoding="latin-1")
|
|
447
|
+
)
|
|
445
448
|
logger.info(f"✓ Fetched in {resp.elapsed}s {resp.url}")
|
|
446
449
|
except HTTPError as exc:
|
|
447
450
|
result.exc = exc
|
|
@@ -464,6 +467,8 @@ class Context:
|
|
|
464
467
|
group = BaseExceptionGroup("fetch", excs)
|
|
465
468
|
if self.noraise:
|
|
466
469
|
logger.exception(group)
|
|
470
|
+
for exc in excs:
|
|
471
|
+
logger.exception(exc)
|
|
467
472
|
else:
|
|
468
473
|
raise group
|
|
469
474
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"""update tables
|
|
2
|
+
|
|
3
|
+
Revision ID: 0.7.2
|
|
4
|
+
Revises: 0.7.1
|
|
5
|
+
Create Date: 2024-09-17 15:04:11.203421
|
|
6
|
+
|
|
7
|
+
"""
|
|
8
|
+
from alembic import op
|
|
9
|
+
import sqlalchemy as sa
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# revision identifiers, used by Alembic.
|
|
13
|
+
revision = '0.7.2'
|
|
14
|
+
down_revision = '0.7.1'
|
|
15
|
+
branch_labels = None
|
|
16
|
+
depends_on = None
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def upgrade() -> None:
|
|
20
|
+
# ### commands auto generated by Alembic - please adjust! ###
|
|
21
|
+
pass
|
|
22
|
+
# ### end Alembic commands ###
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def downgrade() -> None:
|
|
26
|
+
# ### commands auto generated by Alembic - please adjust! ###
|
|
27
|
+
pass
|
|
28
|
+
# ### end Alembic commands ###
|
|
@@ -2,7 +2,7 @@ esgpull/__init__.py,sha256=XItFDIMNmFUNNcKtUgXdfmGwUIWt4AAv0a4mZkfj5P8,240
|
|
|
2
2
|
esgpull/auth.py,sha256=QZ-l1ySLMP0fvuwYHRLv9FZYp1gqfju_eGaTMDByUxw,5205
|
|
3
3
|
esgpull/config.py,sha256=3E3jRGem09M_Hm1_uqWHu4dy7gzgShiUecZp-6XC9E4,12149
|
|
4
4
|
esgpull/constants.py,sha256=fQE6vE2EU8V5m2lRNYBeMkL3u1_Em343Zs8u7i6ZRlo,1118
|
|
5
|
-
esgpull/context.py,sha256=
|
|
5
|
+
esgpull/context.py,sha256=ZywqCvIKZrW1pJln04993yxT6dW8yJ7fnx6LJL7Ot0E,23368
|
|
6
6
|
esgpull/database.py,sha256=TDo5xIXWyMEPFpaeygVhLZkeDAwYlkBG9UWhmL6ntfo,6144
|
|
7
7
|
esgpull/download.py,sha256=3YcGLrffzAmuiV49tYsW-7PuVYcSFtbsZnH2Q26khm0,5491
|
|
8
8
|
esgpull/esgpull.py,sha256=R7lnlyOo92FB_Qem5ST4hNA5Iwn9PHYsvCpKxqRX-qM,17717
|
|
@@ -64,6 +64,7 @@ esgpull/migrations/versions/0.6.4_update_tables.py,sha256=PFALlSAjCFOqqoQgjq2TF0
|
|
|
64
64
|
esgpull/migrations/versions/0.6.5_update_tables.py,sha256=NYO8vnS4h_g4Co4M1CJibB2WYLqmVAy6ZaApFk-do3c,493
|
|
65
65
|
esgpull/migrations/versions/0.7.0_update_tables.py,sha256=aCmR7q-1V49JIfvFR-1iVskTwR3J8O1iKysgF0oJZ4k,971
|
|
66
66
|
esgpull/migrations/versions/0.7.1_update_tables.py,sha256=f_PakdA0ZKmekcWWDC86u5PlUrF_Kl2xzkNV3Am9sd0,541
|
|
67
|
+
esgpull/migrations/versions/0.7.2_update_tables.py,sha256=cBWEhfYQlhGpE55NOY9eD2psIb3HS7KOa9g-_3y0nQA,541
|
|
67
68
|
esgpull/models/__init__.py,sha256=rfa1yGLVDahFrnhq_8TPGzr7_oeBOFKNVD9EF0slUtY,725
|
|
68
69
|
esgpull/models/base.py,sha256=3nbR2lYMHWfovWz4EiAJ2bIvKpMadRvYZDdMRQDvN7M,1237
|
|
69
70
|
esgpull/models/dataset.py,sha256=1fOIVYIWKK5BivqvBpjfxrNpy9VfUHZng9Yc6ipPK1Q,905
|
|
@@ -76,8 +77,8 @@ esgpull/models/sql.py,sha256=Wlw9cGJ_buv51qC0grV8HvprEwoG92e2zagxkQXKosk,7481
|
|
|
76
77
|
esgpull/models/synda_file.py,sha256=6o5unPhzVJGnbpA2MxcS0r-hrBwocHYVnLrqjSGtmuk,2387
|
|
77
78
|
esgpull/models/tag.py,sha256=5CQDB9rAeCqog63ec9LPFN46HOFNkHPy-maY4gkBQ3E,461
|
|
78
79
|
esgpull/models/utils.py,sha256=exwlIlIKYjhhfUE82w1kU_HeSQOSY97PTvpkhW0udMA,1631
|
|
79
|
-
esgpull-0.7.
|
|
80
|
-
esgpull-0.7.
|
|
81
|
-
esgpull-0.7.
|
|
82
|
-
esgpull-0.7.
|
|
83
|
-
esgpull-0.7.
|
|
80
|
+
esgpull-0.7.2.dist-info/METADATA,sha256=s2paPlnLYJJUFDcqxtPnl3CZ2l2KDchcXjKUKyNxOFI,3052
|
|
81
|
+
esgpull-0.7.2.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
82
|
+
esgpull-0.7.2.dist-info/entry_points.txt,sha256=vyh7HvFrCp4iyMrTkDoSF3weaYrlNj2OJe0Fq5q4QB4,45
|
|
83
|
+
esgpull-0.7.2.dist-info/licenses/LICENSE,sha256=lUqGPGWDHHxjkUDuYgjLLY2XQXXn_EHU7fnrQWHGugc,1540
|
|
84
|
+
esgpull-0.7.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|