omlish 0.0.0.dev198__py3-none-any.whl → 0.0.0.dev200__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
omlish/__about__.py CHANGED
@@ -1,5 +1,5 @@
1
- __version__ = '0.0.0.dev198'
2
- __revision__ = '83b207af0d6565ce4a694c6219f9c156206d6716'
1
+ __version__ = '0.0.0.dev200'
2
+ __revision__ = '2c496f686e6c5d735b06d5836f93f26d8f63cf4e'
3
3
 
4
4
 
5
5
  #
omlish/codecs/registry.py CHANGED
@@ -124,8 +124,13 @@ REGISTRY = CodecRegistry(
124
124
  ],
125
125
  )
126
126
 
127
- register = REGISTRY.register
128
- lookup = REGISTRY.lookup
127
+
128
+ def register(*codecs: Codec | LazyLoadedCodec) -> CodecRegistry:
129
+ return REGISTRY.register(*codecs)
130
+
131
+
132
+ def lookup(name_or_alias: str) -> Codec:
133
+ return REGISTRY.lookup(name_or_alias)
129
134
 
130
135
 
131
136
  ##
omlish/configs/all.py ADDED
@@ -0,0 +1,43 @@
1
+ # ruff: noqa: I001
2
+ from .formats import ( # noqa
3
+ ConfigData as Data,
4
+
5
+ ConfigLoader as Loader,
6
+
7
+ ConfigRenderer as Renderer,
8
+
9
+ ObjConfigData as ObjData,
10
+
11
+ JsonConfigData as JsonData,
12
+ JsonConfigLoader as JsonLoader,
13
+ JsonConfigRenderer as JsonRenderer,
14
+
15
+ TomlConfigData as TomlData,
16
+ TomlConfigLoader as TomlLoader,
17
+ TomlConfigRenderer as TomlRenderer,
18
+
19
+ YamlConfigData as YamlData,
20
+ YamlConfigLoader as YamlLoader,
21
+ YamlConfigRenderer as YamlRenderer,
22
+
23
+ IniConfigData as IniData,
24
+ IniConfigLoader as IniLoader,
25
+ IniConfigRenderer as IniRenderer,
26
+
27
+ SwitchedConfigFileLoader as SwitchedFileLoader,
28
+
29
+ DEFAULT_CONFIG_LOADERS as DEFAULT_LOADERS,
30
+ DEFAULT_CONFIG_LOADER as DEFAULT_LOADER,
31
+ DEFAULT_CONFIG_FILE_LOADER as DEFAULT_FILE_LOADER,
32
+
33
+ SwitchedConfigRenderer as SwitchedRenderer,
34
+
35
+ DEFAULT_CONFIG_RENDERERS as DEFAULT_RENDERERS,
36
+ DEFAULT_CONFIG_RENDERER as DEFAULT_RENDERER,
37
+ )
38
+
39
+ from .types import ( # noqa
40
+ ConfigMap as Map,
41
+ )
42
+
43
+ from .processing import all as processing # noqa
@@ -0,0 +1,33 @@
1
+ # ruff: noqa: I001
2
+ from .flattening import ( # noqa
3
+ ConfigFlattening as Flattening,
4
+ )
5
+
6
+ from .inheritance import ( # noqa
7
+ build_config_inherited_values as build_inherited_values,
8
+ )
9
+
10
+ from .matching import ( # noqa
11
+ MatchingConfigRewriter as MatchingRewriter,
12
+
13
+ matched_config_rewrite as matched_rewrite,
14
+ )
15
+
16
+ from .names import ( # noqa
17
+ build_config_named_children as build_named_children,
18
+ )
19
+
20
+ from .rewriting import ( # noqa
21
+ ConfigRewriterItem as RewriterItem,
22
+ ConfigRewriterPath as RewriterPath,
23
+
24
+ RawConfigMetadata as RawMetadata,
25
+
26
+ ConfigRewriter as Rewriter,
27
+ )
28
+
29
+ from .strings import ( # noqa
30
+ StringConfigRewriter as StringRewriter,
31
+
32
+ format_config_strings as format_strings,
33
+ )
omlish/formats/codecs.py CHANGED
@@ -20,7 +20,8 @@ def make_object_codec(
20
20
  dumps: ta.Callable,
21
21
  loads: ta.Callable,
22
22
  *,
23
- input: rfl.Type = rfl.type_(ta.Any), # noqa
23
+ input: rfl.Type, # noqa
24
+ output: rfl.Type = rfl.type_(ta.Any),
24
25
  aliases: ta.Collection[str] | None = None,
25
26
  ) -> ObjectCodecT:
