Sora Python SDK のサンプルコードをまとめたリポジトリです。
- Sora Python SDK の最新の安定版を利用しています
- PyPI に登録されている Sora Python SDK (sora-sdk) を利用しています
- サンプルコードを利用した E2E テストを実行できます
uv を利用しています。
インストール方法は https://docs.astral.sh/uv/getting-started/installation/ をご確認ください。
uv sync各サンプルは examples/<name>.py として配置されています。例えば sendonly サンプルを実行する場合は次のようにします。
uv run python examples/sendonly.py --signaling-url wss://sora.example.com/signaling --channel-id sendonly-example.env.template をコピーして .env に必要な変数を設定してください。
cp .env.template .envSORA_CHANNEL_ID_PREFIX を設定すると、サンプル実行時に自動で <prefix><UUID> 形式の
チャンネル ID が生成されます。明示的にチャンネル ID を指定したい場合は CLI の
--channel-id を利用してください。
.env.template をコピーして .env に必要な変数を設定してください。
cp .env.template .envuv run pytestApache License 2.0
Copyright 2023-2025, tnoho (Original Author)
Copyright 2023-2025, Shiguredo Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
このリポジトリに含まれる shiguremaru.png ファイルのライセンスは CC BY-NC-ND 4.0 です。