Skip to content

Commit

Permalink
とりあえず
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Jun 18, 2023
1 parent 89020bf commit 122179d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ readme = "README.md"
license = { file = "LICENSE" }
classifiers = ["Programming Language :: Python :: 3"]
requires-python = ">= 3.8"
dependencies = []

[tool.rye]
dev-dependencies = [
"autopep8~=2.0.2",
"nanobind>=1.4.0",
"setuptools>=42",
"build~=0.10.0",
Expand Down
2 changes: 2 additions & 0 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@

-e file:.
auditwheel==5.4.0
autopep8==2.0.2
build==0.10.0
nanobind==1.4.0
packaging==23.1
pycodestyle==2.10.0
pyelftools==0.29
pyproject-hooks==1.0.0
tomli==2.0.1
Expand Down
23 changes: 23 additions & 0 deletions test/smallest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import os

import sora_sdk
from sora_sdk import Sora, SoraLoggingSeverity


def on_disconnect(error_code, error_message):
print('on_disconnect')


if __name__ == '__main__':
sora_sdk.enabled_webrtc_log(SoraLoggingSeverity.VERBOSE)
sora = Sora()
conn = sora.create_connection(
signaling_url=os.getenv('SIGNALING_URL'),
channel_id=os.getenv('CHANNEL_ID'),
role='recvonly'
)

# これ async_connect() みたいな名前の方が嬉しい気もする
conn.connect()

conn.disconnect()

0 comments on commit 122179d

Please sign in to comment.