beamlit 0.0.20rc1__py3-none-any.whl → 0.0.20rc3__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ from .apikey import ApiKeyProvider
2
2
  from .authentication import (PublicProvider, RunClientWithCredentials,
3
3
  new_client_with_credentials)
4
4
  from .credentials import (Config, ContextConfig, Credentials, WorkspaceConfig,
5
- load_credentials, load_credentials_from_config)
5
+ load_credentials, load_credentials_from_settings)
6
6
  from .device_mode import (BearerToken, DeviceLogin, DeviceLoginFinalizeRequest,
7
7
  DeviceLoginFinalizeResponse, DeviceLoginResponse)
8
8
 
@@ -16,7 +16,7 @@ __all__ = (
16
16
  "Credentials",
17
17
  "WorkspaceConfig",
18
18
  "load_credentials",
19
- "load_credentials_from_config",
19
+ "load_credentials_from_settings",
20
20
  "BearerToken",
21
21
  "DeviceLogin",
22
22
  "DeviceLoginFinalizeRequest",
@@ -116,7 +116,7 @@ def load_credentials(workspace_name: str) -> Credentials:
116
116
  return workspace.credentials
117
117
  return Credentials()
118
118
 
119
- def load_credentials_from_config(config: Settings) -> Credentials:
119
+ def load_credentials_from_settings(config: Settings) -> Credentials:
120
120
  return Credentials(
121
121
  api_key=config.api_key,
122
122
  client_credentials=config.client_credentials
@@ -118,14 +118,14 @@ from langchain_core.callbacks import CallbackManagerForToolRun
118
118
  from langchain_core.tools import BaseTool
119
119
  from pydantic import BaseModel, Field
120
120
  from beamlit.authentication import (RunClientWithCredentials,
121
- load_credentials_from_config,
121
+ load_credentials_from_settings,
122
122
  new_client_with_credentials)
123
123
  from beamlit.common.settings import get_settings
124
124
  from beamlit.run import RunClient
125
125
 
126
126
  logger = getLogger(__name__)
127
127
  settings = get_settings()
128
- credentials = load_credentials_from_config(settings)
128
+ credentials = load_credentials_from_settings(settings)
129
129
 
130
130
  client_config = RunClientWithCredentials(
131
131
  credentials=credentials,
@@ -23,7 +23,6 @@ def get_settings():
23
23
 
24
24
  class Settings(BaseSettings):
25
25
  model_config = SettingsConfigDict(
26
- cli_parse_args=True,
27
26
  yaml_file="beamlit.yaml",
28
27
  env_prefix="bl_",
29
28
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: beamlit
3
- Version: 0.0.20rc1
3
+ Version: 0.0.20rc3
4
4
  Summary: Add your description here
5
5
  Author-email: cploujoux <ch.ploujoux@gmail.com>
6
6
  Requires-Python: >=3.12
@@ -118,15 +118,15 @@ beamlit/api/workspaces/list_workspaces.py,sha256=FnmUumyrJeA-akmKDoz0K_DRiv-iiF_
118
118
  beamlit/api/workspaces/remove_workspace_user.py,sha256=AxEG15Vwe-dFspQD21pYqEjsY-RO0_K-eoLpdkY-VEc,2667
119
119
  beamlit/api/workspaces/update_workspace.py,sha256=qa5DV2UJSUYuB_ibALb4E9ghKpT1HaEIzIb9MOcDKv4,4241
120
120
  beamlit/api/workspaces/update_workspace_user_role.py,sha256=Yn9iuJ4tKtauzBiJyU4-wYUMS9g98X2Om8zs7UkzrY8,4917
121
- beamlit/authentication/__init__.py,sha256=9ft7zzga8uEmb4Z6WoMBdEPTGwQCGP5w4SUQnu3XAS4,868
121
+ beamlit/authentication/__init__.py,sha256=4XS2flLWtu6deM9lE_dAVOMsNF-YzRofu2K0jvW6igw,872
122
122
  beamlit/authentication/apikey.py,sha256=HvqWEd2IqcUuISvftqpi_lhd2fTQDHTf8M4O_k7HerU,489
123
123
  beamlit/authentication/authentication.py,sha256=Al_ioKYVfGdS9urfENFqE12drzChD6l3sGWM68jHfXA,1219
124
124
  beamlit/authentication/clientcredentials.py,sha256=OUzV_Kc5A2BIteM5u8r26NwQMs8oTHPqz9qAkSxwxH0,3744
125
- beamlit/authentication/credentials.py,sha256=5W_LXdRpiYmZAJLPOanTvZ8L-fMSg7Zq1-vOeOrlBec,4828
125
+ beamlit/authentication/credentials.py,sha256=Ro7Pb_GRNuLF9MuDdOhRolnksnIFIWn5KPRNnT7c7_w,4830
126
126
  beamlit/authentication/device_mode.py,sha256=Y4WVDH6guhdQKn8zIV5s93VWvtAIn4BsTikq_UnZw4c,3409
127
- beamlit/common/generate.py,sha256=pECy9zDDSH8IlTFZkXA3RaEv07ndLh0pKaaYBARoftk,7031
127
+ beamlit/common/generate.py,sha256=u0HJ4YsZcbtkHJDeSEuufWCTuuyLdaF7yzJkZrrNZfI,7035
128
128
  beamlit/common/logger.py,sha256=zuUVHsSSwH0REij0rDhBgZ0U7YvToDQu-SVS6ZBIDUg,948
129
- beamlit/common/settings.py,sha256=-gx-ZerN51YnubrVGIo9h3FNncDs_3X2l1uEggd1-w0,4216
129
+ beamlit/common/settings.py,sha256=B6LvgCPeP_vEdVd7MgcvTfPNdLd6MNnbLkZqPrGeOk0,4187
130
130
  beamlit/common/utils.py,sha256=0KaC8vMa0AyIm4jTNgAJSsOYA1b191Q8AUF1up1RxFs,634
131
131
  beamlit/models/__init__.py,sha256=F7yHBm7lFvVTfaNzJdg2hUX6JG65-mxtwkKy5t3pEf8,9159
132
132
  beamlit/models/acl.py,sha256=_QF5XXlVJHBPxuuNnBXhgRngFB6JNesi0YFDG1_R1G4,4599
@@ -230,6 +230,6 @@ beamlit/models/update_workspace_user_role_body.py,sha256=fRTVmZEOjx4805gg_EXkI6m
230
230
  beamlit/models/workspace.py,sha256=pJq3Qhy3DKUbmJ6F7FKU12DaN5LqZpFCILN67ki5JU4,3949
231
231
  beamlit/models/workspace_labels.py,sha256=Ll5DMnOTmY1NDquVcDXf9Gyglb0_-ZM3KUM8u2trshE,1203
232
232
  beamlit/models/workspace_user.py,sha256=iq-ObiW7sSrzu9NeGapa0Q0E7XRfdFSZQh0_4zBWlpY,3380
233
- beamlit-0.0.20rc1.dist-info/METADATA,sha256=PjIrde02-LkkUDBHKNqCYHn7y8T44X71uMUmSd74MSs,1746
234
- beamlit-0.0.20rc1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
235
- beamlit-0.0.20rc1.dist-info/RECORD,,
233
+ beamlit-0.0.20rc3.dist-info/METADATA,sha256=Qc6yoUyEdlsJJZHxRtHH2MhQ9gFgpQZVOAv7z3U1uRM,1746
234
+ beamlit-0.0.20rc3.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
235
+ beamlit-0.0.20rc3.dist-info/RECORD,,