chalkpy 2.94.9__py3-none-any.whl → 2.95.1__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/_version.py +1 -1
- chalk/client/client.py +42 -43
- chalk/client/client_grpc.py +35 -35
- chalk/df/LazyFramePlaceholder.py +0 -2
- chalk/features/feature_field.py +1 -0
- chalk/features/feature_set_decorator.py +1 -0
- chalk/functions/__init__.py +0 -2
- {chalkpy-2.94.9.dist-info → chalkpy-2.95.1.dist-info}/METADATA +1 -1
- {chalkpy-2.94.9.dist-info → chalkpy-2.95.1.dist-info}/RECORD +12 -12
- {chalkpy-2.94.9.dist-info → chalkpy-2.95.1.dist-info}/WHEEL +0 -0
- {chalkpy-2.94.9.dist-info → chalkpy-2.95.1.dist-info}/entry_points.txt +0 -0
- {chalkpy-2.94.9.dist-info → chalkpy-2.95.1.dist-info}/top_level.txt +0 -0
chalk/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "2.
|
|
1
|
+
__version__ = "2.95.1"
|
chalk/client/client.py
CHANGED
|
@@ -2157,21 +2157,20 @@ class ChalkClient:
|
|
|
2157
2157
|
name: str,
|
|
2158
2158
|
version: Optional[int] = None,
|
|
2159
2159
|
) -> Union[GetRegisteredModelResponse, GetRegisteredModelVersionResponse]:
|
|
2160
|
-
"""
|
|
2161
|
-
Retrieve a registered model from the Chalk model registry.
|
|
2160
|
+
"""Retrieve a registered model from the Chalk model registry.
|
|
2162
2161
|
|
|
2163
2162
|
Parameters
|
|
2164
2163
|
----------
|
|
2165
|
-
name
|
|
2166
|
-
|
|
2167
|
-
version
|
|
2168
|
-
|
|
2169
|
-
|
|
2164
|
+
name
|
|
2165
|
+
Name of the model to retrieve.
|
|
2166
|
+
version
|
|
2167
|
+
Specific version number to retrieve. If not provided, returns
|
|
2168
|
+
information about all versions of the model.
|
|
2170
2169
|
|
|
2171
2170
|
Returns
|
|
2172
2171
|
-------
|
|
2173
|
-
GetRegisteredModelResponse
|
|
2174
|
-
|
|
2172
|
+
Union[GetRegisteredModelResponse, GetRegisteredModelVersionResponse]
|
|
2173
|
+
Model information including metadata, versions, and configuration details.
|
|
2175
2174
|
|
|
2176
2175
|
Examples
|
|
2177
2176
|
--------
|
|
@@ -2248,49 +2247,49 @@ class ChalkClient:
|
|
|
2248
2247
|
source_config: Optional[SourceConfig] = None,
|
|
2249
2248
|
dependencies: Optional[List[str]] = None,
|
|
2250
2249
|
) -> RegisterModelVersionResponse:
|
|
2251
|
-
"""
|
|
2252
|
-
Register a model in the Chalk model registry.
|
|
2250
|
+
"""Register a model in the Chalk model registry.
|
|
2253
2251
|
|
|
2254
2252
|
Parameters
|
|
2255
2253
|
----------
|
|
2256
|
-
name
|
|
2257
|
-
|
|
2258
|
-
aliases
|
|
2259
|
-
|
|
2260
|
-
model
|
|
2261
|
-
|
|
2262
|
-
model_paths
|
|
2263
|
-
|
|
2264
|
-
additional_files
|
|
2265
|
-
|
|
2266
|
-
model_type
|
|
2267
|
-
|
|
2268
|
-
model_encoding
|
|
2269
|
-
|
|
2270
|
-
input_schema
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
output_schema
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
metadata
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
input_features
|
|
2254
|
+
name
|
|
2255
|
+
Unique name for the model.
|
|
2256
|
+
aliases
|
|
2257
|
+
List of version aliases (e.g., `["v1.0", "latest"]`).
|
|
2258
|
+
model
|
|
2259
|
+
Python model object (for object-based registration).
|
|
2260
|
+
model_paths
|
|
2261
|
+
Paths to model files (for file-based registration).
|
|
2262
|
+
additional_files
|
|
2263
|
+
Additional files needed for inference (tokenizers, configs, etc.)
|
|
2264
|
+
model_type
|
|
2265
|
+
Type of model framework
|
|
2266
|
+
model_encoding
|
|
2267
|
+
Serialization format
|
|
2268
|
+
input_schema
|
|
2269
|
+
Definition of the input schema. Can be:
|
|
2270
|
+
- `dict`: Dictionary mapping column names to dtypes for tabular data
|
|
2271
|
+
- `list`: List of `(shape, dtype)` tuples for tensor data
|
|
2272
|
+
output_schema
|
|
2273
|
+
Definition of the output schema. Can be:
|
|
2274
|
+
- `dict`: Dictionary mapping column names to dtypes for tabular data
|
|
2275
|
+
- `list`: List of `(shape, dtype)` tuples for tensor data
|
|
2276
|
+
metadata
|
|
2277
|
+
Additional metadata dictionary containing framework info,
|
|
2278
|
+
training details, performance metrics, etc.
|
|
2279
|
+
input_features
|
|
2282
2280
|
The features to be used as inputs to the model.
|
|
2283
2281
|
For example, `[User.message]`. Features can also be expressed as snakecased strings,
|
|
2284
|
-
e.g. `["user.message"]
|
|
2285
|
-
output_features
|
|
2282
|
+
e.g. `["user.message"]`.
|
|
2283
|
+
output_features
|
|
2286
2284
|
The features to be used as outputs to the model.
|
|
2287
2285
|
For example, `[User.is_spam]`. Features can also be expressed as snakecased strings,
|
|
2288
|
-
e.g. `["user.is_spam"]
|
|
2289
|
-
source_config
|
|
2286
|
+
e.g. `["user.is_spam"]`.
|
|
2287
|
+
source_config
|
|
2290
2288
|
Config to pass credentials to access files from a remote source.
|
|
2291
|
-
dependencies
|
|
2289
|
+
dependencies
|
|
2292
2290
|
List of package dependencies needed to run this model.
|
|
2293
|
-
e.g. ["torch==2.7.1", "numpy==1.26.4"]
|
|
2291
|
+
e.g. `["torch==2.7.1", "numpy==1.26.4"]`.
|
|
2292
|
+
|
|
2294
2293
|
Returns
|
|
2295
2294
|
-------
|
|
2296
2295
|
ModelVersion
|
chalk/client/client_grpc.py
CHANGED
|
@@ -1647,53 +1647,53 @@ class ChalkGRPCClient:
|
|
|
1647
1647
|
source_config: Optional[SourceConfig] = None,
|
|
1648
1648
|
dependencies: Optional[List[str]] = None,
|
|
1649
1649
|
) -> RegisterModelVersionResponse:
|
|
1650
|
-
"""
|
|
1651
|
-
Register a model in the Chalk model registry.
|
|
1650
|
+
"""Register a model in the Chalk model registry.
|
|
1652
1651
|
|
|
1653
1652
|
Parameters
|
|
1654
1653
|
----------
|
|
1655
|
-
name
|
|
1656
|
-
|
|
1657
|
-
aliases
|
|
1658
|
-
|
|
1659
|
-
model
|
|
1660
|
-
|
|
1661
|
-
model_paths
|
|
1662
|
-
|
|
1663
|
-
additional_files
|
|
1664
|
-
|
|
1665
|
-
model_type
|
|
1666
|
-
|
|
1667
|
-
model_encoding
|
|
1668
|
-
|
|
1669
|
-
input_schema
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
output_schema
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
metadata
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
input_features
|
|
1654
|
+
name
|
|
1655
|
+
Unique name for the model.
|
|
1656
|
+
aliases
|
|
1657
|
+
List of version aliases (e.g., `["v1.0", "latest"]`).
|
|
1658
|
+
model
|
|
1659
|
+
Python model object (for object-based registration).
|
|
1660
|
+
model_paths
|
|
1661
|
+
Paths to model files (for file-based registration).
|
|
1662
|
+
additional_files
|
|
1663
|
+
Additional files needed for inference (tokenizers, configs, etc.)
|
|
1664
|
+
model_type
|
|
1665
|
+
Type of model framework.
|
|
1666
|
+
model_encoding
|
|
1667
|
+
Serialization format.
|
|
1668
|
+
input_schema
|
|
1669
|
+
Definition of the input schema. Can be:
|
|
1670
|
+
- `dict`: Dictionary mapping column names to dtypes for tabular data
|
|
1671
|
+
- `list`: List of `(shape, dtype)` tuples for tensor data
|
|
1672
|
+
output_schema
|
|
1673
|
+
Definition of the output schema. Can be:
|
|
1674
|
+
- `dict`: Dictionary mapping column names to dtypes for tabular data
|
|
1675
|
+
- `list`: List of `(shape, dtype)` tuples for tensor data
|
|
1676
|
+
metadata
|
|
1677
|
+
Additional metadata dictionary containing framework info,
|
|
1678
|
+
training details, performance metrics, etc.
|
|
1679
|
+
input_features
|
|
1681
1680
|
The features to be used as inputs to the model.
|
|
1682
1681
|
For example, `[User.message]`. Features can also be expressed as snakecased strings,
|
|
1683
|
-
e.g. `["user.message"]
|
|
1684
|
-
output_features
|
|
1682
|
+
e.g. `["user.message"]`.
|
|
1683
|
+
output_features
|
|
1685
1684
|
The features to be used as outputs to the model.
|
|
1686
1685
|
For example, `[User.is_spam]`. Features can also be expressed as snakecased strings,
|
|
1687
|
-
e.g. `["user.is_spam"]
|
|
1688
|
-
source_config
|
|
1686
|
+
e.g. `["user.is_spam"]`.
|
|
1687
|
+
source_config
|
|
1689
1688
|
Config to pass credentials to access files from a remote source.
|
|
1690
|
-
dependencies
|
|
1689
|
+
dependencies
|
|
1691
1690
|
List of package dependencies needed to run this model.
|
|
1692
|
-
e.g. ["torch==2.7.1", "numpy==1.26.4"]
|
|
1691
|
+
e.g. `["torch==2.7.1", "numpy==1.26.4"]`.
|
|
1692
|
+
|
|
1693
1693
|
Returns
|
|
1694
1694
|
-------
|
|
1695
1695
|
ModelVersion
|
|
1696
|
-
|
|
1696
|
+
The registered model version object.
|
|
1697
1697
|
|
|
1698
1698
|
Examples
|
|
1699
1699
|
--------
|
chalk/df/LazyFramePlaceholder.py
CHANGED
|
@@ -292,8 +292,6 @@ class LazyFramePlaceholder:
|
|
|
292
292
|
Region of the Glue catalog.
|
|
293
293
|
aws_role_arn
|
|
294
294
|
IAM role to assume for access.
|
|
295
|
-
filter_predicate
|
|
296
|
-
Optional filter applied during scan.
|
|
297
295
|
parquet_scan_range_column
|
|
298
296
|
Column used for range-based reads.
|
|
299
297
|
custom_partitions
|
chalk/features/feature_field.py
CHANGED
|
@@ -2199,6 +2199,7 @@ def has_many(
|
|
|
2199
2199
|
The maximum number of items to cache for the joined feature. The
|
|
2200
2200
|
items in the joined feature aggregate, storing the latest values
|
|
2201
2201
|
of the joined feature for each primary key in the joined feature.
|
|
2202
|
+
|
|
2202
2203
|
Examples
|
|
2203
2204
|
--------
|
|
2204
2205
|
>>> from chalk.features import DataFrame, features, has_many
|
|
@@ -141,6 +141,7 @@ def features(
|
|
|
141
141
|
The `cache_nulls` and `cache_defaults` options can be used together on the same feature with the
|
|
142
142
|
following exceptions: if `cache_nulls=False`, then `cache_defaults` cannot be `"evict_defaults"`, and if
|
|
143
143
|
`cache_nulls="evict_defaults"`, then `cache_defaults` cannot be `False`.
|
|
144
|
+
|
|
144
145
|
Other Parameters
|
|
145
146
|
----------------
|
|
146
147
|
cls
|
chalk/functions/__init__.py
CHANGED
|
@@ -3947,7 +3947,6 @@ def array_filter(
|
|
|
3947
3947
|
... id: str
|
|
3948
3948
|
... recent_activities: list[float]
|
|
3949
3949
|
... average_activity: float
|
|
3950
|
-
...
|
|
3951
3950
|
... recent_high_value_activities: list[float] = F.array_filter(
|
|
3952
3951
|
... _.recent_activities,
|
|
3953
3952
|
... lambda amount: amount > _.average_activity,
|
|
@@ -4053,7 +4052,6 @@ def array_reduce(
|
|
|
4053
4052
|
... class User:
|
|
4054
4053
|
... id: str
|
|
4055
4054
|
... scores: list[int]
|
|
4056
|
-
...
|
|
4057
4055
|
... total_score: int = F.array_reduce(
|
|
4058
4056
|
... arr=_.scores,
|
|
4059
4057
|
... initial_value=0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
chalk/__init__.py,sha256=vKsx9-cl5kImlVWGHVRYO6bweBm79NAzGs3l36u71wM,2657
|
|
2
|
-
chalk/_version.py,sha256=
|
|
2
|
+
chalk/_version.py,sha256=rk-4TApc5a3eBFZLyztEsm1bUXcfcBUXksYD8HUtU0k,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
|
|
@@ -603,10 +603,10 @@ chalk/_validation/validation.py,sha256=9cCMfZa9-1wxkXLme_ylmD5vIA1qExJD6aqbYvbmK
|
|
|
603
603
|
chalk/byte_transmit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
604
604
|
chalk/byte_transmit/model.py,sha256=LFX8pj9X_CWXeap7fDnMl9YmXsYTgq7jBAbEWkxoYoE,13048
|
|
605
605
|
chalk/client/__init__.py,sha256=wu3WQVzE5gRj6noQQDOdYJUgDaz_9QtbjXH4KuoIlXQ,1782
|
|
606
|
-
chalk/client/client.py,sha256=
|
|
606
|
+
chalk/client/client.py,sha256=fqw75x4yiAk3CXryGbuF_qg09WDIlluhYeFdQ-BfTG8,103337
|
|
607
607
|
chalk/client/client_async.py,sha256=nFFTWJbdBlb7zksyjOMBY566tZTAyNXQhCnq06LHWl0,50803
|
|
608
608
|
chalk/client/client_async_impl.py,sha256=ZphhgTB49JBWHCGXe-dI0wWWKc9zPcOczy02q_gFy50,6925
|
|
609
|
-
chalk/client/client_grpc.py,sha256=
|
|
609
|
+
chalk/client/client_grpc.py,sha256=zRqk6qV6UO-kHnn3Ann_ckva1MRf5YC1eDWxFO3x1Pc,95443
|
|
610
610
|
chalk/client/client_impl.py,sha256=R2ZUiEQf662q3O1eo_NjzYqLGB71B5mWzcx8opC3Os0,211639
|
|
611
611
|
chalk/client/dataset.py,sha256=LneWwaAOHCjtj7gaJjsSeVNruj-QJ51hjRi62zrFNVE,77561
|
|
612
612
|
chalk/client/exc.py,sha256=kZJ80YbSeSRDmTLTh240j_eRdJFZBa7IaDsNSRoDroU,4145
|
|
@@ -627,7 +627,7 @@ chalk/config/_validator.py,sha256=QC1y52m704_bV_TYjq0sdZJ-km8iSkDX1V4sHgw4RJk,13
|
|
|
627
627
|
chalk/config/auth_config.py,sha256=HAALkQrvDD0i7gaZK5iufS8vDDVbzLIpHLOpcJO1kmw,4498
|
|
628
628
|
chalk/config/project_config.py,sha256=YHB3upvtBJu-tWfNOchBRSc9xGebDbrIpCVmKbBzJ8Q,7217
|
|
629
629
|
chalk/df/ChalkDataFrameImpl.py,sha256=BRwnjQcie3gxaKhKau8HG17NWzS1zdr8SnNVurxF8QY,133
|
|
630
|
-
chalk/df/LazyFramePlaceholder.py,sha256=
|
|
630
|
+
chalk/df/LazyFramePlaceholder.py,sha256=uTinB2buEFBT8djBCqiPN2hKmr_nU7n4i_DcCLNLuWs,39111
|
|
631
631
|
chalk/df/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
632
632
|
chalk/df/ast_parser.py,sha256=t-DwUxd2hN8LECRSBx85DIv9FtILgMiHyGyCTINfgQw,11199
|
|
633
633
|
chalk/features/__init__.py,sha256=5doD7bFwRthzwdmizbRaPVHiCABiNpiOiAJVFlwqNnA,6943
|
|
@@ -639,9 +639,9 @@ chalk/features/_last.py,sha256=IyYe0PVAKBu8FRhCZiK6Dy5afKbwDHEUTES5qVXbaZU,1163
|
|
|
639
639
|
chalk/features/_tensor.py,sha256=2SQz9cnIywGjHL6LoWj4lrVBa854McFUttJSNV1hKp8,7111
|
|
640
640
|
chalk/features/_vector.py,sha256=jtJmUTtCaUFru4Fw17PYWozl3pPEdIOCYAuZOqIaN3Y,7205
|
|
641
641
|
chalk/features/feature_cache_strategy.py,sha256=bXV-tjHfPzUotMpZ3h_D9Xxq-V1CLj_UcVtGIGMpMkI,4942
|
|
642
|
-
chalk/features/feature_field.py,sha256=
|
|
642
|
+
chalk/features/feature_field.py,sha256=x-B8CIt086xMOjtfpRMGcmfysS6G2vA_whsLZgGQeqI,93759
|
|
643
643
|
chalk/features/feature_set.py,sha256=yNi0_J4CylAVkVp1Y67qV6i8vHMdE0p99DnyLPABPHI,12406
|
|
644
|
-
chalk/features/feature_set_decorator.py,sha256=
|
|
644
|
+
chalk/features/feature_set_decorator.py,sha256=e5yp1FHObicrXPlNUxXQf4iwq4RdWuP-qe0cboDT2QI,65060
|
|
645
645
|
chalk/features/feature_time.py,sha256=iUk8NDelig81jP7QT3tguyzx5eOZ-YC84OVgJRRKVwo,1639
|
|
646
646
|
chalk/features/feature_wrapper.py,sha256=OolNWGGX67IAEMHCObFvOCpH5EmwjbMvMygRSBJJtu0,19259
|
|
647
647
|
chalk/features/filter.py,sha256=2ldMbqvXC-nJ0jc-OZ36qHtrej-Jkx4TNQ1W_NZodAs,11177
|
|
@@ -680,7 +680,7 @@ chalk/features/dataframe/__init__.py,sha256=h88XglttpuUBt0TDoltaxp-90jNtIVxZhKAp
|
|
|
680
680
|
chalk/features/dataframe/_filters.py,sha256=F9c5wExtmO21zhn4HEWcM9t4qSpfIO9Z7ysvoeZRV0I,20034
|
|
681
681
|
chalk/features/dataframe/_impl.py,sha256=6zrwip7jL4DjNDEzmXw3PdKzZ-RJZTFwafqBUdK_Toc,88131
|
|
682
682
|
chalk/features/dataframe/_validation.py,sha256=PsseXqoTgmgqaYtr-sTJP0CzlTo2v2PezkF0A8Za-oo,11037
|
|
683
|
-
chalk/functions/__init__.py,sha256=
|
|
683
|
+
chalk/functions/__init__.py,sha256=k3-saPn3SFVND55UabjGt2sYtJ32ZY9LQx5lfNIkTcM,167789
|
|
684
684
|
chalk/functions/holidays.py,sha256=7yhLjH4E1nDNGA0cXnvRQl5_h_W6rFZfIGYEBa-WiM8,3444
|
|
685
685
|
chalk/functions/http.py,sha256=f3UpokWnjLyo0A_zZoSDgfGgRWmLu639FkREi6p82b4,6653
|
|
686
686
|
chalk/functions/proto.py,sha256=RpM4GIj0-hVTA8RcK_k_fQOz9hvidgFtAbtcmD5Y4K0,5749
|
|
@@ -818,8 +818,8 @@ chalk/utils/tracing.py,sha256=ye5z6UCEsrxXC3ofXUNCDdUCf8ydPahEO92qQTd0AIA,11383
|
|
|
818
818
|
chalk/utils/weak_set_by_identity.py,sha256=VmikA_laYwFeOphCwXJIuyOIkrdlQe0bSzaXq7onoQw,953
|
|
819
819
|
chalk/utils/pydanticutil/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
820
820
|
chalk/utils/pydanticutil/pydantic_compat.py,sha256=O575lLYJ5GvZC4HMzR9yATxf9XwjC6NrDUXbNwZidlE,3031
|
|
821
|
-
chalkpy-2.
|
|
822
|
-
chalkpy-2.
|
|
823
|
-
chalkpy-2.
|
|
824
|
-
chalkpy-2.
|
|
825
|
-
chalkpy-2.
|
|
821
|
+
chalkpy-2.95.1.dist-info/METADATA,sha256=nig-03oMLofMUVjgNSNjPMJA5q05ufTcKApOi-6eQwo,27494
|
|
822
|
+
chalkpy-2.95.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
823
|
+
chalkpy-2.95.1.dist-info/entry_points.txt,sha256=Vg23sd8icwq-morJrljVFr-kQnMbm95rZfZj5wsZGis,42
|
|
824
|
+
chalkpy-2.95.1.dist-info/top_level.txt,sha256=1Q6_19IGYfNxSw50W8tYKEJ2t5HKQ3W9Wiw4ia5yg2c,6
|
|
825
|
+
chalkpy-2.95.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|