chalkpy 2.94.9__py3-none-any.whl → 2.95.0__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 CHANGED
@@ -1 +1 @@
1
- __version__ = "2.94.9"
1
+ __version__ = "2.95.0"
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 : str
2166
- Name of the model to retrieve
2167
- version : int, optional
2168
- Specific version number to retrieve. If not provided, returns
2169
- information about all versions of the model
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 or GetRegisteredModelVersionResponse
2174
- Model information including metadata, versions, and configuration details
2172
+ Union[GetRegisteredModelResponse, GetRegisteredModelVersionResponse]
2173
+ Model information including metadata, versions, and configuration details.
2175
2174
 
2176
2175
  Examples
2177
2176
  --------
@@ -2248,8 +2247,7 @@ 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
  ----------
@@ -2291,6 +2289,7 @@ class ChalkClient:
2291
2289
  dependencies : List[str], optional
2292
2290
  List of package dependencies needed to run this model.
2293
2291
  e.g. ["torch==2.7.1", "numpy==1.26.4"]
2292
+
2294
2293
  Returns
2295
2294
  -------
2296
2295
  ModelVersion
@@ -1647,49 +1647,49 @@ 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 : str
1656
- Unique name for the model
1657
- aliases : list of str, optional
1658
- List of version aliases (e.g., ["v1.0", "latest"])
1659
- model : object, optional
1660
- Python model object (for object-based registration)
1661
- model_paths : list of str, optional
1662
- Paths to model files (for file-based registration)
1663
- additional_files : List[str], optional
1664
- Additional files needed for inference (tokenizers, configs, etc.)
1665
- model_type : ModelType, optional
1666
- Type of model framework
1667
- model_encoding : ModelEncoding, optional
1668
- Serialization format
1669
- input_schema : dict, list, or Any
1670
- Definition of the input schema. Can be:
1671
- - dict: Dictionary mapping column names to dtypes for tabular data
1672
- - list: List of (shape, dtype) tuples for tensor data
1673
- output_schema : dict, list, or Any
1674
- Definition of the output schema. Can be:
1675
- - dict: Dictionary mapping column names to dtypes for tabular data
1676
- - list: List of (shape, dtype) tuples for tensor data
1677
- metadata : dict, optional
1678
- Additional metadata dictionary containing framework info,
1679
- training details, performance metrics, etc.
1680
- input_features : FeatureReference, str, optional
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
1682
  e.g. `["user.message"]`
1684
- output_features : FeatureReference, str, optional
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
1686
  e.g. `["user.is_spam"]`
1688
- source_config : LocalSourceConfig, S3SourceConfig, HFSourceConfig, optional
1687
+ source_config
1689
1688
  Config to pass credentials to access files from a remote source.
1690
- dependencies : List[str], optional
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
@@ -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
@@ -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,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chalkpy
3
- Version: 2.94.9
3
+ Version: 2.95.0
4
4
  Summary: Python SDK for Chalk
5
5
  Author: Chalk AI, Inc.
6
6
  Project-URL: Homepage, https://chalk.ai
@@ -1,5 +1,5 @@
1
1
  chalk/__init__.py,sha256=vKsx9-cl5kImlVWGHVRYO6bweBm79NAzGs3l36u71wM,2657
2
- chalk/_version.py,sha256=GtEwETWuEgyr8yjecJU8KLv60qE8ba2NlN15NXFJ54Q,23
2
+ chalk/_version.py,sha256=nPueEJvOJo8doFt3yBuBxiqG9kwM0YZv7JzfMGc6-ww,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=gdGHrC73xyC4boE8z54BDD3-7FMJ4WCv6o2I_ii8obI,103680
606
+ chalk/client/client.py,sha256=8DWF2wmWTMMMJ0WtCu3d678NPUZuBZK-vviA9usOrf0,103653
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=7DzSUdYf7P2Y2lAo6AdLALEwwQ5YUNSeJU2rfk3KOec,95763
609
+ chalk/client/client_grpc.py,sha256=3s7nkzGtK3ttPY7a_b168ehuq_XTNk4kfxW6B20dLN0,95424
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
@@ -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=tLP9iybcYa7eM2eJJ0iSRks-ptyabA0l_SAJ83t6nEw,93758
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=HMGnQdXQevpsTCNGIG2njViHDnm1ltFoZDhABFkp3Dw,65059
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=xffsut7EzAfpAcdKvVtgnAoYlZBNalbme-jYOl_dKJ0,167805
683
+ chalk/functions/__init__.py,sha256=4RhPQMJ99Ua9HQWuY8JkLX08Ke5K6YkAuZQej5xCPOU,167797
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.94.9.dist-info/METADATA,sha256=lDQpMIhwUoLi4JAQhvGJgztvytpeHyhoSbz_DLeRrD4,27494
822
- chalkpy-2.94.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
823
- chalkpy-2.94.9.dist-info/entry_points.txt,sha256=Vg23sd8icwq-morJrljVFr-kQnMbm95rZfZj5wsZGis,42
824
- chalkpy-2.94.9.dist-info/top_level.txt,sha256=1Q6_19IGYfNxSw50W8tYKEJ2t5HKQ3W9Wiw4ia5yg2c,6
825
- chalkpy-2.94.9.dist-info/RECORD,,
821
+ chalkpy-2.95.0.dist-info/METADATA,sha256=VT-20GaAV6DL4k5pT6MGzaGmzx_4OUJSR1cSa-5nKuw,27494
822
+ chalkpy-2.95.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
823
+ chalkpy-2.95.0.dist-info/entry_points.txt,sha256=Vg23sd8icwq-morJrljVFr-kQnMbm95rZfZj5wsZGis,42
824
+ chalkpy-2.95.0.dist-info/top_level.txt,sha256=1Q6_19IGYfNxSw50W8tYKEJ2t5HKQ3W9Wiw4ia5yg2c,6
825
+ chalkpy-2.95.0.dist-info/RECORD,,