chalkpy 2.96.2__py3-none-any.whl → 2.96.4__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.
- chalk/_gen/chalk/python/v1/types_pb2.py +31 -25
- chalk/_gen/chalk/python/v1/types_pb2.pyi +23 -4
- chalk/_version.py +1 -1
- chalk/functions/__init__.py +47 -0
- {chalkpy-2.96.2.dist-info → chalkpy-2.96.4.dist-info}/METADATA +1 -1
- {chalkpy-2.96.2.dist-info → chalkpy-2.96.4.dist-info}/RECORD +9 -9
- {chalkpy-2.96.2.dist-info → chalkpy-2.96.4.dist-info}/WHEEL +0 -0
- {chalkpy-2.96.2.dist-info → chalkpy-2.96.4.dist-info}/entry_points.txt +0 -0
- {chalkpy-2.96.2.dist-info → chalkpy-2.96.4.dist-info}/top_level.txt +0 -0
|
@@ -17,7 +17,7 @@ from chalk._gen.chalk.arrow.v1 import arrow_pb2 as chalk_dot_arrow_dot_v1_dot_ar
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
20
|
-
b'\n\x1b\x63halk/python/v1/types.proto\x12\x0f\x63halk.python.v1\x1a\x1a\x63halk/arrow/v1/arrow.proto"2\n\x05TySet\x12)\n\x05items\x18\x01 \x01(\x0b\x32\x13.chalk.python.v1.TyR\x05items"3\n\x06TyList\x12)\n\x05items\x18\x01 \x01(\x0b\x32\x13.chalk.python.v1.TyR\x05items"7\n\nTyIterable\x12)\n\x05items\x18\x01 \x01(\x0b\x32\x13.chalk.python.v1.TyR\x05items"8\n\x0bTyGenerator\x12)\n\x05items\x18\x01 \x01(\x0b\x32\x13.chalk.python.v1.TyR\x05items"(\n\nTyDatetime\x12\x13\n\x02tz\x18\x01 \x01(\tH\x00R\x02tz\x88\x01\x01\x42\x05\n\x03_tz"Z\n\x06TyDict\x12%\n\x03key\x18\x01 \x01(\x0b\x32\x13.chalk.python.v1.TyR\x03key\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x13.chalk.python.v1.TyR\x05value"U\n\x07TyTuple\x12)\n\x05\x66ixed\x18\x01 \x03(\x0b\x32\x13.chalk.python.v1.TyR\x05\x66ixed\x12\x1f\n\x0bis_variable\x18\x02 \x01(\x08R\nisVariable"\
|
|
20
|
+
b'\n\x1b\x63halk/python/v1/types.proto\x12\x0f\x63halk.python.v1\x1a\x1a\x63halk/arrow/v1/arrow.proto"2\n\x05TySet\x12)\n\x05items\x18\x01 \x01(\x0b\x32\x13.chalk.python.v1.TyR\x05items"3\n\x06TyList\x12)\n\x05items\x18\x01 \x01(\x0b\x32\x13.chalk.python.v1.TyR\x05items"7\n\nTyIterable\x12)\n\x05items\x18\x01 \x01(\x0b\x32\x13.chalk.python.v1.TyR\x05items"8\n\x0bTyGenerator\x12)\n\x05items\x18\x01 \x01(\x0b\x32\x13.chalk.python.v1.TyR\x05items"(\n\nTyDatetime\x12\x13\n\x02tz\x18\x01 \x01(\tH\x00R\x02tz\x88\x01\x01\x42\x05\n\x03_tz"Z\n\x06TyDict\x12%\n\x03key\x18\x01 \x01(\x0b\x32\x13.chalk.python.v1.TyR\x03key\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x13.chalk.python.v1.TyR\x05value"U\n\x07TyTuple\x12)\n\x05\x66ixed\x18\x01 \x03(\x0b\x32\x13.chalk.python.v1.TyR\x05\x66ixed\x12\x1f\n\x0bis_variable\x18\x02 \x01(\x08R\nisVariable"E\n\x0cStringTyPair\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12#\n\x02ty\x18\x02 \x01(\x0b\x32\x13.chalk.python.v1.TyR\x02ty"\xf1\x01\n\x0fTyLogicalStruct\x12H\n\x06\x66ields\x18\x01 \x03(\x0b\x32,.chalk.python.v1.TyLogicalStruct.FieldsEntryB\x02\x18\x01R\x06\x66ields\x12\x44\n\x0eordered_fields\x18\x02 \x03(\x0b\x32\x1d.chalk.python.v1.StringTyPairR\rorderedFields\x1aN\n\x0b\x46ieldsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x13.chalk.python.v1.TyR\x05value:\x02\x38\x01"\xd6\x02\n\x0eTyFeatureClass\x12\x33\n\x15\x63onstructor_namespace\x18\x01 \x01(\tR\x14\x63onstructorNamespace\x12`\n\x0f\x61ssigned_fields\x18\x02 \x03(\x0b\x32\x33.chalk.python.v1.TyFeatureClass.AssignedFieldsEntryB\x02\x18\x01R\x0e\x61ssignedFields\x12U\n\x17ordered_assigned_fields\x18\x03 \x03(\x0b\x32\x1d.chalk.python.v1.StringTyPairR\x15orderedAssignedFields\x1aV\n\x13\x41ssignedFieldsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x13.chalk.python.v1.TyR\x05value:\x02\x38\x01"\x84\x01\n\x06TyEnum\x12\x16\n\x06module\x18\x01 \x01(\tR\x06module\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12)\n\x05\x62\x61ses\x18\x03 \x03(\x0b\x32\x13.chalk.python.v1.TyR\x05\x62\x61ses\x12#\n\x02ty\x18\x04 \x01(\x0b\x32\x13.chalk.python.v1.TyR\x02ty"\x97\n\n\x02Ty\x12\x1a\n\x08nullable\x18\x01 \x01(\x08R\x08nullable\x12\x31\n\x03int\x18\x02 \x01(\x0b\x32\x1d.chalk.python.v1.EmptyMessageH\x00R\x03int\x12\x31\n\x03str\x18\x03 \x01(\x0b\x32\x1d.chalk.python.v1.EmptyMessageH\x00R\x03str\x12\x33\n\x04\x62ool\x18\x04 \x01(\x0b\x32\x1d.chalk.python.v1.EmptyMessageH\x00R\x04\x62ool\x12\x35\n\x05\x66loat\x18\x05 \x01(\x0b\x32\x1d.chalk.python.v1.EmptyMessageH\x00R\x05\x66loat\x12-\n\x04list\x18\x06 \x01(\x0b\x32\x17.chalk.python.v1.TyListH\x00R\x04list\x12*\n\x03set\x18\x07 \x01(\x0b\x32\x16.chalk.python.v1.TySetH\x00R\x03set\x12\x33\n\x04none\x18\x08 \x01(\x0b\x32\x1d.chalk.python.v1.EmptyMessageH\x00R\x04none\x12\x31\n\x03\x61ny\x18\t \x01(\x0b\x32\x1d.chalk.python.v1.EmptyMessageH\x00R\x03\x61ny\x12\x39\n\x08iterable\x18\n \x01(\x0b\x32\x1b.chalk.python.v1.TyIterableH\x00R\x08iterable\x12\x39\n\x08\x64\x61tetime\x18\x0b \x01(\x0b\x32\x1b.chalk.python.v1.TyDatetimeH\x00R\x08\x64\x61tetime\x12=\n\ttimedelta\x18\x0c \x01(\x0b\x32\x1d.chalk.python.v1.EmptyMessageH\x00R\ttimedelta\x12\x33\n\x04\x64\x61te\x18\r \x01(\x0b\x32\x1d.chalk.python.v1.EmptyMessageH\x00R\x04\x64\x61te\x12\x30\n\x05tuple\x18\x0e \x01(\x0b\x32\x18.chalk.python.v1.TyTupleH\x00R\x05tuple\x12-\n\x04\x64ict\x18\x0f \x01(\x0b\x32\x17.chalk.python.v1.TyDictH\x00R\x04\x64ict\x12\x35\n\x05\x62ytes\x18\x10 \x01(\x0b\x32\x1d.chalk.python.v1.EmptyMessageH\x00R\x05\x62ytes\x12I\n\x0elogical_struct\x18\x11 \x01(\x0b\x32 .chalk.python.v1.TyLogicalStructH\x00R\rlogicalStruct\x12\x46\n\rfeature_class\x18\x12 \x01(\x0b\x32\x1f.chalk.python.v1.TyFeatureClassH\x00R\x0c\x66\x65\x61tureClass\x12-\n\x04\x65num\x18\x13 \x01(\x0b\x32\x17.chalk.python.v1.TyEnumH\x00R\x04\x65num\x12J\n\x10sequence_matcher\x18\x14 \x01(\x0b\x32\x1d.chalk.python.v1.EmptyMessageH\x00R\x0fsequenceMatcher\x12<\n\tgenerator\x18\x15 \x01(\x0b\x32\x1c.chalk.python.v1.TyGeneratorH\x00R\tgenerator\x12\x35\n\x05never\x18\x16 \x01(\x0b\x32\x1d.chalk.python.v1.EmptyMessageH\x00R\x05never\x12U\n\x16requests_http_response\x18\x17 \x01(\x0b\x32\x1d.chalk.python.v1.EmptyMessageH\x00R\x14requestsHttpResponseB\x04\n\x02ty"\x0e\n\x0c\x45mptyMessage"g\n\rSymbolicConst\x12#\n\x02ty\x18\x01 \x01(\x0b\x32\x13.chalk.python.v1.TyR\x02ty\x12\x31\n\x05value\x18\x02 \x01(\x0b\x32\x1b.chalk.arrow.v1.ScalarValueR\x05value":\n\x0c\x43odeVariable\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x16\n\x06module\x18\x02 \x01(\tR\x06module"\x84\x01\n\x11\x43odeVariableValue\x12\x39\n\x08variable\x18\x01 \x01(\x0b\x32\x1d.chalk.python.v1.CodeVariableR\x08variable\x12\x34\n\x05value\x18\x02 \x01(\x0b\x32\x1e.chalk.python.v1.SymbolicConstR\x05value"\x9e\x02\n\x13GlobalVariablesInfo\x12I\n\x0e\x63ode_variables\x18\x01 \x03(\x0b\x32".chalk.python.v1.CodeVariableValueR\rcodeVariables\x12s\n\x15\x65nvironment_variables\x18\x02 \x03(\x0b\x32>.chalk.python.v1.GlobalVariablesInfo.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x7f\n\x13\x63om.chalk.python.v1B\nTypesProtoP\x01\xa2\x02\x03\x43PX\xaa\x02\x0f\x43halk.Python.V1\xca\x02\x0f\x43halk\\Python\\V1\xe2\x02\x1b\x43halk\\Python\\V1\\GPBMetadata\xea\x02\x11\x43halk::Python::V1b\x06proto3'
|
|
21
21
|
)
|
|
22
22
|
|
|
23
23
|
_globals = globals()
|
|
@@ -30,8 +30,12 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
30
30
|
]._serialized_options = b"\n\023com.chalk.python.v1B\nTypesProtoP\001\242\002\003CPX\252\002\017Chalk.Python.V1\312\002\017Chalk\\Python\\V1\342\002\033Chalk\\Python\\V1\\GPBMetadata\352\002\021Chalk::Python::V1"
|
|
31
31
|
_globals["_TYLOGICALSTRUCT_FIELDSENTRY"]._options = None
|
|
32
32
|
_globals["_TYLOGICALSTRUCT_FIELDSENTRY"]._serialized_options = b"8\001"
|
|
33
|
+
_globals["_TYLOGICALSTRUCT"].fields_by_name["fields"]._options = None
|
|
34
|
+
_globals["_TYLOGICALSTRUCT"].fields_by_name["fields"]._serialized_options = b"\030\001"
|
|
33
35
|
_globals["_TYFEATURECLASS_ASSIGNEDFIELDSENTRY"]._options = None
|
|
34
36
|
_globals["_TYFEATURECLASS_ASSIGNEDFIELDSENTRY"]._serialized_options = b"8\001"
|
|
37
|
+
_globals["_TYFEATURECLASS"].fields_by_name["assigned_fields"]._options = None
|
|
38
|
+
_globals["_TYFEATURECLASS"].fields_by_name["assigned_fields"]._serialized_options = b"\030\001"
|
|
35
39
|
_globals["_GLOBALVARIABLESINFO_ENVIRONMENTVARIABLESENTRY"]._options = None
|
|
36
40
|
_globals["_GLOBALVARIABLESINFO_ENVIRONMENTVARIABLESENTRY"]._serialized_options = b"8\001"
|
|
37
41
|
_globals["_TYSET"]._serialized_start = 76
|
|
@@ -48,28 +52,30 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
48
52
|
_globals["_TYDICT"]._serialized_end = 428
|
|
49
53
|
_globals["_TYTUPLE"]._serialized_start = 430
|
|
50
54
|
_globals["_TYTUPLE"]._serialized_end = 515
|
|
51
|
-
_globals["
|
|
52
|
-
_globals["
|
|
53
|
-
_globals["
|
|
54
|
-
_globals["
|
|
55
|
-
_globals["
|
|
56
|
-
_globals["
|
|
57
|
-
_globals["
|
|
58
|
-
_globals["
|
|
59
|
-
_globals["
|
|
60
|
-
_globals["
|
|
61
|
-
_globals["
|
|
62
|
-
_globals["
|
|
63
|
-
_globals["
|
|
64
|
-
_globals["
|
|
65
|
-
_globals["
|
|
66
|
-
_globals["
|
|
67
|
-
_globals["
|
|
68
|
-
_globals["
|
|
69
|
-
_globals["
|
|
70
|
-
_globals["
|
|
71
|
-
_globals["
|
|
72
|
-
_globals["
|
|
73
|
-
_globals["
|
|
74
|
-
_globals["
|
|
55
|
+
_globals["_STRINGTYPAIR"]._serialized_start = 517
|
|
56
|
+
_globals["_STRINGTYPAIR"]._serialized_end = 586
|
|
57
|
+
_globals["_TYLOGICALSTRUCT"]._serialized_start = 589
|
|
58
|
+
_globals["_TYLOGICALSTRUCT"]._serialized_end = 830
|
|
59
|
+
_globals["_TYLOGICALSTRUCT_FIELDSENTRY"]._serialized_start = 752
|
|
60
|
+
_globals["_TYLOGICALSTRUCT_FIELDSENTRY"]._serialized_end = 830
|
|
61
|
+
_globals["_TYFEATURECLASS"]._serialized_start = 833
|
|
62
|
+
_globals["_TYFEATURECLASS"]._serialized_end = 1175
|
|
63
|
+
_globals["_TYFEATURECLASS_ASSIGNEDFIELDSENTRY"]._serialized_start = 1089
|
|
64
|
+
_globals["_TYFEATURECLASS_ASSIGNEDFIELDSENTRY"]._serialized_end = 1175
|
|
65
|
+
_globals["_TYENUM"]._serialized_start = 1178
|
|
66
|
+
_globals["_TYENUM"]._serialized_end = 1310
|
|
67
|
+
_globals["_TY"]._serialized_start = 1313
|
|
68
|
+
_globals["_TY"]._serialized_end = 2616
|
|
69
|
+
_globals["_EMPTYMESSAGE"]._serialized_start = 2618
|
|
70
|
+
_globals["_EMPTYMESSAGE"]._serialized_end = 2632
|
|
71
|
+
_globals["_SYMBOLICCONST"]._serialized_start = 2634
|
|
72
|
+
_globals["_SYMBOLICCONST"]._serialized_end = 2737
|
|
73
|
+
_globals["_CODEVARIABLE"]._serialized_start = 2739
|
|
74
|
+
_globals["_CODEVARIABLE"]._serialized_end = 2797
|
|
75
|
+
_globals["_CODEVARIABLEVALUE"]._serialized_start = 2800
|
|
76
|
+
_globals["_CODEVARIABLEVALUE"]._serialized_end = 2932
|
|
77
|
+
_globals["_GLOBALVARIABLESINFO"]._serialized_start = 2935
|
|
78
|
+
_globals["_GLOBALVARIABLESINFO"]._serialized_end = 3221
|
|
79
|
+
_globals["_GLOBALVARIABLESINFO_ENVIRONMENTVARIABLESENTRY"]._serialized_start = 3150
|
|
80
|
+
_globals["_GLOBALVARIABLESINFO_ENVIRONMENTVARIABLESENTRY"]._serialized_end = 3221
|
|
75
81
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -60,8 +60,16 @@ class TyTuple(_message.Message):
|
|
|
60
60
|
is_variable: bool
|
|
61
61
|
def __init__(self, fixed: _Optional[_Iterable[_Union[Ty, _Mapping]]] = ..., is_variable: bool = ...) -> None: ...
|
|
62
62
|
|
|
63
|
+
class StringTyPair(_message.Message):
|
|
64
|
+
__slots__ = ("key", "ty")
|
|
65
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
66
|
+
TY_FIELD_NUMBER: _ClassVar[int]
|
|
67
|
+
key: str
|
|
68
|
+
ty: Ty
|
|
69
|
+
def __init__(self, key: _Optional[str] = ..., ty: _Optional[_Union[Ty, _Mapping]] = ...) -> None: ...
|
|
70
|
+
|
|
63
71
|
class TyLogicalStruct(_message.Message):
|
|
64
|
-
__slots__ = ("fields",)
|
|
72
|
+
__slots__ = ("fields", "ordered_fields")
|
|
65
73
|
class FieldsEntry(_message.Message):
|
|
66
74
|
__slots__ = ("key", "value")
|
|
67
75
|
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -71,11 +79,17 @@ class TyLogicalStruct(_message.Message):
|
|
|
71
79
|
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Ty, _Mapping]] = ...) -> None: ...
|
|
72
80
|
|
|
73
81
|
FIELDS_FIELD_NUMBER: _ClassVar[int]
|
|
82
|
+
ORDERED_FIELDS_FIELD_NUMBER: _ClassVar[int]
|
|
74
83
|
fields: _containers.MessageMap[str, Ty]
|
|
75
|
-
|
|
84
|
+
ordered_fields: _containers.RepeatedCompositeFieldContainer[StringTyPair]
|
|
85
|
+
def __init__(
|
|
86
|
+
self,
|
|
87
|
+
fields: _Optional[_Mapping[str, Ty]] = ...,
|
|
88
|
+
ordered_fields: _Optional[_Iterable[_Union[StringTyPair, _Mapping]]] = ...,
|
|
89
|
+
) -> None: ...
|
|
76
90
|
|
|
77
91
|
class TyFeatureClass(_message.Message):
|
|
78
|
-
__slots__ = ("constructor_namespace", "assigned_fields")
|
|
92
|
+
__slots__ = ("constructor_namespace", "assigned_fields", "ordered_assigned_fields")
|
|
79
93
|
class AssignedFieldsEntry(_message.Message):
|
|
80
94
|
__slots__ = ("key", "value")
|
|
81
95
|
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -86,10 +100,15 @@ class TyFeatureClass(_message.Message):
|
|
|
86
100
|
|
|
87
101
|
CONSTRUCTOR_NAMESPACE_FIELD_NUMBER: _ClassVar[int]
|
|
88
102
|
ASSIGNED_FIELDS_FIELD_NUMBER: _ClassVar[int]
|
|
103
|
+
ORDERED_ASSIGNED_FIELDS_FIELD_NUMBER: _ClassVar[int]
|
|
89
104
|
constructor_namespace: str
|
|
90
105
|
assigned_fields: _containers.MessageMap[str, Ty]
|
|
106
|
+
ordered_assigned_fields: _containers.RepeatedCompositeFieldContainer[StringTyPair]
|
|
91
107
|
def __init__(
|
|
92
|
-
self,
|
|
108
|
+
self,
|
|
109
|
+
constructor_namespace: _Optional[str] = ...,
|
|
110
|
+
assigned_fields: _Optional[_Mapping[str, Ty]] = ...,
|
|
111
|
+
ordered_assigned_fields: _Optional[_Iterable[_Union[StringTyPair, _Mapping]]] = ...,
|
|
93
112
|
) -> None: ...
|
|
94
113
|
|
|
95
114
|
class TyEnum(_message.Message):
|
chalk/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "2.96.
|
|
1
|
+
__version__ = "2.96.4"
|
chalk/functions/__init__.py
CHANGED
|
@@ -4211,6 +4211,53 @@ def contains(arr: Underscore | list[Any] | set[Any], value: Any):
|
|
|
4211
4211
|
return UnderscoreFunction("contains", arr, value)
|
|
4212
4212
|
|
|
4213
4213
|
|
|
4214
|
+
def is_in(value: Underscore | Any, arr: Underscore | list[Any] | set[Any]):
|
|
4215
|
+
"""
|
|
4216
|
+
Returns whether the value is in the array.
|
|
4217
|
+
|
|
4218
|
+
Parameters
|
|
4219
|
+
----------
|
|
4220
|
+
value
|
|
4221
|
+
The value to check for in the array.
|
|
4222
|
+
arr
|
|
4223
|
+
The array to search for the value.
|
|
4224
|
+
|
|
4225
|
+
Returns
|
|
4226
|
+
-------
|
|
4227
|
+
Boolean indicating whether the value is present in the array.
|
|
4228
|
+
|
|
4229
|
+
Examples
|
|
4230
|
+
--------
|
|
4231
|
+
>>> import chalk.functions as F
|
|
4232
|
+
>>> from chalk.features import _, features
|
|
4233
|
+
>>> @features
|
|
4234
|
+
... class User:
|
|
4235
|
+
... id: str
|
|
4236
|
+
... role: str
|
|
4237
|
+
... is_admin: bool = F.is_in(_.role, ["admin", "superuser"])
|
|
4238
|
+
|
|
4239
|
+
>>> # With dynamic array
|
|
4240
|
+
>>> @features
|
|
4241
|
+
... class APIRequest:
|
|
4242
|
+
... id: str
|
|
4243
|
+
... user_id: str
|
|
4244
|
+
... allowed_users: list[str]
|
|
4245
|
+
... is_allowed: bool = F.is_in(_.user_id, _.allowed_users)
|
|
4246
|
+
"""
|
|
4247
|
+
if isinstance(arr, Underscore):
|
|
4248
|
+
return UnderscoreFunction("contains", arr, value)
|
|
4249
|
+
if len(arr) < 1:
|
|
4250
|
+
raise ValueError("Expected input array to have at least one element")
|
|
4251
|
+
try:
|
|
4252
|
+
map_const = pa.scalar(
|
|
4253
|
+
{elem: None for elem in arr},
|
|
4254
|
+
type=pa.map_(rich_to_pyarrow(type(next(iter(arr))), name="arr_type"), pa.null()),
|
|
4255
|
+
)
|
|
4256
|
+
except pa.ArrowInvalid as ai:
|
|
4257
|
+
raise ValueError("Expected constant input array to have entries all of the same type") from ai
|
|
4258
|
+
return UnderscoreFunction("map_key_exists", map_const, value)
|
|
4259
|
+
|
|
4260
|
+
|
|
4214
4261
|
def cardinality(arr: Underscore):
|
|
4215
4262
|
"""
|
|
4216
4263
|
Returns the number of elements in an array.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
chalk/__init__.py,sha256=vKsx9-cl5kImlVWGHVRYO6bweBm79NAzGs3l36u71wM,2657
|
|
2
|
-
chalk/_version.py,sha256=
|
|
2
|
+
chalk/_version.py,sha256=XcUgAbBkfexVLmvcnKLqR5b8xf2WgvCDXoD-2AvODp0,23
|
|
3
3
|
chalk/cli.py,sha256=ckqqfOI-A2mT23-rnZzDMmblYj-2x1VBX8ebHlIEn9A,5873
|
|
4
4
|
chalk/importer.py,sha256=m4lMn1lSYj_euDq8CS7LYTBnek9JOcjGJf9-82dJHbA,64441
|
|
5
5
|
chalk/prompts.py,sha256=2H9UomLAamdfRTNUdKs9i3VTpiossuyRhntqsAXUhhg,16117
|
|
@@ -302,8 +302,8 @@ chalk/_gen/chalk/protosql/v1/sql_service_pb2_grpc.py,sha256=GnW9QXWQSzv96xWRo9lF
|
|
|
302
302
|
chalk/_gen/chalk/protosql/v1/sql_service_pb2_grpc.pyi,sha256=qoW1zPv6LdxqATJb4jU_4JvIsSG-svO6G1UdqoaGvhg,2589
|
|
303
303
|
chalk/_gen/chalk/python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
304
304
|
chalk/_gen/chalk/python/v1/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
305
|
-
chalk/_gen/chalk/python/v1/types_pb2.py,sha256=
|
|
306
|
-
chalk/_gen/chalk/python/v1/types_pb2.pyi,sha256
|
|
305
|
+
chalk/_gen/chalk/python/v1/types_pb2.py,sha256=0blaF9nDReamnQAzDVXwl7djNLu1PaNxueUqIQWqUn4,9667
|
|
306
|
+
chalk/_gen/chalk/python/v1/types_pb2.pyi,sha256=-eJWsDhqyMcyydDSlVLqnhtGj0Qiq9Izm7U1RJ32K-c,10231
|
|
307
307
|
chalk/_gen/chalk/python/v1/types_pb2_grpc.py,sha256=VCyAf0skoHSgQPkD4n8rKQPYesinqHqN8TEwyu7XGUo,159
|
|
308
308
|
chalk/_gen/chalk/python/v1/types_pb2_grpc.pyi,sha256=ff2TSiLVnG6IVQcTGzb2DIH3XRSoAvAo_RMcvbMFyc0,76
|
|
309
309
|
chalk/_gen/chalk/server/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -685,7 +685,7 @@ chalk/features/dataframe/__init__.py,sha256=h88XglttpuUBt0TDoltaxp-90jNtIVxZhKAp
|
|
|
685
685
|
chalk/features/dataframe/_filters.py,sha256=F9c5wExtmO21zhn4HEWcM9t4qSpfIO9Z7ysvoeZRV0I,20034
|
|
686
686
|
chalk/features/dataframe/_impl.py,sha256=6zrwip7jL4DjNDEzmXw3PdKzZ-RJZTFwafqBUdK_Toc,88131
|
|
687
687
|
chalk/features/dataframe/_validation.py,sha256=PsseXqoTgmgqaYtr-sTJP0CzlTo2v2PezkF0A8Za-oo,11037
|
|
688
|
-
chalk/functions/__init__.py,sha256=
|
|
688
|
+
chalk/functions/__init__.py,sha256=5Y2pFjCZjkPyfP8ygdknY5_HI9Yk-aob-4n2AgtSlyA,169215
|
|
689
689
|
chalk/functions/holidays.py,sha256=7yhLjH4E1nDNGA0cXnvRQl5_h_W6rFZfIGYEBa-WiM8,3444
|
|
690
690
|
chalk/functions/http.py,sha256=f3UpokWnjLyo0A_zZoSDgfGgRWmLu639FkREi6p82b4,6653
|
|
691
691
|
chalk/functions/proto.py,sha256=RpM4GIj0-hVTA8RcK_k_fQOz9hvidgFtAbtcmD5Y4K0,5749
|
|
@@ -823,8 +823,8 @@ chalk/utils/tracing.py,sha256=NiiM-9dbuJhSCv6R1npR1uYNKWlkqTR6Ygm0Voi2NrY,13078
|
|
|
823
823
|
chalk/utils/weak_set_by_identity.py,sha256=VmikA_laYwFeOphCwXJIuyOIkrdlQe0bSzaXq7onoQw,953
|
|
824
824
|
chalk/utils/pydanticutil/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
825
825
|
chalk/utils/pydanticutil/pydantic_compat.py,sha256=O575lLYJ5GvZC4HMzR9yATxf9XwjC6NrDUXbNwZidlE,3031
|
|
826
|
-
chalkpy-2.96.
|
|
827
|
-
chalkpy-2.96.
|
|
828
|
-
chalkpy-2.96.
|
|
829
|
-
chalkpy-2.96.
|
|
830
|
-
chalkpy-2.96.
|
|
826
|
+
chalkpy-2.96.4.dist-info/METADATA,sha256=PRR3sEpj-bRLa97bk65UQKPg0jzpPFv8V5DoWybeRV8,27754
|
|
827
|
+
chalkpy-2.96.4.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
|
|
828
|
+
chalkpy-2.96.4.dist-info/entry_points.txt,sha256=Vg23sd8icwq-morJrljVFr-kQnMbm95rZfZj5wsZGis,42
|
|
829
|
+
chalkpy-2.96.4.dist-info/top_level.txt,sha256=1Q6_19IGYfNxSw50W8tYKEJ2t5HKQ3W9Wiw4ia5yg2c,6
|
|
830
|
+
chalkpy-2.96.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|