arcade-core 3.2.0__py3-none-any.whl → 3.3.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.
arcade_core/catalog.py CHANGED
@@ -255,11 +255,17 @@ class ToolCatalog(BaseModel):
255
255
  output_model=output_model,
256
256
  )
257
257
 
258
- def add_module(self, module: ModuleType) -> None:
258
+ def add_module(self, module: ModuleType, name: str | None = None) -> None:
259
259
  """
260
260
  Add all the tools in a module to the catalog.
261
+
262
+ Args:
263
+ module: The module to add.
264
+ name: Optionally override the name of the toolkit with this parameter
261
265
  """
262
266
  toolkit = Toolkit.from_module(module)
267
+ if name:
268
+ toolkit.name = name
263
269
  self.add_toolkit(toolkit)
264
270
 
265
271
  def add_toolkit(self, toolkit: Toolkit) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: arcade-core
3
- Version: 3.2.0
3
+ Version: 3.3.0
4
4
  Summary: Arcade Core - Core library for Arcade platform
5
5
  Author-email: Arcade <dev@arcade.dev>
6
6
  License: MIT
@@ -1,7 +1,7 @@
1
1
  arcade_core/__init__.py,sha256=1heu3AROAjpistehPzY2H-2nkj_IjQEh-vVlVOCRF1E,88
2
2
  arcade_core/annotations.py,sha256=Nst6aejLWXlpTu7GwzWETu1gQCG1XVAUR_qcFbNvyRc,198
3
3
  arcade_core/auth.py,sha256=On9sJPOxvHjKBxgKC1yqp7oijF6KYBsG6fG8KUw-9OY,5882
4
- arcade_core/catalog.py,sha256=PePU80MWXVuEGDzzPDvdoCUcGmV-1Ea82H0sPIOUsHA,41860
4
+ arcade_core/catalog.py,sha256=lxGUtb2wfO4MgsKQV2fguuSUJKsmi0Kx6W6aE_KRgdI,42070
5
5
  arcade_core/config.py,sha256=e98XQAkYySGW9T_yrJg54BB8Wuq06GPVHp7xqe2d1vU,572
6
6
  arcade_core/config_model.py,sha256=78BR6Ch9BDuG4ddWGfpuEKqWcb1fyOF6kxiF4qLFogM,4481
7
7
  arcade_core/constants.py,sha256=wakdklI7TyJ0agq9n-Cmb2lbVa95D0oUaMGm30eiv9Y,375
@@ -23,6 +23,6 @@ arcade_core/usage/constants.py,sha256=1FQIhkFFMZUhU-H4A7GvMb7KQ3qLFrNAZb2-LEvSF3
23
23
  arcade_core/usage/identity.py,sha256=2dP1iusI9pE_GrPlz3VXEdz51R5JlNo9_-OXbe6vn7I,6716
24
24
  arcade_core/usage/usage_service.py,sha256=xzWWSEktm58liiNYugBHRactSru8V5foriHcsoH0j1A,3407
25
25
  arcade_core/usage/utils.py,sha256=FqBOmlhwT68cbnpI5Vx9ZW6vLRYPVg4FJ0GaMEp8qEM,398
26
- arcade_core-3.2.0.dist-info/METADATA,sha256=Zu1AZLIDxmQmJeuZNHaFdYRpsgbmgZg0i16vFtD_Poc,2383
27
- arcade_core-3.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
28
- arcade_core-3.2.0.dist-info/RECORD,,
26
+ arcade_core-3.3.0.dist-info/METADATA,sha256=NmEaxXuknB5pk74vY3jPyUaabOllndlUGO1qTS-cZbg,2383
27
+ arcade_core-3.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
28
+ arcade_core-3.3.0.dist-info/RECORD,,