my.kython.konsume: move to core

This commit is contained in:
Dima Gerasimov 2020-10-29 01:14:38 +00:00 committed by karlicoss
parent cc127f1876
commit 655b86bb0a
4 changed files with 10 additions and 3 deletions

View file

@ -9,9 +9,9 @@ from typing import Dict, Iterator, Any
from ..common import cproperty, get_files
from ..error import Res, unwrap
from ..core.konsume import zoom, ignore, wrap
from kython import fget
from kython.konsume import zoom, ignore, wrap
# TODO remove
from kython.kdatetime import as_utc

View file

@ -12,7 +12,7 @@ from ..error import Res, unwrap
# TODO get rid of fget?
from kython import fget
from kython.konsume import zoom, wrap, ignore
from ..core.konsume import zoom, wrap, ignore
# TODO json type??

View file

@ -1,3 +1,10 @@
'''
Some experimental JSON parsing, basically to ensure that all data is consumed.
This can potentially allow both for safer defensive parsing, and let you know if the data started returning more data
TODO perhaps need to get some inspiration from linear logic to decide on a nice API...
'''
from collections import OrderedDict
from typing import Any, List

View file

@ -45,7 +45,7 @@ import pytz
from ..core import LazyLogger, Json
from ..core.common import isoparse
from ..error import Res, echain, sort_res_by
from ..kython.konsume import wrap, zoom, ignore, Zoomable, Wdict
from ..core.konsume import wrap, zoom, ignore, Zoomable, Wdict
logger = LazyLogger(__name__)