livekit-api 0.4.1__tar.gz → 0.4.3__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 (24) hide show
  1. {livekit-api-0.4.1 → livekit-api-0.4.3}/PKG-INFO +2 -2
  2. {livekit-api-0.4.1 → livekit-api-0.4.3}/livekit/api/__init__.py +6 -7
  3. livekit-api-0.4.3/livekit/api/py.typed +0 -0
  4. livekit-api-0.4.3/livekit/api/version.py +1 -0
  5. {livekit-api-0.4.1 → livekit-api-0.4.3}/livekit/api/webhook.py +1 -1
  6. {livekit-api-0.4.1 → livekit-api-0.4.3}/livekit_api.egg-info/PKG-INFO +2 -2
  7. {livekit-api-0.4.1 → livekit-api-0.4.3}/livekit_api.egg-info/SOURCES.txt +1 -0
  8. {livekit-api-0.4.1 → livekit-api-0.4.3}/livekit_api.egg-info/requires.txt +1 -1
  9. {livekit-api-0.4.1 → livekit-api-0.4.3}/setup.py +4 -3
  10. {livekit-api-0.4.1 → livekit-api-0.4.3}/tests/test_access_token.py +2 -1
  11. {livekit-api-0.4.1 → livekit-api-0.4.3}/tests/test_webhook.py +4 -3
  12. livekit-api-0.4.1/livekit/api/version.py +0 -1
  13. {livekit-api-0.4.1 → livekit-api-0.4.3}/README.md +0 -0
  14. {livekit-api-0.4.1 → livekit-api-0.4.3}/livekit/api/_service.py +0 -0
  15. {livekit-api-0.4.1 → livekit-api-0.4.3}/livekit/api/access_token.py +0 -0
  16. {livekit-api-0.4.1 → livekit-api-0.4.3}/livekit/api/egress_service.py +0 -0
  17. {livekit-api-0.4.1 → livekit-api-0.4.3}/livekit/api/ingress_service.py +0 -0
  18. {livekit-api-0.4.1 → livekit-api-0.4.3}/livekit/api/livekit_api.py +0 -0
  19. {livekit-api-0.4.1 → livekit-api-0.4.3}/livekit/api/room_service.py +0 -0
  20. {livekit-api-0.4.1 → livekit-api-0.4.3}/livekit/api/twirp_client.py +0 -0
  21. {livekit-api-0.4.1 → livekit-api-0.4.3}/livekit_api.egg-info/dependency_links.txt +0 -0
  22. {livekit-api-0.4.1 → livekit-api-0.4.3}/livekit_api.egg-info/top_level.txt +0 -0
  23. {livekit-api-0.4.1 → livekit-api-0.4.3}/pyproject.toml +0 -0
  24. {livekit-api-0.4.1 → livekit-api-0.4.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: livekit-api
3
- Version: 0.4.1
3
+ Version: 0.4.3
4
4
  Summary: Python Server API for LiveKit
5
5
  Home-page: https://github.com/livekit/python-sdks
6
6
  License: Apache-2.0
@@ -23,7 +23,7 @@ Requires-Python: >=3.8.0
23
23
  Description-Content-Type: text/markdown
24
24
  Requires-Dist: pyjwt>=2.0.0
25
25
  Requires-Dist: aiohttp>=3.9.0
26
- Requires-Dist: protobuf<5,>=4
26
+ Requires-Dist: protobuf>=3
27
27
  Requires-Dist: types-protobuf<5,>=4
28
28
  Requires-Dist: livekit-protocol~=0.3.0
29
29
 
@@ -12,16 +12,15 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- """LiveKit API SDK
16
- """
15
+ """LiveKit API SDK"""
17
16
 
18
17
  # flake8: noqa
19
18
  # re-export packages from protocol
20
- from livekit.protocol.egress import * # type: ignore
21
- from livekit.protocol.ingress import * # type: ignore
22
- from livekit.protocol.models import * # type: ignore
23
- from livekit.protocol.room import * # type: ignore
24
- from livekit.protocol.webhook import * # type: ignore
19
+ from livekit.protocol.egress import *
20
+ from livekit.protocol.ingress import *
21
+ from livekit.protocol.models import *
22
+ from livekit.protocol.room import *
23
+ from livekit.protocol.webhook import *
25
24
 
26
25
  from .twirp_client import TwirpError, TwirpErrorCode
27
26
  from .livekit_api import LiveKitAPI
File without changes
@@ -0,0 +1 @@
1
+ __version__ = "0.4.3"
@@ -18,4 +18,4 @@ class WebhookReceiver:
18
18
  if body_hash != claims_hash:
19
19
  raise Exception("hash mismatch")
20
20
 
21
- return Parse(body, proto_webhook.WebhookEvent())
21
+ return Parse(body, proto_webhook.WebhookEvent(), ignore_unknown_fields=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: livekit-api
3
- Version: 0.4.1
3
+ Version: 0.4.3
4
4
  Summary: Python Server API for LiveKit
5
5
  Home-page: https://github.com/livekit/python-sdks
6
6
  License: Apache-2.0
@@ -23,7 +23,7 @@ Requires-Python: >=3.8.0
23
23
  Description-Content-Type: text/markdown
24
24
  Requires-Dist: pyjwt>=2.0.0
25
25
  Requires-Dist: aiohttp>=3.9.0
26
- Requires-Dist: protobuf<5,>=4
26
+ Requires-Dist: protobuf>=3
27
27
  Requires-Dist: types-protobuf<5,>=4
28
28
  Requires-Dist: livekit-protocol~=0.3.0
29
29
 
@@ -7,6 +7,7 @@ livekit/api/access_token.py
7
7
  livekit/api/egress_service.py
8
8
  livekit/api/ingress_service.py
9
9
  livekit/api/livekit_api.py
10
+ livekit/api/py.typed
10
11
  livekit/api/room_service.py
11
12
  livekit/api/twirp_client.py
12
13
  livekit/api/version.py
@@ -1,5 +1,5 @@
1
1
  pyjwt>=2.0.0
2
2
  aiohttp>=3.9.0
3
- protobuf<5,>=4
3
+ protobuf>=3
4
4
  types-protobuf<5,>=4
5
5
  livekit-protocol~=0.3.0
@@ -14,11 +14,12 @@
14
14
 
15
15
  import os
16
16
  import pathlib
17
+ from typing import Any, Dict
17
18
 
18
- import setuptools
19
+ import setuptools # type: ignore
19
20
 
20
21
  here = pathlib.Path(__file__).parent.resolve()
21
- about = {}
22
+ about: Dict[Any, Any] = {}
22
23
  with open(os.path.join(here, "livekit", "api", "version.py"), "r") as f:
23
24
  exec(f.read(), about)
24
25
 
@@ -50,7 +51,7 @@ setuptools.setup(
50
51
  install_requires=[
51
52
  "pyjwt>=2.0.0",
52
53
  "aiohttp>=3.9.0",
53
- "protobuf>=4,<5",
54
+ "protobuf>=3",
54
55
  "types-protobuf>=4,<5",
55
56
  "livekit-protocol~=0.3.0",
56
57
  ],
@@ -1,5 +1,6 @@
1
- import pytest
2
1
  import datetime
2
+
3
+ import pytest # type: ignore
3
4
  from livekit.api import AccessToken, TokenVerifier, VideoGrants
4
5
 
5
6
  TEST_API_KEY = "myapikey"
@@ -1,7 +1,8 @@
1
- import pytest
2
- from livekit.api import WebhookReceiver, TokenVerifier, AccessToken
3
- import hashlib
4
1
  import base64
2
+ import hashlib
3
+
4
+ import pytest # type: ignore
5
+ from livekit.api import AccessToken, TokenVerifier, WebhookReceiver
5
6
 
6
7
  TEST_API_KEY = "myapikey"
7
8
  TEST_API_SECRET = "thiskeyistotallyunsafe"
@@ -1 +0,0 @@
1
- __version__ = "0.4.1"
File without changes
File without changes
File without changes