streamlit-webrtc 0.47.8__py3-none-any.whl → 0.47.9__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.
@@ -10,11 +10,14 @@ from typing import (
10
10
  Generic,
11
11
  NamedTuple,
12
12
  Optional,
13
+ TypedDict,
13
14
  Union,
14
15
  cast,
15
16
  overload,
16
17
  )
17
18
 
19
+ import streamlit as st
20
+ import streamlit.components.v1 as components
18
21
  from aiortc.mediastreams import MediaStreamTrack
19
22
 
20
23
  from streamlit_webrtc.models import (
@@ -25,15 +28,6 @@ from streamlit_webrtc.models import (
25
28
  VideoFrameCallback,
26
29
  )
27
30
 
28
- try:
29
- from typing import TypedDict
30
- except ImportError:
31
- # Python < 3.8
32
- from typing_extensions import TypedDict
33
-
34
- import streamlit as st
35
- import streamlit.components.v1 as components
36
-
37
31
  from ._compat import rerun
38
32
  from .components_callbacks import register_callback
39
33
  from .config import (
@@ -1,9 +1,4 @@
1
- from typing import Dict, List, Optional, Union
2
-
3
- try:
4
- from typing import TypedDict
5
- except ImportError:
6
- from typing_extensions import TypedDict
1
+ from typing import Dict, List, Optional, TypedDict, Union
7
2
 
8
3
  RTCIceServer = TypedDict(
9
4
  "RTCIceServer",
@@ -1,9 +1,4 @@
1
- from typing import Optional, Union, overload
2
-
3
- try:
4
- from typing import Literal
5
- except ImportError:
6
- from typing_extensions import Literal # type: ignore
1
+ from typing import Literal, Optional, Union, overload
7
2
 
8
3
  import streamlit as st
9
4
  from aiortc import MediaStreamTrack
@@ -4,19 +4,14 @@ import itertools
4
4
  import logging
5
5
  import queue
6
6
  import threading
7
- from typing import Callable, Generic, Optional, Union, cast
8
-
9
- from streamlit_webrtc.shutdown import SessionShutdownObserver
10
-
11
- try:
12
- from typing import Literal
13
- except ImportError:
14
- from typing_extensions import Literal # type: ignore
7
+ from typing import Callable, Generic, Literal, Optional, Union, cast
15
8
 
16
9
  from aiortc import RTCPeerConnection, RTCSessionDescription
17
10
  from aiortc.contrib.media import MediaPlayer, MediaRecorder, MediaRelay
18
11
  from aiortc.mediastreams import MediaStreamTrack
19
12
 
13
+ from streamlit_webrtc.shutdown import SessionShutdownObserver
14
+
20
15
  from .eventloop import get_global_event_loop
21
16
  from .models import (
22
17
  AudioFrameCallback,
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: streamlit-webrtc
3
- Version: 0.47.8
4
- Summary:
3
+ Version: 0.47.9
4
+ Summary: Real-time video and audio processing on Streamlit
5
5
  Home-page: https://github.com/whitphx/streamlit-webrtc
6
6
  License: MIT
7
- Author: Yuichiro Tsuchiya
7
+ Author: Yuichiro Tachibana (Tsuchiya)
8
8
  Author-email: t.yic.yt@gmail.com
9
9
  Requires-Python: >=3.8, !=2.7.*, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*, !=3.7.*
10
10
  Classifier: License :: OSI Approved :: MIT License
@@ -17,7 +17,6 @@ Classifier: Programming Language :: Python :: 3.12
17
17
  Requires-Dist: aiortc (>=1.9.0,<2.0.0)
18
18
  Requires-Dist: packaging (>=20.0)
19
19
  Requires-Dist: streamlit (>=0.84.1)
20
- Requires-Dist: typing_extensions (>=3.7.4,<5.0.0) ; python_version < "3.8"
21
20
  Project-URL: Repository, https://github.com/whitphx/streamlit-webrtc
22
21
  Description-Content-Type: text/markdown
23
22
 
@@ -1,10 +1,10 @@
1
1
  streamlit_webrtc/__init__.py,sha256=q5YB2Sx6amHctUMrZ76UqLgB5mrdR6ArRDK6eiKyKBo,2254
2
2
  streamlit_webrtc/_compat.py,sha256=X184CDqHsg22_2ajWzOMgNr0UiCtwv-1BWaKNSFNrt0,3745
3
- streamlit_webrtc/component.py,sha256=nhWo2ulmfkxCBqNahNb4Q2wdX8tdWEQEzOK1kW6yl34,24132
3
+ streamlit_webrtc/component.py,sha256=xkE2LSdXvH6Bj6cskRGE-YM4DYYXbt-Hs1-BcrJo1FU,24024
4
4
  streamlit_webrtc/components_callbacks.py,sha256=tdrj2TlV8qcexFEdjm4PVkz8JwHffo4A8imoXOtjNHA,2401
5
- streamlit_webrtc/config.py,sha256=Otjt1fWV5DigeMubO2kSo9W9tyiewQVLMakOqSx9xhw,4206
5
+ streamlit_webrtc/config.py,sha256=Yoppkv0aHFEpHp5IWPgy3tbohAsm-FGEtoH5Zbgwltw,4114
6
6
  streamlit_webrtc/eventloop.py,sha256=AFmxGlRRxVdl0cTS9pKpRZR2Mnq6v6DgudVZZ425IVw,1333
7
- streamlit_webrtc/factory.py,sha256=KeZuYT1w99HVnDa0vh083KuTDSsrnngrPdc0u2a8dD8,6912
7
+ streamlit_webrtc/factory.py,sha256=XeHefJ6d_aHE7Oy_oqz5dWsfVKuVxjtifilvs4cMBWs,6806
8
8
  streamlit_webrtc/frontend/build/asset-manifest.json,sha256=4NkiKr1FEUv_5FCvWWCLE84L2uGEGr5itOy1hGk1-IE,221
9
9
  streamlit_webrtc/frontend/build/index.html,sha256=Cp3X6AH856niw8ESeZUMMqBl94NfcAKrNKr8TX_zd7g,457
10
10
  streamlit_webrtc/frontend/build/static/js/main.ff279b83.js,sha256=fUiXyvYwPjZsDu5g0cyXDk1VLhQ9AESQ40IyN4ft8Z4,557766
@@ -20,8 +20,8 @@ streamlit_webrtc/server.py,sha256=5o9E2MRIPoS18lfGPJkyhbd23RWyTwblNVVuAA2kKrA,14
20
20
  streamlit_webrtc/session_info.py,sha256=pg_2RFexR18UfwpZT5ENcPfedEiWuAxBuXc2RRuFCaE,2341
21
21
  streamlit_webrtc/shutdown.py,sha256=rbWMhOIrbOBZDlqqBTzCfs4MuHQ0UEhljkNvvXoeTz0,2171
22
22
  streamlit_webrtc/source.py,sha256=haPqMZ50Xh8tg7Z1yN8Frfk8v7D3oOuKteaD59asbzs,2263
23
- streamlit_webrtc/webrtc.py,sha256=p4OXc1IQr-8kLjeZZmo6UXWzjzPQU6jjFgHW9aU75T0,27170
24
- streamlit_webrtc-0.47.8.dist-info/LICENSE,sha256=pwccNHVA7r4rYofGlMU10aKEU90GLUlQr8uY80PR0NQ,1081
25
- streamlit_webrtc-0.47.8.dist-info/METADATA,sha256=BLEntBuFKI_DFbKA0crWEJOLu4-NaMSToVbutvidX0o,19122
26
- streamlit_webrtc-0.47.8.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
27
- streamlit_webrtc-0.47.8.dist-info/RECORD,,
23
+ streamlit_webrtc/webrtc.py,sha256=grVZTC1wnL8ZpPO0vjABarvAzXzinTAWSSND-SdTAzc,27064
24
+ streamlit_webrtc-0.47.9.dist-info/LICENSE,sha256=pwccNHVA7r4rYofGlMU10aKEU90GLUlQr8uY80PR0NQ,1081
25
+ streamlit_webrtc-0.47.9.dist-info/METADATA,sha256=9ArN_gVKllftNk5EwkFs10wjLWdNwI2x_CeiF_ygADs,19108
26
+ streamlit_webrtc-0.47.9.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
27
+ streamlit_webrtc-0.47.9.dist-info/RECORD,,