syncmodels 0.1.341__py2.py3-none-any.whl → 0.1.342__py2.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.
- syncmodels/__init__.py +1 -1
- syncmodels/crawler.py +1 -1
- syncmodels/session/sql.py +10 -1
- syncmodels/storage.py +1 -1
- {syncmodels-0.1.341.dist-info → syncmodels-0.1.342.dist-info}/METADATA +2 -2
- {syncmodels-0.1.341.dist-info → syncmodels-0.1.342.dist-info}/RECORD +11 -11
- {syncmodels-0.1.341.dist-info → syncmodels-0.1.342.dist-info}/AUTHORS.rst +0 -0
- {syncmodels-0.1.341.dist-info → syncmodels-0.1.342.dist-info}/LICENSE +0 -0
- {syncmodels-0.1.341.dist-info → syncmodels-0.1.342.dist-info}/WHEEL +0 -0
- {syncmodels-0.1.341.dist-info → syncmodels-0.1.342.dist-info}/entry_points.txt +0 -0
- {syncmodels-0.1.341.dist-info → syncmodels-0.1.342.dist-info}/top_level.txt +0 -0
syncmodels/__init__.py
CHANGED
syncmodels/crawler.py
CHANGED
@@ -1947,7 +1947,7 @@ class MetaExtractPlugin(iPlugin):
|
|
1947
1947
|
# MAP = self.bot.parent.MAPPERS
|
1948
1948
|
geojson = data.get(GEOJSON_KEY) # TODO: fix, coords are tuples!
|
1949
1949
|
if geojson is None:
|
1950
|
-
log.
|
1950
|
+
log.debug("no geojson info: [%s]", data)
|
1951
1951
|
continue
|
1952
1952
|
kind = geojson["type"]
|
1953
1953
|
# TODO: use (slower) more general jinja render?
|
syncmodels/session/sql.py
CHANGED
@@ -3,6 +3,9 @@ import re
|
|
3
3
|
from itertools import chain
|
4
4
|
|
5
5
|
from agptools.helpers import parse_uri, build_uri, tf
|
6
|
+
from agptools.containers import overlap
|
7
|
+
from syncmodels.http import CONTENT_TYPE, APPLICATION_PYTHON
|
8
|
+
|
6
9
|
from syncmodels.definitions import (
|
7
10
|
KIND_KEY,
|
8
11
|
TABLE_KEY,
|
@@ -164,7 +167,7 @@ class iSQLSession(iSession):
|
|
164
167
|
|
165
168
|
async def get(self, url, headers=None, params=None, **kw):
|
166
169
|
headers = headers or {}
|
167
|
-
params = params or
|
170
|
+
params = params or kw["json"]["params"] # TODO: check with centesimal
|
168
171
|
|
169
172
|
_uri = parse_uri(url)
|
170
173
|
_uri["query_"].update(params)
|
@@ -190,6 +193,12 @@ class iSQLSession(iSession):
|
|
190
193
|
# {schema.names[i]: v for i, v in enumerate(row)} for row in data
|
191
194
|
# ]
|
192
195
|
|
196
|
+
overlap(
|
197
|
+
headers,
|
198
|
+
{
|
199
|
+
CONTENT_TYPE: APPLICATION_PYTHON,
|
200
|
+
},
|
201
|
+
)
|
193
202
|
response = iResponse(
|
194
203
|
status=200, headers=headers, links=None, real_url=url, body=body
|
195
204
|
)
|
syncmodels/storage.py
CHANGED
@@ -1186,7 +1186,7 @@ class WaveStorage(iWaves, iStorage):
|
|
1186
1186
|
if must_check:
|
1187
1187
|
t0 = time.time()
|
1188
1188
|
await prevously_inserted()
|
1189
|
-
if False or random.random() < 0.
|
1189
|
+
if False or random.random() < 0.05:
|
1190
1190
|
elapsed = time.time() - t0
|
1191
1191
|
log.info("[%s] prevously_inserted took: %s secs", uid, elapsed)
|
1192
1192
|
if elapsed > 1.0:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: syncmodels
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.342
|
4
4
|
Summary: Synchronizable Models
|
5
5
|
Home-page: https://github.com/asterio.gonzalez/syncmodels
|
6
6
|
Author: Asterio Gonzalez
|
@@ -18,7 +18,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
18
18
|
Requires-Python: >=3.6
|
19
19
|
License-File: LICENSE
|
20
20
|
License-File: AUTHORS.rst
|
21
|
-
Requires-Dist: agptools>=0.1.
|
21
|
+
Requires-Dist: agptools>=0.1.342
|
22
22
|
Requires-Dist: aiocache
|
23
23
|
Requires-Dist: aiohttp
|
24
24
|
Requires-Dist: Click
|
@@ -1,6 +1,6 @@
|
|
1
|
-
syncmodels/__init__.py,sha256=
|
1
|
+
syncmodels/__init__.py,sha256=KBpZRQtPAp9QZRGYrhYbVtV2U5L5_46b333KNp6y6PU,142
|
2
2
|
syncmodels/context.py,sha256=k1Gs_ip9BfyRFpyRnzqYvRDKo0sYBqJsh6z9sWln9oE,451
|
3
|
-
syncmodels/crawler.py,sha256=
|
3
|
+
syncmodels/crawler.py,sha256=ITKxBrcaLrkuQv4w93sMsCRVu7sFKfqrI02TKrAetw4,94497
|
4
4
|
syncmodels/crud.py,sha256=oZIcwEKR2i-lesEF_059Y4yThohd9m7gs6R6xYgLH-I,15351
|
5
5
|
syncmodels/definitions.py,sha256=w-3TrSomp9T8OzLmJhKeZQDzrUIJLKldyh1lzlE7Yj0,5476
|
6
6
|
syncmodels/exceptions.py,sha256=ZLAwu19cs2UN2Sv3jaLnixT_jRI7T42TfyutCkUsuIk,685
|
@@ -11,7 +11,7 @@ syncmodels/registry.py,sha256=YaQtgbSwa0je1MpCcVHALI3_b85vrddyOlhsnrUcKZs,8224
|
|
11
11
|
syncmodels/requests.py,sha256=wWoC5hPDm1iBM_zrlyKRauzhXgdKR3pT5RqyC-5UZhQ,538
|
12
12
|
syncmodels/runner.py,sha256=IHDKuQ3yJ1DN9wktMiIrerPepYX61tc3AzbFfuUqEFw,5454
|
13
13
|
syncmodels/schema.py,sha256=uinUt8Asq_x7xa6MKWVXNyoWO6gKocjGPppjimaXzEU,2492
|
14
|
-
syncmodels/storage.py,sha256=
|
14
|
+
syncmodels/storage.py,sha256=9Tn9uohZB4ZrjZlwznDSg-e5duAdauJPqv3Iar2jkmw,74908
|
15
15
|
syncmodels/syncmodels.py,sha256=jcUxVbv1hrx5hI81VCO1onIM6WyORTqJVPwIqlPocOc,10596
|
16
16
|
syncmodels/timequeue.py,sha256=YRd3ULRaIhoszaBsYhfr0epMqAbL6-NwVEtScjUYttM,595
|
17
17
|
syncmodels/wave.py,sha256=Gra22BLiA9z2nF-6diXpjAc4GZv9nebmyvHxdAfXec4,7764
|
@@ -300,13 +300,13 @@ syncmodels/model/schema_org/xpathtype.py,sha256=D8gKiCrGSSuUVYw7BIWmOIUbKATfv2Ip
|
|
300
300
|
syncmodels/session/__init__.py,sha256=uy9nMxUUT6VeExOLLzr5Zebe7LvP67WY34WzOs67WB4,15765
|
301
301
|
syncmodels/session/http.py,sha256=tf7z0ccAEYoCOZT4Ukv3NBXz9hUO3vs2s9bm491pCj8,1480
|
302
302
|
syncmodels/session/postgresql.py,sha256=ZMIu1Rv93pKfvFlovFBmWArzlrT2xaQWNYGZT_LW61k,175
|
303
|
-
syncmodels/session/sql.py,sha256=
|
303
|
+
syncmodels/session/sql.py,sha256=BL-vaR__6DdDc_vxfTvnvRD9rXXEALKyc-Xg6j4nUpw,6851
|
304
304
|
syncmodels/session/sqlite.py,sha256=nCDjopLiBpX1F10qkKoARM7JrVdIpJ1WdGOduFVxaiA,2080
|
305
305
|
syncmodels/source/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
306
|
-
syncmodels-0.1.
|
307
|
-
syncmodels-0.1.
|
308
|
-
syncmodels-0.1.
|
309
|
-
syncmodels-0.1.
|
310
|
-
syncmodels-0.1.
|
311
|
-
syncmodels-0.1.
|
312
|
-
syncmodels-0.1.
|
306
|
+
syncmodels-0.1.342.dist-info/AUTHORS.rst,sha256=3ZPoqg8Aav8DSYKd0fwcwn4_5HwSiMLart0E5Un00-U,168
|
307
|
+
syncmodels-0.1.342.dist-info/LICENSE,sha256=uzMOYtIiUsnsD0xHJR7aJWJ4v_bvan0kTnvufy5eNoA,1075
|
308
|
+
syncmodels-0.1.342.dist-info/METADATA,sha256=XZynUjEQ7Ii6K4jQUchBf89Hg3ztVzgxVndZcZgxU3A,2700
|
309
|
+
syncmodels-0.1.342.dist-info/WHEEL,sha256=SrDKpSbFN1G94qcmBqS9nyHcDMp9cUS9OC06hC0G3G0,109
|
310
|
+
syncmodels-0.1.342.dist-info/entry_points.txt,sha256=dMnigjZsHMxTwXiiZyBZdBbMYE0-hY3L5cG15EcDAzw,51
|
311
|
+
syncmodels-0.1.342.dist-info/top_level.txt,sha256=2DfQ9NuAhKMjY3BvQGVBA7GfqTm7EoHNbaehSUiqiHQ,11
|
312
|
+
syncmodels-0.1.342.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|