chalkpy 2.98.3__py3-none-any.whl → 2.98.5__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.98.3"
1
+ __version__ = "2.98.5"
chalk/client/client.py CHANGED
@@ -63,7 +63,7 @@ if TYPE_CHECKING:
63
63
  from chalk.features._encoding.json import FeatureEncodingOptions
64
64
  from chalk.features.resolver import Resolver
65
65
  from chalk.features.tag import BranchId, DeploymentId, EnvironmentId
66
- from chalk.ml import ModelEncoding, ModelRunCriterion, ModelType
66
+ from chalk.ml import ModelClass, ModelEncoding, ModelRunCriterion, ModelType
67
67
  from chalk.parsed.branch_state import BranchGraphSummary
68
68
  from chalk.prompts import Prompt
69
69
 
@@ -2271,6 +2271,7 @@ class ChalkClient:
2271
2271
  self,
2272
2272
  name: str,
2273
2273
  model_type: Optional[ModelType] = None,
2274
+ model_class: Optional[ModelClass] = None,
2274
2275
  model_encoding: Optional[ModelEncoding] = None,
2275
2276
  aliases: Optional[List[str]] = None,
2276
2277
  model: Optional[Any] = None,
@@ -162,7 +162,7 @@ from chalk.features.pseudofeatures import CHALK_TS_FEATURE
162
162
  from chalk.features.resolver import Resolver, StreamResolver
163
163
  from chalk.features.tag import BranchId, DeploymentId, EnvironmentId
164
164
  from chalk.importer import CHALK_IMPORT_FLAG
165
- from chalk.ml import ModelEncoding, ModelRunCriterion, ModelType
165
+ from chalk.ml import ModelClass, ModelEncoding, ModelRunCriterion, ModelType
166
166
  from chalk.ml.model_file_transfer import SourceConfig
167
167
  from chalk.parsed._proto.utils import encode_proto_to_b64
168
168
  from chalk.parsed.branch_state import BranchGraphSummary
@@ -5270,6 +5270,7 @@ https://docs.chalk.ai/cli/apply
5270
5270
  self,
5271
5271
  name: str,
5272
5272
  model_type: Optional[ModelType] = None,
5273
+ model_class: Optional[ModelClass] = None,
5273
5274
  model_encoding: Optional[ModelEncoding] = None,
5274
5275
  aliases: Optional[List[str]] = None,
5275
5276
  model: Optional[Any] = None,
@@ -5296,6 +5297,7 @@ https://docs.chalk.ai/cli/apply
5296
5297
  name=name,
5297
5298
  aliases=aliases,
5298
5299
  model_type=model_type,
5300
+ model_class=model_class,
5299
5301
  model_encoding=model_encoding,
5300
5302
  model=model,
5301
5303
  model_paths=model_paths,
