pipecatcloud 0.0.10__tar.gz → 0.0.11__tar.gz

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.
Files changed (46) hide show
  1. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11/.github/workflows}/publish-pypi.yml +1 -1
  2. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11/.github/workflows}/publish-test.yml +1 -1
  3. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/.github/workflows/python-publish.yml +0 -37
  4. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/CHANGELOG.md +141 -56
  5. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/PKG-INFO +1 -1
  6. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/pyproject.toml +1 -1
  7. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/__init__.py +6 -0
  8. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/__main__.py +6 -0
  9. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/__version__.py +6 -0
  10. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/_utils/async_utils.py +6 -0
  11. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/_utils/auth_utils.py +7 -0
  12. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/_utils/console_utils.py +43 -26
  13. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/_utils/deploy_utils.py +13 -15
  14. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/_utils/local_runner.py +6 -5
  15. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/api.py +21 -11
  16. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/cli/__init__.py +6 -0
  17. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/cli/api.py +6 -0
  18. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/cli/commands/agent.py +114 -99
  19. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/cli/commands/auth.py +41 -19
  20. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/cli/commands/deploy.py +85 -47
  21. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/cli/commands/init.py +22 -10
  22. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/cli/commands/organizations.py +72 -42
  23. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/cli/commands/run.py +7 -0
  24. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/cli/commands/secrets.py +133 -107
  25. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/cli/config.py +14 -5
  26. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/cli/entry_point.py +10 -2
  27. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/config.py +11 -2
  28. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/exception.py +17 -11
  29. pipecatcloud-0.0.11/src/pipecatcloud/session.py +104 -0
  30. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud.egg-info/PKG-INFO +1 -1
  31. pipecatcloud-0.0.10/src/pipecatcloud/session.py +0 -68
  32. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/.gitignore +0 -0
  33. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/LICENSE +0 -0
  34. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/README.md +0 -0
  35. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/dev-requirements.txt +0 -0
  36. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/pipecat-cloud.png +0 -0
  37. {pipecatcloud-0.0.10/.github/workflows → pipecatcloud-0.0.11}/publish-pypi.yml +0 -0
  38. {pipecatcloud-0.0.10/.github/workflows → pipecatcloud-0.0.11}/publish-test.yml +0 -0
  39. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/setup.cfg +0 -0
  40. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/_utils/__init__.py +0 -0
  41. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud/cli/commands/__init__.py +0 -0
  42. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud.egg-info/SOURCES.txt +0 -0
  43. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud.egg-info/dependency_links.txt +0 -0
  44. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud.egg-info/entry_points.txt +0 -0
  45. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud.egg-info/requires.txt +0 -0
  46. {pipecatcloud-0.0.10 → pipecatcloud-0.0.11}/src/pipecatcloud.egg-info/top_level.txt +0 -0
@@ -39,7 +39,7 @@ jobs:
39
39
  - name: Install dependencies
40
40
  run: |
41
41
  python -m pip install --upgrade pip
42
- pip install -r requirements.txt
42
+ pip install -r dev-requirements.txt
43
43
  pip install build twine
44
44
 
45
45
  - name: Build package
@@ -39,7 +39,7 @@ jobs:
39
39
  - name: Install dependencies
40
40
  run: |
41
41
  python -m pip install --upgrade pip
42
- pip install -r requirements.txt
42
+ pip install -r dev-requirements.txt
43
43
  pip install build twine
44
44
 
45
45
  - name: Build package
@@ -38,40 +38,3 @@ jobs:
38
38
  with:
39
39
  name: release-dists
40
40
  path: dist/
41
-
42
- pypi-publish:
43
- runs-on: ubuntu-latest
44
- needs:
45
- - release-build
46
- permissions:
47
- id-token: write
48
- contents: read
49
-
50
- environment:
51
- name: pypi
52
- url: https://pypi.org/p/pipecat-cloud
53
-
54
- steps:
55
- - uses: actions/checkout@v4
56
-
57
- - name: Retrieve release distributions
58
- uses: actions/download-artifact@v4
59
- with:
60
- name: release-dists
61
- path: dist/
62
-
63
- - name: Publish release distributions to PyPI
64
- uses: pypa/gh-action-pypi-publish@release/v1
65
- with:
66
- packages-dir: dist/
67
-
68
- - name: Create GitHub Release
69
- uses: softprops/action-gh-release@v2
70
- with:
71
- tag_name: ${{ github.ref }}
72
- name: Release ${{ github.ref_name }}
73
- draft: false
74
- prerelease: false
75
- files: |
76
- dist/*.tar.gz
77
- dist/*.whl
@@ -5,99 +5,184 @@ All notable changes to **Pipecat Cloud** will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.0.11] - 2025-03-04
9
+
10
+ ### Changed
11
+
12
+ - `session.py` now returns the response body from the `start()` method.
13
+
14
+ ### Fixed
15
+
16
+ - Fixed an issue in `session.py` where a bot wouldn't start due to malformed
17
+ `data`.
18
+
8
19
  ## [0.0.10] - 2025-03-04
9
20
 
10
21
  ### Added
11
- - `init` convenience command will now populate the working directory with files from the starter project
12
- - `agent log` allows for optional severity level filtering
22
+
23
+ - `init` convenience command will now populate the working directory with files
24
+ from the starter project.
25
+
26
+ - `agent log` allows for optional severity level filtering.
13
27
 
14
28
  ### Changed
15
- - `agent status` and `deploy` no longer show superfluous data
16
- - `session.py` now correctly handles errors when starting agents
17
- - `secrets set` no longer prompts twice for confirmation if the secret set does not exist
29
+
30
+ - `agent status` and `deploy` no longer show superfluous data.
31
+
32
+ - `session.py` now correctly handles errors when starting agents.
33
+
34
+ - `secrets set` no longer prompts twice for confirmation if the secret set does
35
+ not exist.
18
36
 
19
37
  ### Removed
20
- - `errors.py` removed as redundant (error message and code returned via API)
21
- - `agent_utils.py` removed as redundant (error message and code returned via API)
38
+
39
+ - `errors.py` removed as redundant (error message and code returned via API).
40
+
41
+ - `agent_utils.py` removed as redundant (error message and code returned via
42
+ API).
22
43
 
23
44
  ## [0.0.9] - 2025-02-27
24
45
 
25
46
  ### Added
26
- - `agent status [agent-name]` now shows deployment info and scaling configuration
27
- - `agent sessions [agent-name]` lists active session count for an agent (will list session details in future)
28
- - `agent start [agent-name] -D` now shows the Daily room URL (and token) to join in the terminal output
47
+
48
+ - `agent status [agent-name]` now shows deployment info and scaling
49
+ configuration.
50
+
51
+ - `agent sessions [agent-name]` lists active session count for an agent (will
52
+ list session details in future).
53
+
54
+ - `agent start [agent-name] -D` now shows the Daily room URL (and token) to
55
+ join in the terminal output.
29
56
 
30
57
  ### Changed
31
- - Changed CLI command from `pipecat` to `pipecatcloud` or `pcc`
32
- - `agent delete` prompts the user for confirmation first
33
- - `agent start` now checks the target deployment first to ensure it exists and is in a healthy state
34
- - Changed the information order of `agent status` so the health badge is clearly visible in terminal
35
- - `agent deploy` now defaults to "Y" for the confirmation prompts
58
+
59
+ - Changed CLI command from `pipecat` to `pipecatcloud` or `pcc`.
60
+
61
+ - `agent delete` prompts the user for confirmation first.
62
+
63
+ - `agent start` now checks the target deployment first to ensure it exists and
64
+ is in a healthy state.
65
+
66
+ - Changed the information order of `agent status` so the health badge is
67
+ clearly visible in terminal.
68
+
69
+ - `agent deploy` now defaults to "Y" for the confirmation prompts.
36
70
 
37
71
  ### Fixed
38
- - Fixed lint error with payload data in `agent start`
39
- - Fixed a bug where `pcc-deploy.toml` files were required to be present
40
- - `deploy` command now correctly passes the secret set to the deployment from the `pcc-deploy.toml` file
72
+
73
+ - Fixed lint error with payload data in `agent start`.
74
+
75
+ - Fixed a bug where `pcc-deploy.toml` files were required to be present.
76
+
77
+ - `deploy` command now correctly passes the secret set to the deployment from
78
+ the `pcc-deploy.toml` file.
41
79
 
42
80
  ## [0.0.8] - 2025-02-03
43
81
 
44
82
  ### Added
45
- - `secrets set [set-name] --file` allowing you to create a secret set from .env file
46
- - `agent scale` to modify agent configuration without pushing a new image
47
- - `run` command for running bot.py files locally via FastAPI. This initial implementation is very basic and will be expanded in the future.
48
- - `organizations select` allows passing an `--org / -o` option to bypass prompt
83
+
84
+ - `secrets set [set-name] --file` allowing you to create a secret set from .env
85
+ file.
86
+
87
+ - `agent scale` to modify agent configuration without pushing a new image.
88
+
89
+ - `run` command for running bot.py files locally via FastAPI. This initial
90
+ implementation is very basic and will be expanded in the future.
91
+
92
+ - `organizations select` allows passing an `--org / -o` option to bypass
93
+ prompt.
49
94
 
50
95
  ### Fixed
51
- - All commands use the correct shorthand flag syntax (`-` vs. `--`)
52
- - CLI config extends from module config to avoid loading config TOML with package imports
53
- - `secrets list` now correctly lists all secrets vs. just a single entry
54
- - `deploy` command displays live status to prevent skewed terminal output
55
- - `deploy` command no longer allows pushing images without a tag
56
- - `agent logs` paginate / filter / sort and tidy up display for logs
57
- - `start` command correctly clears the live terminal text
58
- - `pcc-deploy.toml` files now work as intended with `deploy` command
59
- - `deploy` method now passes configuration parameters correctly
60
- - Switching organizations will fully remove any default API tokens from the previously selected organization
96
+
97
+ - All commands use the correct shorthand flag syntax (`-` vs. `--`).
98
+
99
+ - CLI config extends from module config to avoid loading config TOML with
100
+ package imports.
101
+
102
+ - `secrets list` now correctly lists all secrets vs. just a single entry.
103
+
104
+ - `deploy` command displays live status to prevent skewed terminal output.
105
+
106
+ - `deploy` command no longer allows pushing images without a tag.
107
+
108
+ - `agent logs` paginate / filter / sort and tidy up display for logs.
109
+
110
+ - `start` command correctly clears the live terminal text.
111
+
112
+ - `pcc-deploy.toml` files now work as intended with `deploy` command.
113
+
114
+ - `deploy` method now passes configuration parameters correctly.
115
+
116
+ - Switching organizations will fully remove any default API tokens from the
117
+ previously selected organization.
61
118
 
62
119
  ### Changed
63
- - Local config now retains default keys when switching between organizations
64
- - Local config now retains defaukt keys when logging in again
65
- - `deploy` will check passed secret set exists before deployment
66
- - `secrets list` now takes an optional `--sets / -s` parameter that filters by secret sets or image pull secrets
67
- - `organizations keys create` now prompts you to set the newly created key as the default after creation (if active org matches)
68
- - `organizations keys delete` not prompts to confirm if selected key is currently your local config default
69
- - `Agent` module import has been renamed to `Session` to better reflect API
70
120
 
121
+ - Local config now retains default keys when switching between organizations.
122
+
123
+ - Local config now retains defaukt keys when logging in again.
124
+
125
+ - `deploy` will check passed secret set exists before deployment.
126
+
127
+ - `secrets list` now takes an optional `--sets / -s` parameter that filters by
128
+ secret sets or image pull secrets.
129
+
130
+ - `organizations keys create` now prompts you to set the newly created key as
131
+ the default after creation (if active org matches).
132
+
133
+ - `organizations keys delete` not prompts to confirm if selected key is
134
+ currently your local config default.
135
+
136
+ - `Agent` module import has been renamed to `Session` to better reflect API.
71
137
 
72
138
  ## [0.0.7] - 2025-02-01
73
139
 
74
140
  ### Added
75
141
 
76
- - `run` command for running an agent locally. This initial implementation is very basic and will be expanded in the future.
142
+ - `run` command for running an agent locally. This initial implementation is
143
+ very basic and will be expanded in the future.
77
144
 
78
145
  ### Changed
79
146
 
80
- - `start_agent` method no longer requires an organization. If not provided, it will assume the namespace of the API token owner.
81
- - `start` command no longer looks up the agent before starting (health check is handled by the proxy route.)
147
+ - `start_agent` method no longer requires an organization. If not provided, it
148
+ will assume the namespace of the API token owner.
149
+
150
+ - `start` command no longer looks up the agent before starting (health check is
151
+ handled by the proxy route).
82
152
 
83
153
  ## [0.0.6] - 2025-02-01
84
154
 
85
155
  ### Added
86
156
 
87
- - `pipecatcloud.agent` module for working with agents via Python scripts
88
- - `start_agent` method for starting an agent
157
+ - `pipecatcloud.agent` module for working with agents via Python scripts.
158
+
159
+ - `start_agent` method for starting an agent.
89
160
 
90
161
  ### Backlog
91
162
 
92
- - `deploy` make image pull secrets non-optional, but allow for bypassing
93
- - Fix: update docs to assert that the bot method must be async
94
- - Fix: Secrets are not upserting (overriding each time, which may be preferrable?)
95
- - Fix: deployment process needs better output
96
- - `organizations keys create` should ask if you'd like to set the created key as default after creation (if org matches)
97
- - Sense check image parameter of the deploy command (does it have a tag, etc)
98
- - `agent logs` paginate / filter / sort and tidy up display for logs
99
- - Fix: start command should clear the live text
100
- - Secrets from .env method
101
- - Fix: .pcc-deploy.toml should read correctly
102
- - New conveience method to add account associated Daily API Key to a secret set
103
- - Add: concurrency support for agent deployments
163
+ - `deploy` make image pull secrets non-optional, but allow for bypassing.
164
+
165
+ - Fix: update docs to assert that the bot method must be async.
166
+
167
+ - Fix: Secrets are not upserting (overriding each time, which may be.
168
+ preferable?).
169
+
170
+ - Fix: deployment process needs better output.
171
+
172
+ - `organizations keys create` should ask if you'd like to set the created key
173
+ as default after creation (if org matches).
174
+
175
+ - Sense check image parameter of the deploy command (does it have a tag, etc).
176
+
177
+ - `agent logs` paginate / filter / sort and tidy up display for logs.
178
+
179
+ - Fix: start command should clear the live text.
180
+
181
+ - Secrets from .env method.
182
+
183
+ - Fix: .pcc-deploy.toml should read correctly.
184
+
185
+ - New convenience method to add account associated Daily API Key to a secret
186
+ set.
187
+
188
+ - Add: concurrency support for agent deployments.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pipecatcloud
3
- Version: 0.0.10
3
+ Version: 0.0.11
4
4
  Summary: Cloud hosting for Pipecat AI applications
5
5
  License: BSD 2-Clause License
6
6
  Project-URL: Website, https://docs.pipecat.daily.co/
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pipecatcloud"
7
- version = "0.0.10"
7
+ version = "0.0.11"
8
8
  requires-python = ">=3.10"
9
9
  description = "Cloud hosting for Pipecat AI applications"
10
10
  license = { text = "BSD 2-Clause License" }
@@ -1,3 +1,9 @@
1
+ #
2
+ # Copyright (c) 2025, Daily
3
+ #
4
+ # SPDX-License-Identifier: BSD 2-Clause License
5
+ #
6
+
1
7
  import os
2
8
  import sys
3
9
 
@@ -1,3 +1,9 @@
1
+ #
2
+ # Copyright (c) 2025, Daily
3
+ #
4
+ # SPDX-License-Identifier: BSD 2-Clause License
5
+ #
6
+
1
7
  from pipecatcloud.cli.entry_point import entrypoint_cli
2
8
 
3
9
 
@@ -1,3 +1,9 @@
1
+ #
2
+ # Copyright (c) 2025, Daily
3
+ #
4
+ # SPDX-License-Identifier: BSD 2-Clause License
5
+ #
6
+
1
7
  from pathlib import Path
2
8
 
3
9
  import toml
@@ -1,3 +1,9 @@
1
+ #
2
+ # Copyright (c) 2025, Daily
3
+ #
4
+ # SPDX-License-Identifier: BSD 2-Clause License
5
+ #
6
+
1
7
  import inspect
2
8
  from typing import (
3
9
  TypeVar,
@@ -1,3 +1,9 @@
1
+ #
2
+ # Copyright (c) 2025, Daily
3
+ #
4
+ # SPDX-License-Identifier: BSD 2-Clause License
5
+ #
6
+
1
7
  import functools
2
8
 
3
9
  from pipecatcloud._utils.console_utils import console
@@ -16,4 +22,5 @@ def requires_login(func):
16
22
  )
17
23
  return
18
24
  return func(*args, **kwargs)
25
+
19
26
  return wrapper
@@ -1,3 +1,9 @@
1
+ #
2
+ # Copyright (c) 2025, Daily
3
+ #
4
+ # SPDX-License-Identifier: BSD 2-Clause License
5
+ #
6
+
1
7
  from typing import Optional, Union
2
8
 
3
9
  from rich.console import Console
@@ -8,12 +14,12 @@ from pipecatcloud.cli import PANEL_TITLE_ERROR, PANEL_TITLE_SUCCESS, PIPECAT_CLI
8
14
 
9
15
  class PipecatConsole(Console):
10
16
  def success(
11
- self,
12
- message,
13
- title: Optional[str] = None,
14
- title_extra: Optional[str] = None,
15
- subtitle: Optional[str] = None):
16
-
17
+ self,
18
+ message,
19
+ title: Optional[str] = None,
20
+ title_extra: Optional[str] = None,
21
+ subtitle: Optional[str] = None,
22
+ ):
17
23
  if not title:
18
24
  title = f"{PANEL_TITLE_SUCCESS}{f' - {title_extra}' if title_extra is not None else ''}"
19
25
 
@@ -24,15 +30,17 @@ class PipecatConsole(Console):
24
30
  subtitle=subtitle,
25
31
  title_align="left",
26
32
  subtitle_align="left",
27
- border_style="green"))
33
+ border_style="green",
34
+ )
35
+ )
28
36
 
29
37
  def error(
30
- self,
31
- message,
32
- title: Optional[str] = None,
33
- title_extra: Optional[str] = None,
34
- subtitle: Optional[str] = None):
35
-
38
+ self,
39
+ message,
40
+ title: Optional[str] = None,
41
+ title_extra: Optional[str] = None,
42
+ subtitle: Optional[str] = None,
43
+ ):
36
44
  if not title:
37
45
  title = f"{PANEL_TITLE_ERROR}{f' - {title_extra}' if title_extra is not None else ''}"
38
46
 
@@ -43,7 +51,9 @@ class PipecatConsole(Console):
43
51
  subtitle=subtitle,
44
52
  title_align="left",
45
53
  subtitle_align="left",
46
- border_style="red"))
54
+ border_style="red",
55
+ )
56
+ )
47
57
 
48
58
  def cancel(self):
49
59
  self.print("[yellow]Cancelled by user[/yellow]")
@@ -56,13 +66,16 @@ class PipecatConsole(Console):
56
66
  subtitle="",
57
67
  title_align="left",
58
68
  subtitle_align="left",
59
- border_style="red"))
69
+ border_style="red",
70
+ )
71
+ )
60
72
 
61
73
  def api_error(
62
- self,
63
- error_code: Optional[Union[str, dict]] = None,
64
- title: Optional[str] = "API Error",
65
- hide_subtitle: bool = False):
74
+ self,
75
+ error_code: Optional[Union[str, dict]] = None,
76
+ title: Optional[str] = "API Error",
77
+ hide_subtitle: bool = False,
78
+ ):
66
79
  DEFAULT_ERROR_MESSAGE = "Unknown error. Please contact support."
67
80
 
68
81
  if isinstance(error_code, dict):
@@ -77,13 +90,16 @@ class PipecatConsole(Console):
77
90
 
78
91
  self.print(
79
92
  Panel(
80
- f"[red]{title}[/red]\n\n"
81
- f"[dim]Error message:[/dim]\n{error_message}",
93
+ f"[red]{title}[/red]\n\n" f"[dim]Error message:[/dim]\n{error_message}",
82
94
  title=f"[bold red]{PANEL_TITLE_ERROR}{f' - {code}' if code else ''}[/bold red]",
83
- subtitle=f"[dim]Docs: https://docs.pipecat.daily.co/agents/error-codes#{code}[/dim]" if not hide_subtitle and code else None,
95
+ subtitle=f"[dim]Docs: https://docs.pipecat.daily.co/agents/error-codes#{code}[/dim]"
96
+ if not hide_subtitle and code
97
+ else None,
84
98
  title_align="left",
85
99
  subtitle_align="left",
86
- border_style="red"))
100
+ border_style="red",
101
+ )
102
+ )
87
103
 
88
104
 
89
105
  console = PipecatConsole()
@@ -113,10 +129,11 @@ def format_timestamp(timestamp: str) -> str:
113
129
  parts = timestamp.split(".")
114
130
  if len(parts) == 2 and parts[1].endswith("Z"):
115
131
  # Truncate microseconds to 6 digits
116
- microseconds = parts[1][:-1][:6].ljust(6, '0')
132
+ microseconds = parts[1][:-1][:6].ljust(6, "0")
117
133
  normalized = f"{parts[0]}.{microseconds}Z"
118
- return datetime.strptime(normalized,
119
- "%Y-%m-%dT%H:%M:%S.%fZ").strftime("%Y-%m-%d %H:%M:%S")
134
+ return datetime.strptime(normalized, "%Y-%m-%dT%H:%M:%S.%fZ").strftime(
135
+ "%Y-%m-%d %H:%M:%S"
136
+ )
120
137
  except (ValueError, IndexError):
121
138
  pass
122
139
 
@@ -1,3 +1,9 @@
1
+ #
2
+ # Copyright (c) 2025, Daily
3
+ #
4
+ # SPDX-License-Identifier: BSD 2-Clause License
5
+ #
6
+
1
7
  import os
2
8
  from typing import Optional
3
9
 
@@ -10,7 +16,7 @@ from pipecatcloud.exception import ConfigFileError
10
16
  DEPLOY_STATUS_MAP = {
11
17
  "Unknown": "[dim]Waiting[/dim]",
12
18
  "True": "[green]Ready[/green]",
13
- "False": "[yellow]Creating[/yellow]"
19
+ "False": "[yellow]Creating[/yellow]",
14
20
  }
15
21
 
16
22
 
@@ -32,14 +38,11 @@ class ScalingParams:
32
38
  raise ValueError("max_instances must be greater than or equal to min_instances")
33
39
 
34
40
  def to_dict(self):
35
- return {
36
- "min_instances": self.min_instances,
37
- "max_instances": self.max_instances
38
- }
41
+ return {"min_instances": self.min_instances, "max_instances": self.max_instances}
39
42
 
40
43
 
41
44
  @dataclass
42
- class DeployConfigParams():
45
+ class DeployConfigParams:
43
46
  agent_name: Optional[str] = None
44
47
  image: Optional[str] = None
45
48
  image_credentials: Optional[str] = None
@@ -56,7 +59,7 @@ class DeployConfigParams():
56
59
  "image": self.image,
57
60
  "image_credentials": self.image_credentials,
58
61
  "secret_set": self.secret_set,
59
- "scaling": self.scaling.to_dict() if self.scaling else None
62
+ "scaling": self.scaling.to_dict() if self.scaling else None,
60
63
  }
61
64
 
62
65
 
@@ -69,12 +72,12 @@ def load_deploy_config_file() -> Optional[DeployConfigParams]:
69
72
  try:
70
73
  with open(deploy_config_path, "r") as f:
71
74
  config_data = toml.load(f)
72
- except Exception as e:
75
+ except Exception:
73
76
  return None
74
77
 
75
78
  try:
76
79
  # Extract scaling parameters if present
77
- scaling_data = config_data.pop('scaling', {})
80
+ scaling_data = config_data.pop("scaling", {})
78
81
  scaling_params = ScalingParams(**scaling_data)
79
82
 
80
83
  # Create DeployConfigParams with validated data
@@ -84,12 +87,7 @@ def load_deploy_config_file() -> Optional[DeployConfigParams]:
84
87
  )
85
88
 
86
89
  # Check for unexpected keys
87
- expected_keys = {
88
- 'agent_name',
89
- 'image',
90
- 'image_credentials',
91
- 'secret_set',
92
- 'scaling'}
90
+ expected_keys = {"agent_name", "image", "image_credentials", "secret_set", "scaling"}
93
91
  unexpected_keys = set(config_data.keys()) - expected_keys
94
92
  if unexpected_keys:
95
93
  raise ConfigFileError(f"Unexpected keys in config file: {unexpected_keys}")
@@ -1,3 +1,8 @@
1
+ #
2
+ # Copyright (c) 2025, Daily
3
+ #
4
+ # SPDX-License-Identifier: BSD 2-Clause License
5
+ #
1
6
 
2
7
  import fastapi
3
8
  import uvicorn
@@ -11,11 +16,7 @@ async def start_server(entrypoint: str, host: str = "0.0.0.0", port: int = 8000)
11
16
  entrypoint (str): The entry point identifier
12
17
  """
13
18
  logger.debug(f"Starting local bot runner for {entrypoint}")
14
- app = fastapi.FastAPI(
15
- openapi_url=None,
16
- docs_url=None,
17
- redoc_url=None
18
- )
19
+ app = fastapi.FastAPI(openapi_url=None, docs_url=None, redoc_url=None)
19
20
 
20
21
  # @TODO dynamically load entrypoint
21
22