statezero 0.1.0b62__py3-none-any.whl → 0.1.0b63__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.
- statezero/core/classes.py +4 -4
- {statezero-0.1.0b62.dist-info → statezero-0.1.0b63.dist-info}/METADATA +1 -1
- {statezero-0.1.0b62.dist-info → statezero-0.1.0b63.dist-info}/RECORD +5 -5
- {statezero-0.1.0b62.dist-info → statezero-0.1.0b63.dist-info}/WHEEL +0 -0
- {statezero-0.1.0b62.dist-info → statezero-0.1.0b63.dist-info}/top_level.txt +0 -0
statezero/core/classes.py
CHANGED
|
@@ -4,7 +4,7 @@ from typing import Any, Dict, List, Literal, Optional, Set, Type, Union, Annotat
|
|
|
4
4
|
|
|
5
5
|
import jsonschema
|
|
6
6
|
from fastapi.encoders import jsonable_encoder
|
|
7
|
-
from pydantic import BaseModel, Field, field_validator
|
|
7
|
+
from pydantic import BaseModel, ConfigDict, Field, field_validator
|
|
8
8
|
from pydantic.dataclasses import dataclass
|
|
9
9
|
|
|
10
10
|
from statezero.core.types import ORMField
|
|
@@ -83,7 +83,7 @@ class FieldFormat(str, Enum):
|
|
|
83
83
|
MONEY = "money"
|
|
84
84
|
|
|
85
85
|
|
|
86
|
-
@dataclass
|
|
86
|
+
@dataclass(config=ConfigDict(arbitrary_types_allowed=True))
|
|
87
87
|
class AdditionalField:
|
|
88
88
|
"""
|
|
89
89
|
Represents configuration for an additional computed field in the schema.
|
|
@@ -95,7 +95,7 @@ class AdditionalField:
|
|
|
95
95
|
"""
|
|
96
96
|
|
|
97
97
|
name: str # The property/method name to pull from
|
|
98
|
-
field:
|
|
98
|
+
field: ORMField # The instantiated serializer field (e.g. CharField(max_length=255)) #type:ignore
|
|
99
99
|
title: Optional[str] # Optional display name override
|
|
100
100
|
|
|
101
101
|
class SchemaFieldMetadata(BaseModel):
|
|
@@ -259,7 +259,7 @@ class Display:
|
|
|
259
259
|
label: Label to show above the display
|
|
260
260
|
extra: Additional custom metadata passed to the component
|
|
261
261
|
"""
|
|
262
|
-
context_path: str
|
|
262
|
+
context_path: Optional[str] = None
|
|
263
263
|
display_component: str = "text"
|
|
264
264
|
label: Optional[str] = None
|
|
265
265
|
extra: Optional[Dict[str, Any]] = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: statezero
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0b63
|
|
4
4
|
Summary: Connect your Python backend to a modern JavaScript SPA frontend with 90% less complexity.
|
|
5
5
|
Author-email: Robert <robert.herring@statezero.dev>
|
|
6
6
|
Project-URL: homepage, https://www.statezero.dev
|
|
@@ -39,7 +39,7 @@ statezero/core/__init__.py,sha256=IaNGa9WGZ-2OopG8UTqmijDZcwpC8tIGrfkl_cvCjBk,10
|
|
|
39
39
|
statezero/core/actions.py,sha256=MO1NN5Vtc-nu1e43x32hHrEdPRXWTYRvbC5sKPZczXQ,5385
|
|
40
40
|
statezero/core/ast_parser.py,sha256=oKDchCrv2FDN2UsnC3mfI-6D3HiqXtlID5JLock6Aow,45382
|
|
41
41
|
statezero/core/ast_validator.py,sha256=130IMTemJnIWd3PQHTLZYLfMFBLMmkTm37ckwHpt-QY,12214
|
|
42
|
-
statezero/core/classes.py,sha256=
|
|
42
|
+
statezero/core/classes.py,sha256=UZugF4ZAqewyOtr_WMu0N9pa0U6bwTfEwYEML8Fq6qs,13272
|
|
43
43
|
statezero/core/config.py,sha256=LdFlGutkJF-rsIViJwbRHVOFKWzt-33Q0Inhcba8PnY,14875
|
|
44
44
|
statezero/core/context_storage.py,sha256=nyQX8dGavLeaFosApupLqsMmy1269Ederwz8PjRRjvE,846
|
|
45
45
|
statezero/core/event_bus.py,sha256=jqmzTTHJCqBoQ0OnDYWt5fbpNt_z1hgZu_2TdWZ2CP4,8303
|
|
@@ -51,7 +51,7 @@ statezero/core/process_request.py,sha256=s1yys2ms856KJxV-cIfnVIdMkrOW9nLfzyLor64
|
|
|
51
51
|
statezero/core/query_cache.py,sha256=zLRbvWw4H30Wn0JSPlPyNc1FVqhzFeu4n3dhCWILj4U,9155
|
|
52
52
|
statezero/core/telemetry.py,sha256=EV2yLV6WAS-MTYCQSRQadiMgOD_ViJ_qUspgvbD0GqA,7757
|
|
53
53
|
statezero/core/types.py,sha256=An57YP1sdd7u6eppXeKMoSudEn_6-Pb6UoC3IdR5E8w,916
|
|
54
|
-
statezero-0.1.
|
|
55
|
-
statezero-0.1.
|
|
56
|
-
statezero-0.1.
|
|
57
|
-
statezero-0.1.
|
|
54
|
+
statezero-0.1.0b63.dist-info/METADATA,sha256=HTBbii2bSOhFCMbb1ViV90PqzIK_tf12U0U8eB5096E,9872
|
|
55
|
+
statezero-0.1.0b63.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
56
|
+
statezero-0.1.0b63.dist-info/top_level.txt,sha256=UAuZYPKczradU1kcMQxsGjUzEW0qdgsqzhXyscrcLpw,10
|
|
57
|
+
statezero-0.1.0b63.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|