mapres 3.dev29__py3-none-any.whl → 3.dev30__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.
- mapres/__init__.py +1 -2
- mapres/resolver.py +6 -3
- {mapres-3.dev29.dist-info → mapres-3.dev30.dist-info}/METADATA +1 -1
- {mapres-3.dev29.dist-info → mapres-3.dev30.dist-info}/RECORD +7 -8
- mapres/utils.py +0 -5
- {mapres-3.dev29.dist-info → mapres-3.dev30.dist-info}/WHEEL +0 -0
- {mapres-3.dev29.dist-info → mapres-3.dev30.dist-info}/licenses/LICENSE +0 -0
- {mapres-3.dev29.dist-info → mapres-3.dev30.dist-info}/top_level.txt +0 -0
mapres/__init__.py
CHANGED
|
@@ -7,10 +7,9 @@ try:
|
|
|
7
7
|
except PackageNotFoundError:
|
|
8
8
|
__version__ = '0.0.0'
|
|
9
9
|
|
|
10
|
-
from .resolver import MapResolver, res, setGlobalMaps
|
|
10
|
+
from .resolver import MapResolver, res, rprint, setGlobalMaps
|
|
11
11
|
from .datamap import DataMap, datamap, syntax
|
|
12
12
|
from .layers import Layer, LayerStack
|
|
13
|
-
from .utils import rprint
|
|
14
13
|
|
|
15
14
|
# maps
|
|
16
15
|
from .maps.color import ColorMap, ascii_colors, mc_colors, strip_colors
|
mapres/resolver.py
CHANGED
|
@@ -129,9 +129,12 @@ def setGlobalMaps(maps, *, priority=0):
|
|
|
129
129
|
_DEFAULT_RESOLVER.layers.add_layer(maps, priority=priority)
|
|
130
130
|
|
|
131
131
|
def res(text: str, **ctx) -> str:
|
|
132
|
-
'''
|
|
133
|
-
Simple global resolution.
|
|
134
|
-
'''
|
|
132
|
+
'''Simple global resolution'''
|
|
135
133
|
return _DEFAULT_RESOLVER.res(text, **ctx)
|
|
136
134
|
|
|
135
|
+
def rprint(text: str, sep, end, file, flush, **ctx) -> None:
|
|
136
|
+
'''Simple global resolution and print'''
|
|
137
|
+
print(res(text, **ctx), sep=sep, end=end, file=file, flush=flush)
|
|
138
|
+
|
|
137
139
|
res.setGlobalMaps = setGlobalMaps
|
|
140
|
+
rprint.setGlobalMaps = setGlobalMaps
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
mapres/__init__.py,sha256=
|
|
1
|
+
mapres/__init__.py,sha256=n3kuRdCbniWtoRBBBbdyppb5sRK9eM_bRoQPJ3Sb378,1107
|
|
2
2
|
mapres/ast.py,sha256=6PcMkwtNHYD8xEkdyzDgn_mRTj1ZaWSyuHZK3BtXiuo,427
|
|
3
3
|
mapres/cache.py,sha256=hbvsoc6Qw3RhWAEfOOpKHtC7i9EomoUgWzyd4dnH71w,333
|
|
4
4
|
mapres/datamap.py,sha256=oWeNqBJGVF4wO5f3RqGoXV4nwQSQrDQ5LnCYoAXEfoY,5446
|
|
@@ -6,14 +6,13 @@ mapres/evaluator.py,sha256=MV5nyQJ0R40RX4CdXj-lXXKT6dEG_ocoGClM6kLs38U,4756
|
|
|
6
6
|
mapres/exceptions.py,sha256=D2XKnrMkZDyUXQt2PmaKbj08FObWU00yXKGHwNpjvww,222
|
|
7
7
|
mapres/layers.py,sha256=sFc1eUOBg2BoB2cBXIleq8RMYcg5GZpUoCnGh-uKN6U,1380
|
|
8
8
|
mapres/parser.py,sha256=q3PgyvXJn9c-EJJYyibw7sHJ0Y9soirgB10OyTKaT9s,3657
|
|
9
|
-
mapres/resolver.py,sha256=
|
|
9
|
+
mapres/resolver.py,sha256=3OkIKFtliQOC13abtmJrMSSRo9PgmPqcHTt2oAQwsS0,4127
|
|
10
10
|
mapres/tokenizer.py,sha256=FLrO4pNKEmsFTUXXOUQ-GLIozzs18hbMRmWV_ccwt7M,11095
|
|
11
|
-
mapres/utils.py,sha256=Bv8iEeK03QtGtqY9GnBAgE4Bul56mGvAkLt96z6kU2k,137
|
|
12
11
|
mapres/maps/__init__.py,sha256=lIRRfem1Fw4iynuwUQ7BY5qrC4fbJKxqLivao2_Dtm4,239
|
|
13
12
|
mapres/maps/color.py,sha256=noRTGFNo9xLl5YEhX0tttV6i_oDAiptXmRVnkr5EzwM,1348
|
|
14
13
|
mapres/maps/time.py,sha256=TyncycYoIGVZWps32qWlFy2a2hTayvZWVHu9uh2nid8,2050
|
|
15
|
-
mapres-3.
|
|
16
|
-
mapres-3.
|
|
17
|
-
mapres-3.
|
|
18
|
-
mapres-3.
|
|
19
|
-
mapres-3.
|
|
14
|
+
mapres-3.dev30.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
15
|
+
mapres-3.dev30.dist-info/METADATA,sha256=Ml_rQRs28tt1CrMzMhhcQX_zUpwyhurCdSALN-kxui4,1476
|
|
16
|
+
mapres-3.dev30.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
17
|
+
mapres-3.dev30.dist-info/top_level.txt,sha256=5LMVQqJdtyjxfzv7wJBOZ-360m0Yc79w_-Y7s3n6cTw,7
|
|
18
|
+
mapres-3.dev30.dist-info/RECORD,,
|
mapres/utils.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|