@@ -4589,7 +4589,7 @@ def make_model_resolver(
4589
4589
  name: str,
4590
4590
  model: "ModelVersion",
4591
4591
  input: Dict[Feature, str] | List[Feature],
4592
- output: Feature | List[Feature] | Dict[Feature, str],
4592
+ output: Feature | List[Feature] | Dict[Feature, str] | Any,
4593
4593
  feature_class: Optional[type[Features]] = None,
4594
4594
  resource_group: Optional[str] = None,
4595
4595
  resource_hint: Optional[ResourceHint] = None,
@@ -4608,7 +4608,7 @@ def make_model_resolver(
4608
4608
  The name of the resolver
4609
4609
  model
4610
4610
  A ModelVersion reference to a deployed model
4611
- inputs
4611
+ input
4612
4612
  Either a dict mapping Feature objects to model input names (strings), or a list of
4613
4613
  Feature objects. If a dict, the values represent the model's expected input names
4614
4614
  (for future use). If a list, the features will be passed as a single DataFrame to
@@ -4746,6 +4746,7 @@ def make_model_resolver(
4746
4746
  tags=None,
4747
4747
  owner=None,
4748
4748
  resource_hint=resource_hint or model.resource_hint,
4749
+ resource_group=resource_group or model.resource_group,
4749
4750
  data_sources=None,
4750
4751
  is_sql_file_resolver=False,
4751
4752
  source_line=None,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chalkpy
3
- Version: 2.98.3
3
+ Version: 2.98.5
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=Bz_5zhHPwDjTPM5Kpa6MCRtG34E0bkBIbT_od0j6sq8,23
2
+ chalk/_version.py,sha256=tszjNZxNaUifHB5tE2pbEFfmv3R_0ZShqqHELZSpWIQ,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
@@ -612,11 +612,11 @@ chalk/_validation/validation.py,sha256=9cCMfZa9-1wxkXLme_ylmD5vIA1qExJD6aqbYvbmK
612
612
  chalk/byte_transmit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
613
613
  chalk/byte_transmit/model.py,sha256=LFX8pj9X_CWXeap7fDnMl9YmXsYTgq7jBAbEWkxoYoE,13048
614
614
  chalk/client/__init__.py,sha256=wu3WQVzE5gRj6noQQDOdYJUgDaz_9QtbjXH4KuoIlXQ,1782
615
- chalk/client/client.py,sha256=DcRJltVqWy_B3Qvbnjz3qOECT9TZ7KD0eovds2CNRIw,104746
615
+ chalk/client/client.py,sha256=VfaLfbWyk-VaImPLNrNeAP4FvuJwQ5yEtJrkLST_-H4,104808
616
616
  chalk/client/client_async.py,sha256=YmuExumlDkenlGc8ROtmPjUE2m6nQUZisUDvJmwTRdk,51546
617
617
  chalk/client/client_async_impl.py,sha256=ZphhgTB49JBWHCGXe-dI0wWWKc9zPcOczy02q_gFy50,6925
618
618
  chalk/client/client_grpc.py,sha256=z1WeFWjmKKCU8dK7fdvWEOsCUlBi-v_2-HijC2_oIVs,108854
619
- chalk/client/client_impl.py,sha256=m2-dovRppOchuEwt2LlKJAv0LBW5obs9ztuJeDhuqY0,213660
619
+ chalk/client/client_impl.py,sha256=L0qE7Gr5MTMv71lg7-HkoPS672eERGVsfu8FObM_ZyQ,213759
620
620
  chalk/client/dataset.py,sha256=LneWwaAOHCjtj7gaJjsSeVNruj-QJ51hjRi62zrFNVE,77561
621
621
  chalk/client/exc.py,sha256=kZJ80YbSeSRDmTLTh240j_eRdJFZBa7IaDsNSRoDroU,4145
622
622
  chalk/client/models.py,sha256=TWiRHDMP_9NUqlCAGaw2RI2UlFI5ED1BCBM1rZRK72k,67482
@@ -660,7 +660,7 @@ chalk/features/live_updates.py,sha256=8ZbiDjcLqfFruSL15_aycwzSqJ0TbKNhas06KfZLyL
660
660
  chalk/features/namespace_context.py,sha256=fL-nPohqtNiyPDS1uQTAaHLns4aivuBL2Flf50DajU4,1813
661
661
  chalk/features/primary.py,sha256=BZ8mrMmKfRNy_wnKGDJt2cdnejP_CZb6xBsD9Ljgajc,5209
662
662
  chalk/features/pseudofeatures.py,sha256=50Pe_Xi8ttYWtgNNRpgkhBxP8xoCZCYwyLb0aWUQ-PI,2147
663
- chalk/features/resolver.py,sha256=txAhcTv60QHn5Ge0Hr1z2LSWVKNDuZZYSogTnY31YMA,193542
663
+ chalk/features/resolver.py,sha256=Et-cngxAjqbstJC5lBD3AhMwzXvUjQ6Tj8FnnW5bACU,193610
664
664
  chalk/features/tag.py,sha256=LRmKRA8ANCOvmaIAk-L5j1QW2U0aah2SeASy8Uydkmk,2675
665
665
  chalk/features/underscore.py,sha256=4xnfQV3bfvVn0PNEtkT4J-k7hW4ebtH9KBe4_BvGjY4,26763
666
666
  chalk/features/underscore_features.py,sha256=PlVCoaDDffOgtiSMaxPSWCoj8IjscbkOzDLA471HsJ4,13005
@@ -827,8 +827,8 @@ chalk/utils/tracing.py,sha256=NiiM-9dbuJhSCv6R1npR1uYNKWlkqTR6Ygm0Voi2NrY,13078
827
827
  chalk/utils/weak_set_by_identity.py,sha256=VmikA_laYwFeOphCwXJIuyOIkrdlQe0bSzaXq7onoQw,953
828
828
  chalk/utils/pydanticutil/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
829
829
  chalk/utils/pydanticutil/pydantic_compat.py,sha256=O575lLYJ5GvZC4HMzR9yATxf9XwjC6NrDUXbNwZidlE,3031
830
- chalkpy-2.98.3.dist-info/METADATA,sha256=rhMVAP_p_UvatDRbPlTqI6QNHtIg3fNOioqUZ3HCwJ0,27754
831
- chalkpy-2.98.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
832
- chalkpy-2.98.3.dist-info/entry_points.txt,sha256=Vg23sd8icwq-morJrljVFr-kQnMbm95rZfZj5wsZGis,42
833
- chalkpy-2.98.3.dist-info/top_level.txt,sha256=1Q6_19IGYfNxSw50W8tYKEJ2t5HKQ3W9Wiw4ia5yg2c,6
834
- chalkpy-2.98.3.dist-info/RECORD,,
830
+ chalkpy-2.98.5.dist-info/METADATA,sha256=JSI5DNc3rEb8L4zKLTTNPL2y6uloR3VWxgg5-R_QWiE,27754
831
+ chalkpy-2.98.5.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
832
+ chalkpy-2.98.5.dist-info/entry_points.txt,sha256=Vg23sd8icwq-morJrljVFr-kQnMbm95rZfZj5wsZGis,42
833
+ chalkpy-2.98.5.dist-info/top_level.txt,sha256=1Q6_19IGYfNxSw50W8tYKEJ2t5HKQ3W9Wiw4ia5yg2c,6
834
+ chalkpy-2.98.5.dist-info/RECORD,,