mapres 3.dev25__tar.gz → 3.dev26__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 (24) hide show
  1. {mapres-3.dev25/src/mapres.egg-info → mapres-3.dev26}/PKG-INFO +1 -1
  2. {mapres-3.dev25 → mapres-3.dev26}/pyproject.toml +1 -1
  3. {mapres-3.dev25 → mapres-3.dev26}/src/mapres/__init__.py +9 -0
  4. {mapres-3.dev25 → mapres-3.dev26}/src/mapres/resolver.py +2 -2
  5. mapres-3.dev26/src/mapres/utils.py +5 -0
  6. {mapres-3.dev25 → mapres-3.dev26/src/mapres.egg-info}/PKG-INFO +1 -1
  7. {mapres-3.dev25 → mapres-3.dev26}/src/mapres.egg-info/SOURCES.txt +1 -0
  8. {mapres-3.dev25 → mapres-3.dev26}/LICENSE +0 -0
  9. {mapres-3.dev25 → mapres-3.dev26}/README.md +0 -0
  10. {mapres-3.dev25 → mapres-3.dev26}/setup.cfg +0 -0
  11. {mapres-3.dev25 → mapres-3.dev26}/src/mapres/ast.py +0 -0
  12. {mapres-3.dev25 → mapres-3.dev26}/src/mapres/cache.py +0 -0
  13. {mapres-3.dev25 → mapres-3.dev26}/src/mapres/datamap.py +0 -0
  14. {mapres-3.dev25 → mapres-3.dev26}/src/mapres/evaluator.py +0 -0
  15. {mapres-3.dev25 → mapres-3.dev26}/src/mapres/exceptions.py +0 -0
  16. {mapres-3.dev25 → mapres-3.dev26}/src/mapres/layers.py +0 -0
  17. {mapres-3.dev25 → mapres-3.dev26}/src/mapres/maps/__init__.py +0 -0
  18. {mapres-3.dev25 → mapres-3.dev26}/src/mapres/maps/color.py +0 -0
  19. {mapres-3.dev25 → mapres-3.dev26}/src/mapres/maps/time.py +0 -0
  20. {mapres-3.dev25 → mapres-3.dev26}/src/mapres/parser.py +0 -0
  21. {mapres-3.dev25 → mapres-3.dev26}/src/mapres/tokenizer.py +0 -0
  22. {mapres-3.dev25 → mapres-3.dev26}/src/mapres.egg-info/dependency_links.txt +0 -0
  23. {mapres-3.dev25 → mapres-3.dev26}/src/mapres.egg-info/requires.txt +0 -0
  24. {mapres-3.dev25 → mapres-3.dev26}/src/mapres.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mapres
3
- Version: 3.dev25
3
+ Version: 3.dev26
4
4
  Summary: A powerfull mapping utility
5
5
  Author: iFamished
6
6
  License: MIT
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
7
 
8
8
  [project]
9
9
  name = "mapres"
10
- version = "3-dev.25"
10
+ version = "3-dev.26"
11
11
  description = "A powerfull mapping utility"
12
12
  readme = "README.md"
13
13
  requires-python = ">=3.9"
@@ -10,6 +10,7 @@ except PackageNotFoundError:
10
10
  from .resolver import MapResolver, res, setGlobalMaps
11
11
  from .datamap import DataMap, datamap, syntax
12
12
  from .layers import Layer, LayerStack
13
+ from .utils import rprint
13
14
 
14
15
  # maps
15
16
  from .maps.color import ColorMap, ascii_colors, mc_colors, strip_colors
@@ -28,6 +29,10 @@ maps = SimpleNamespace(
28
29
  time = time,
29
30
  )
30
31
 
32
+ utils = SimpleNamespace(
33
+ rprint = rprint,
34
+ )
35
+
31
36
  __all__ = [
32
37
  # core modules
33
38
  'MapResolver',
@@ -39,6 +44,9 @@ __all__ = [
39
44
  'LayerStack',
40
45
  'setGlobalMaps',
41
46
 
47
+ # utils
48
+ 'rprint',
49
+
42
50
  # maps
43
51
  'ColorMap',
44
52
  'ascii_colors',
@@ -49,4 +57,5 @@ __all__ = [
49
57
 
50
58
  # namespaces
51
59
  'maps',
60
+ 'utils',
52
61
  ]
@@ -129,7 +129,7 @@ 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
- """
132
+ '''
133
133
  Simple global resolution.
134
- """
134
+ '''
135
135
  return _DEFAULT_RESOLVER.res(text, **ctx)
@@ -0,0 +1,5 @@
1
+ from .resolver import res
2
+
3
+ def rprint(text: str, **ctx) -> None:
4
+ '''Simple global resolution and print'''
5
+ print(res(text, **ctx))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mapres
3
- Version: 3.dev25
3
+ Version: 3.dev26
4
4
  Summary: A powerfull mapping utility
5
5
  Author: iFamished
6
6
  License: MIT
@@ -11,6 +11,7 @@ src/mapres/layers.py
11
11
  src/mapres/parser.py
12
12
  src/mapres/resolver.py
13
13
  src/mapres/tokenizer.py
14
+ src/mapres/utils.py
14
15
  src/mapres.egg-info/PKG-INFO
15
16
  src/mapres.egg-info/SOURCES.txt
16
17
  src/mapres.egg-info/dependency_links.txt
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes