diff --git a/changelog/4225.removed.2.md b/changelog/4225.removed.2.md new file mode 100644 index 000000000..dc38f652d --- /dev/null +++ b/changelog/4225.removed.2.md @@ -0,0 +1 @@ +- ⚠️ Removed deprecated `pipecat.sync` package. Use `pipecat.utils.sync` instead. diff --git a/changelog/4225.removed.md b/changelog/4225.removed.md new file mode 100644 index 000000000..e27dc6b4a --- /dev/null +++ b/changelog/4225.removed.md @@ -0,0 +1 @@ +- ⚠️ Removed deprecated `pipecat.transports.services` and `pipecat.transports.network` module aliases. Update imports to use `pipecat.transports.daily.transport`, `pipecat.transports.livekit.transport`, `pipecat.transports.websocket.*`, `pipecat.transports.webrtc.*`, and `pipecat.transports.daily.utils` respectively. diff --git a/src/pipecat/sync/__init__.py b/src/pipecat/sync/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/pipecat/sync/base_notifier.py b/src/pipecat/sync/base_notifier.py deleted file mode 100644 index fb6e12732..000000000 --- a/src/pipecat/sync/base_notifier.py +++ /dev/null @@ -1,17 +0,0 @@ -# -# Copyright (c) 2024-2026, Daily -# -# SPDX-License-Identifier: BSD 2-Clause License -# - -"""Base notifier interface for Pipecat.""" - -import warnings - -with warnings.catch_warnings(): - warnings.simplefilter("always") - warnings.warn( - "Package pipecat.sync is deprecated, use pipecat.utils.sync instead.", - DeprecationWarning, - stacklevel=2, - ) diff --git a/src/pipecat/sync/event_notifier.py b/src/pipecat/sync/event_notifier.py deleted file mode 100644 index 6a6f6abbe..000000000 --- a/src/pipecat/sync/event_notifier.py +++ /dev/null @@ -1,17 +0,0 @@ -# -# Copyright (c) 2024-2026, Daily -# -# SPDX-License-Identifier: BSD 2-Clause License -# - -"""Event-based notifier implementation using asyncio Event primitives.""" - -import warnings - -with warnings.catch_warnings(): - warnings.simplefilter("always") - warnings.warn( - "Package pipecat.sync is deprecated, use pipecat.utils.sync instead.", - DeprecationWarning, - stacklevel=2, - ) diff --git a/src/pipecat/transports/network/__init__.py b/src/pipecat/transports/network/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/pipecat/transports/network/fastapi_websocket.py b/src/pipecat/transports/network/fastapi_websocket.py deleted file mode 100644 index 6261f9e58..000000000 --- a/src/pipecat/transports/network/fastapi_websocket.py +++ /dev/null @@ -1,25 +0,0 @@ -# -# Copyright (c) 2024-2026, Daily -# -# SPDX-License-Identifier: BSD 2-Clause License -# - -"""FastAPI WebSocket transport implementation for Pipecat. - -This module provides WebSocket-based transport for real-time audio/video streaming -using FastAPI and WebSocket connections. Supports binary and text serialization -with configurable session timeouts and WAV header generation. -""" - -import warnings - -from pipecat.transports.websocket.fastapi import * - -with warnings.catch_warnings(): - warnings.simplefilter("always") - warnings.warn( - "Module `pipecat.transports.network.fastapi_websocket` is deprecated, " - "use `pipecat.transports.websocket.fastapi` instead.", - DeprecationWarning, - stacklevel=2, - ) diff --git a/src/pipecat/transports/network/small_webrtc.py b/src/pipecat/transports/network/small_webrtc.py deleted file mode 100644 index 8e41e2dd5..000000000 --- a/src/pipecat/transports/network/small_webrtc.py +++ /dev/null @@ -1,25 +0,0 @@ -# -# Copyright (c) 2024-2026, Daily -# -# SPDX-License-Identifier: BSD 2-Clause License -# - -"""Small WebRTC transport implementation for Pipecat. - -This module provides a WebRTC transport implementation using aiortc for -real-time audio and video communication. It supports bidirectional media -streaming, application messaging, and client connection management. -""" - -import warnings - -from pipecat.transports.smallwebrtc.transport import * - -with warnings.catch_warnings(): - warnings.simplefilter("always") - warnings.warn( - "Module `pipecat.transports.network.small_webrtc` is deprecated, " - "use `pipecat.transports.smallwebrtc.transport` instead.", - DeprecationWarning, - stacklevel=2, - ) diff --git a/src/pipecat/transports/network/webrtc_connection.py b/src/pipecat/transports/network/webrtc_connection.py deleted file mode 100644 index 410ef85c3..000000000 --- a/src/pipecat/transports/network/webrtc_connection.py +++ /dev/null @@ -1,25 +0,0 @@ -# -# Copyright (c) 2024-2026, Daily -# -# SPDX-License-Identifier: BSD 2-Clause License -# - -"""Small WebRTC connection implementation for Pipecat. - -This module provides a WebRTC connection implementation using aiortc, -with support for audio/video tracks, data channels, and signaling -for real-time communication applications. -""" - -import warnings - -from pipecat.transports.smallwebrtc.connection import * - -with warnings.catch_warnings(): - warnings.simplefilter("always") - warnings.warn( - "Module `pipecat.transports.network.webrtc_connection` is deprecated, " - "use `pipecat.transports.smallwebrtc.connection` instead.", - DeprecationWarning, - stacklevel=2, - ) diff --git a/src/pipecat/transports/network/websocket_client.py b/src/pipecat/transports/network/websocket_client.py deleted file mode 100644 index b83f8a262..000000000 --- a/src/pipecat/transports/network/websocket_client.py +++ /dev/null @@ -1,25 +0,0 @@ -# -# Copyright (c) 2024-2026, Daily -# -# SPDX-License-Identifier: BSD 2-Clause License -# - -"""WebSocket client transport implementation for Pipecat. - -This module provides a WebSocket client transport that enables bidirectional -communication over WebSocket connections, with support for audio streaming, -frame serialization, and connection management. -""" - -import warnings - -from pipecat.transports.websocket.client import * - -with warnings.catch_warnings(): - warnings.simplefilter("always") - warnings.warn( - "Module `pipecat.transports.network.websocket_client` is deprecated, " - "use `pipecat.transports.websocket.client` instead.", - DeprecationWarning, - stacklevel=2, - ) diff --git a/src/pipecat/transports/network/websocket_server.py b/src/pipecat/transports/network/websocket_server.py deleted file mode 100644 index 834cd79ea..000000000 --- a/src/pipecat/transports/network/websocket_server.py +++ /dev/null @@ -1,25 +0,0 @@ -# -# Copyright (c) 2024-2026, Daily -# -# SPDX-License-Identifier: BSD 2-Clause License -# - -"""WebSocket server transport implementation for Pipecat. - -This module provides WebSocket server transport functionality for real-time -audio and data streaming, including client connection management, session -handling, and frame serialization. -""" - -import warnings - -from pipecat.transports.websocket.server import * - -with warnings.catch_warnings(): - warnings.simplefilter("always") - warnings.warn( - "Module `pipecat.transports.network.websocket_server` is deprecated, " - "use `pipecat.transports.websocket.server` instead.", - DeprecationWarning, - stacklevel=2, - ) diff --git a/src/pipecat/transports/services/__init__.py b/src/pipecat/transports/services/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/pipecat/transports/services/daily.py b/src/pipecat/transports/services/daily.py deleted file mode 100644 index ae2edfa17..000000000 --- a/src/pipecat/transports/services/daily.py +++ /dev/null @@ -1,25 +0,0 @@ -# -# Copyright (c) 2024-2026, Daily -# -# SPDX-License-Identifier: BSD 2-Clause License -# - -"""Daily transport implementation for Pipecat. - -This module provides comprehensive Daily video conferencing integration including -audio/video streaming, transcription, recording, dial-in/out functionality, and -real-time communication features. -""" - -import warnings - -from pipecat.transports.daily.transport import * - -with warnings.catch_warnings(): - warnings.simplefilter("always") - warnings.warn( - "Module `pipecat.transports.services.daily` is deprecated, " - "use `pipecat.transports.daily.transport` instead.", - DeprecationWarning, - stacklevel=2, - ) diff --git a/src/pipecat/transports/services/helpers/__init__.py b/src/pipecat/transports/services/helpers/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/pipecat/transports/services/helpers/daily_rest.py b/src/pipecat/transports/services/helpers/daily_rest.py deleted file mode 100644 index 35e807827..000000000 --- a/src/pipecat/transports/services/helpers/daily_rest.py +++ /dev/null @@ -1,23 +0,0 @@ -# -# Copyright (c) 2024-2026, Daily -# -# SPDX-License-Identifier: BSD 2-Clause License -# - -"""Daily REST Helpers. - -Methods that wrap the Daily API to create rooms, check room URLs, and get meeting tokens. -""" - -import warnings - -from pipecat.transports.daily.utils import * - -with warnings.catch_warnings(): - warnings.simplefilter("always") - warnings.warn( - "Module `pipecat.transports.services.helpers.daily_rest` is deprecated, " - "use `pipecat.transports.daily.utils` instead.", - DeprecationWarning, - stacklevel=2, - ) diff --git a/src/pipecat/transports/services/livekit.py b/src/pipecat/transports/services/livekit.py deleted file mode 100644 index 903591a27..000000000 --- a/src/pipecat/transports/services/livekit.py +++ /dev/null @@ -1,25 +0,0 @@ -# -# Copyright (c) 2024-2026, Daily -# -# SPDX-License-Identifier: BSD 2-Clause License -# - -"""LiveKit transport implementation for Pipecat. - -This module provides comprehensive LiveKit real-time communication integration -including audio streaming, data messaging, participant management, and room -event handling for conversational AI applications. -""" - -import warnings - -from pipecat.transports.livekit.transport import * - -with warnings.catch_warnings(): - warnings.simplefilter("always") - warnings.warn( - "Module `pipecat.transports.services.livekit` is deprecated, " - "use `pipecat.transports.livekit.transport` instead.", - DeprecationWarning, - stacklevel=2, - ) diff --git a/src/pipecat/transports/services/tavus.py b/src/pipecat/transports/services/tavus.py deleted file mode 100644 index 25c36133d..000000000 --- a/src/pipecat/transports/services/tavus.py +++ /dev/null @@ -1,25 +0,0 @@ -# -# Copyright (c) 2024-2026, Daily -# -# SPDX-License-Identifier: BSD 2-Clause License -# - -"""Tavus transport implementation for Pipecat. - -This module provides integration with the Tavus platform for creating conversational -AI applications with avatars. It manages conversation sessions and provides real-time -audio/video streaming capabilities through the Tavus API. -""" - -import warnings - -from pipecat.transports.tavus.transport import * - -with warnings.catch_warnings(): - warnings.simplefilter("always") - warnings.warn( - "Module `pipecat.transports.services.tavus` is deprecated, " - "use `pipecat.transports.tavus.transport` instead.", - DeprecationWarning, - stacklevel=2, - )