26
27
  return cls(
@@ -28,7 +29,7 @@ def make_object_codec(
28
29
  aliases=aliases,
29
30
 
30
31
  input=input,
31
- output=bytes,
32
+ output=output,
32
33
 
33
34
  new=lambda: codecs.FnPairEagerCodec.of(dumps, loads),
34
35
  )
@@ -52,6 +53,7 @@ def make_bytes_object_codec(
52
53
  name,
53
54
  dumps,
54
55
  loads,
56
+ input=bytes,
55
57
  **kwargs,
56
58
  )
57
59
 
@@ -74,6 +76,7 @@ def make_str_object_codec(
74
76
  name,
75
77
  dumps,
76
78
  loads,
79
+ input=str,
77
80
  **kwargs,
78
81
  )
79
82
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: omlish
3
- Version: 0.0.0.dev198
3
+ Version: 0.0.0.dev200
4
4
  Summary: omlish
5
5
  Author: wrmsr
6
6
  License: BSD-3-Clause
@@ -1,5 +1,5 @@
1
1
  omlish/.manifests.json,sha256=dyIpveH7Z8OnQp2pTn6NVv7LCDXVrozJWAzbk8PBavg,7950
2
- omlish/__about__.py,sha256=2l-ZMOw9Ow1ATtnEq25MKztlw3j8x4D9r2OdqjJH9WQ,3409
2
+ omlish/__about__.py,sha256=AJX5iNOlWrDlDBEKE35thbObkh7MHjKwPM855AMs7ls,3409
3
3
  omlish/__init__.py,sha256=SsyiITTuK0v74XpKV8dqNaCmjOlan1JZKrHQv5rWKPA,253
4
4
  omlish/c3.py,sha256=ubu7lHwss5V4UznbejAI0qXhXahrU01MysuHOZI9C4U,8116
5
5
  omlish/cached.py,sha256=UI-XTFBwA6YXWJJJeBn-WkwBkfzDjLBBaZf4nIJA9y0,510
@@ -121,7 +121,7 @@ omlish/codecs/base.py,sha256=uFrDvP7SZdeBbpuUzGHvyOdFNAmhjkBG2cVaVydRsjw,2221
121
121
  omlish/codecs/bytes.py,sha256=jlZ87OmZ52HhQDNyL87R3OIviK2qV5iU2jZYOTOLWjk,2157
122
122
  omlish/codecs/chain.py,sha256=DrBi5vbaFfObfoppo6alwOmyW2XbrH2051cjExwr2Gs,527
123
123
  omlish/codecs/funcs.py,sha256=p4imNt7TobyZVXWC-WhntHVu9KfJrO4QwdtPRh-cVOk,850
124
- omlish/codecs/registry.py,sha256=8ySUG-kwGJoUN1HCRnz8VjcykB0wlIzoWF5WTAE1ny0,3860
124
+ omlish/codecs/registry.py,sha256=Ald3fs707cJsUovYjNmxdT2zAQworvDxwMFk7DBT8r0,3995
125
125
  omlish/codecs/standard.py,sha256=eiZ4u9ep0XrA4Z_D1zJI0vmWyuN8HLrX4Se_r_Cq_ZM,60
126
126
  omlish/codecs/text.py,sha256=JzrdwMpQPo2NBBg3K1EZszzQy5vEWmd82SIerJd4yeQ,5723
127
127
  omlish/collections/__init__.py,sha256=zeUvcAz073ekko37QKya6sElTMfKTuF1bKrdbMtaRpI,2142
@@ -150,11 +150,13 @@ omlish/concurrent/executors.py,sha256=FYKCDYYuj-OgMa8quLsA47SfFNX3KDJvRENVk8NDsr
150
150
  omlish/concurrent/futures.py,sha256=J2s9wYURUskqRJiBbAR0PNEAp1pXbIMYldOVBTQduQY,4239
151
151
  omlish/concurrent/threadlets.py,sha256=JfirbTDJgy9Ouokz_VmHeAAPS7cih8qMUJrN-owwXD4,2423
152
152
  omlish/configs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
153
+ omlish/configs/all.py,sha256=kziwjzUBkf8AT0w7Pq7JX2jtkQVOQ5R1wJyn6hfTN5k,1055
153
154
  omlish/configs/classes.py,sha256=GLbB8xKjHjjoUQRCUQm3nEjM8z1qNTx9gPV7ODSt5dg,1317
154
155
  omlish/configs/formats.py,sha256=RJw4Rzp7vlTd5YyAvpAoruQnk45v8dGPtPWwqH7aYyE,5301
155
156
  omlish/configs/nginx.py,sha256=XuX9yyb0_MwkJ8esKiMS9gFkqHUPza_uCprhnWykNy8,2051
156
157
  omlish/configs/types.py,sha256=t5_32MVRSKxbxor1hl1wRGKYm75F6Atisd_RYsN5ELU,103
157
158
  omlish/configs/processing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
159
+ omlish/configs/processing/all.py,sha256=roIQ7EZJXSzsyUxNHNJaZsXcD2jdT46Ly1XXfG8xEcI,722
158
160
  omlish/configs/processing/flattening.py,sha256=1duZH5zbrGuoYqaJco5LN5qx6e76QP5pHbIyItkQsFY,5021
159
161
  omlish/configs/processing/inheritance.py,sha256=lFD8eWRE0cG0Z3-eCu7pMsP2skWhUNaoAtWi9fNfn8k,1218
160
162
  omlish/configs/processing/matching.py,sha256=JMS9r58pMCBbpewOhPY5oPtBu3uD6z6YBfZq4jnLwBE,1236
@@ -220,7 +222,7 @@ omlish/docker/timebomb.py,sha256=A_pgIDaXKsQwPiikrCTgIJl91gwYqkPGFY6j-Naq07Q,342
220
222
  omlish/formats/__init__.py,sha256=T0AG1gFnqQ5JiHN0UPQjQ-7g5tnxMIG-mgOvMYExYAM,21
221
223
  omlish/formats/cbor.py,sha256=o_Hbe4kthO9CeXK-FySrw0dHVlrdyTo2Y8PpGRDfZ3c,514
222
224
  omlish/formats/cloudpickle.py,sha256=16si4yUp_pAdDWGECAWf6HLA2PwSANGGgDoMLGZUem8,579
223
- omlish/formats/codecs.py,sha256=6AbKIz_gl_om36-7qsutybYzK8cJP3LzwC9YJlwCPOA,1590
225
+ omlish/formats/codecs.py,sha256=ip4TLOyWAaUyEJmrIOzuLMtjRdgaMEsC6JeAlcCVi28,1657
224
226
  omlish/formats/dotenv.py,sha256=qoDG4Ayu7B-8LjBBhcmNiLZW0_9LgCi3Ri2aPo9DEQ8,19314
225
227
  omlish/formats/json5.py,sha256=odpZIShlUpv19aACWe58SoMPcv0AHKIa6zSMjlKgaMI,515
226
228
  omlish/formats/pickle.py,sha256=jdp4E9WH9qVPBE3sSqbqDtUo18RbTSIiSpSzJ-IEVZw,529
@@ -607,9 +609,9 @@ omlish/text/indent.py,sha256=YjtJEBYWuk8--b9JU_T6q4yxV85_TR7VEVr5ViRCFwk,1336
607
609
  omlish/text/minja.py,sha256=jZC-fp3Xuhx48ppqsf2Sf1pHbC0t8XBB7UpUUoOk2Qw,5751
608
610
  omlish/text/parts.py,sha256=7vPF1aTZdvLVYJ4EwBZVzRSy8XB3YqPd7JwEnNGGAOo,6495
609
611
  omlish/text/random.py,sha256=jNWpqiaKjKyTdMXC-pWAsSC10AAP-cmRRPVhm59ZWLk,194
610
- omlish-0.0.0.dev198.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
611
- omlish-0.0.0.dev198.dist-info/METADATA,sha256=DdG84lagt0fqcKUx-5Y5WBbViQubCiig7xFSBZNQu_o,4264
612
- omlish-0.0.0.dev198.dist-info/WHEEL,sha256=A3WOREP4zgxI0fKrHUG8DC8013e3dK3n7a6HDbcEIwE,91
613
- omlish-0.0.0.dev198.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
614
- omlish-0.0.0.dev198.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
615
- omlish-0.0.0.dev198.dist-info/RECORD,,
612
+ omlish-0.0.0.dev200.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
613
+ omlish-0.0.0.dev200.dist-info/METADATA,sha256=ZStmAEKO4tvTAtBeGJDad2z_76jk0FY_eVEe6fcobNw,4264
614
+ omlish-0.0.0.dev200.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
615
+ omlish-0.0.0.dev200.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
616
+ omlish-0.0.0.dev200.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
617
+ omlish-0.0.0.dev200.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.7.0)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5