vizflow 0.5.15__py3-none-any.whl → 0.5.16__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.
vizflow/__init__.py CHANGED
@@ -5,7 +5,7 @@ Usage:
5
5
  import vizflow as vf
6
6
  """
7
7
 
8
- __version__ = "0.5.15"
8
+ __version__ = "0.5.16"
9
9
 
10
10
  from .config import Config, get_config, set_config
11
11
  from .io import (
vizflow/io.py CHANGED
@@ -48,12 +48,23 @@ def _resolve_schema(
48
48
 
49
49
  Returns:
50
50
  SchemaEvolution instance or None.
51
+
52
+ Raises:
53
+ ValueError: If schema_ref is a string but not found in the registry.
51
54
  """
52
55
  if schema_ref is None:
53
56
  return None
54
57
  if isinstance(schema_ref, SchemaEvolution):
55
58
  return schema_ref
56
- return get_schema(schema_ref)
59
+ schema = get_schema(schema_ref)
60
+ if schema is None:
61
+ from .schema_evolution import SCHEMAS
62
+
63
+ raise ValueError(
64
+ f"Unknown schema: {schema_ref!r}. "
65
+ f"Available: {list(SCHEMAS.keys())}"
66
+ )
67
+ return schema
57
68
 
58
69
 
59
70
  def _scan_file(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vizflow
3
- Version: 0.5.15
3
+ Version: 0.5.16
4
4
  Requires-Python: >=3.9
5
5
  Requires-Dist: polars>=0.20.0
6
6
  Provides-Extra: dev
@@ -1,11 +1,11 @@
1
- vizflow/__init__.py,sha256=6rvfNSHj6FPHSYMurMs2tRKjdBcNMqU5kSJOQL9GMgg,615
1
+ vizflow/__init__.py,sha256=-PVzaWXa5y5U-9UPHRNTA4OWf4gvoicgwl9IYCJI-I8,615
2
2
  vizflow/config.py,sha256=nPZPXlqQbaY8u_FAdtPShvb0mdx3e2TRaQ2CILzliAU,7192
3
- vizflow/io.py,sha256=bodtL01fxF_fIeuxQ9V74utZD3_yFWjCxPqV3jX4bjs,11821
3
+ vizflow/io.py,sha256=pXDwkqIxbZH5z5L-kygEYokfOiCMGh5L1q7D8l19O3E,12134
4
4
  vizflow/market.py,sha256=MtNz_nnZxC66Aq-i2PXEwaFCTknijFWYZUUv6798k2s,2493
5
5
  vizflow/ops.py,sha256=cUFeDdWfMk2hG8hpevTz_Dfnzk3fnhTI79UwMGzUkHw,10534
6
6
  vizflow/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  vizflow/schema_evolution.py,sha256=1aIQo1hy93yGx19zwU7JdnwNIG_OzBb3TXp8yvtBnz4,21313
8
8
  vizflow/viz.py,sha256=dzcY72hWMVbxWIyjwfUW3Ot3CunaP7O4GLVUzzOjkbY,1212
9
- vizflow-0.5.15.dist-info/METADATA,sha256=UZX3YXUK-V9r2WSY10d-9QJVga__mEor2qg_SBWLQVk,389
10
- vizflow-0.5.15.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
11
- vizflow-0.5.15.dist-info/RECORD,,
9
+ vizflow-0.5.16.dist-info/METADATA,sha256=FY6mFlU-Wm0D0SQDTXC8Qf2-mPZcocOK9H9iRphRGdE,389
10
+ vizflow-0.5.16.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
11
+ vizflow-0.5.16.dist-info/RECORD,,