mapres 3.dev29__py3-none-any.whl → 3.dev32__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 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
@@ -0,0 +1,33 @@
1
+ Metadata-Version: 2.4
2
+ Name: mapres
3
+ Version: 3.dev32
4
+ Summary: A powerfull mapping utility
5
+ Author: iFamished
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/iFamished/mapres
8
+ Project-URL: Documentation, https://github.com/iFamished/mapres
9
+ Project-URL: Source, https://github.com/iFamished/mapres
10
+ Project-URL: Issues, https://github.com/iFamished/mapres/issues
11
+ Keywords: templating,automation,server-management
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Development Status :: 4 - Beta
19
+ Classifier: Intended Audience :: Developers
20
+ Classifier: Topic :: Software Development :: Libraries
21
+ Classifier: Topic :: System :: Systems Administration
22
+ Requires-Python: >=3.9
23
+ Description-Content-Type: text/markdown
24
+ License-File: LICENSE
25
+ Dynamic: license-file
26
+
27
+ # MapRes
28
+ A powerful string-mapping utility for many use cases.
29
+
30
+ ## Installation
31
+ ```bash
32
+ pip install mapres
33
+ ```
@@ -1,4 +1,4 @@
1
- mapres/__init__.py,sha256=UuB43pqTwpqW1bdui9C6E7KmFBS1bSf9Xja6zaf6GT0,1125
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=2-VAFDGKbp93YucHBaGnkL06p2GyKkuqUVgRljpvXZU,3924
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.dev29.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
16
- mapres-3.dev29.dist-info/METADATA,sha256=XC6Agd9ck7NRBrnCNpAb6n5qEJY9NTlMu4A8o_7t_z8,1476
17
- mapres-3.dev29.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
18
- mapres-3.dev29.dist-info/top_level.txt,sha256=5LMVQqJdtyjxfzv7wJBOZ-360m0Yc79w_-Y7s3n6cTw,7
19
- mapres-3.dev29.dist-info/RECORD,,
14
+ mapres-3.dev32.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
15
+ mapres-3.dev32.dist-info/METADATA,sha256=HKpDKFYjCSWc0DpNiGmJta38lF6Vy5kd9VJ4xyUrwJY,1128
16
+ mapres-3.dev32.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
17
+ mapres-3.dev32.dist-info/top_level.txt,sha256=5LMVQqJdtyjxfzv7wJBOZ-360m0Yc79w_-Y7s3n6cTw,7
18
+ mapres-3.dev32.dist-info/RECORD,,
mapres/utils.py DELETED
@@ -1,5 +0,0 @@
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,47 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: mapres
3
- Version: 3.dev29
4
- Summary: A powerfull mapping utility
5
- Author: iFamished
6
- License: MIT
7
- Project-URL: Homepage, https://github.com/iFamishedX/mapres
8
- Project-URL: Documentation, https://github.com/iFamishedX/mapres
9
- Project-URL: Source, https://github.com/iFamishedX/mapres
10
- Project-URL: Issues, https://github.com/iFamishedX/mapres/issues
11
- Keywords: templating,automation,server-management,hungerlib
12
- Classifier: Programming Language :: Python :: 3
13
- Classifier: Programming Language :: Python :: 3.10
14
- Classifier: Programming Language :: Python :: 3.11
15
- Classifier: Programming Language :: Python :: 3.12
16
- Classifier: License :: OSI Approved :: MIT License
17
- Classifier: Operating System :: OS Independent
18
- Classifier: Development Status :: 4 - Beta
19
- Classifier: Intended Audience :: Developers
20
- Classifier: Topic :: Software Development :: Libraries
21
- Classifier: Topic :: System :: Systems Administration
22
- Requires-Python: >=3.9
23
- Description-Content-Type: text/markdown
24
- License-File: LICENSE
25
- Requires-Dist: requests
26
- Requires-Dist: mcrcon
27
- Requires-Dist: PyYaml
28
- Dynamic: license-file
29
-
30
- # HungerLib
31
-
32
- A powerful automation library for Pterodactyl panlels.
33
- Provides clean APIs for RCON, scheduling, panel integration, and server orchestration.
34
-
35
- ## Features
36
-
37
- - Simple RCON wrapper
38
- - Pterodactyl API helpers
39
- - Server orchestration utilities
40
- - Scheduler utilities
41
- - Logging helpers
42
- - Zero external configuration required
43
-
44
- ## Installation
45
-
46
- ```bash
47
- pip install hungerlib