python-mpv-jsonipc 1.3.0__tar.gz → 1.5.0__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.
- {python_mpv_jsonipc-1.3.0/python_mpv_jsonipc.egg-info → python_mpv_jsonipc-1.5.0}/PKG-INFO +5 -1
- {python_mpv_jsonipc-1.3.0 → python_mpv_jsonipc-1.5.0}/README.md +4 -0
- {python_mpv_jsonipc-1.3.0 → python_mpv_jsonipc-1.5.0}/pyproject.toml +1 -1
- {python_mpv_jsonipc-1.3.0 → python_mpv_jsonipc-1.5.0/python_mpv_jsonipc.egg-info}/PKG-INFO +5 -1
- {python_mpv_jsonipc-1.3.0 → python_mpv_jsonipc-1.5.0}/python_mpv_jsonipc.egg-info/SOURCES.txt +2 -0
- python_mpv_jsonipc-1.5.0/python_mpv_jsonipc.py +1377 -0
- {python_mpv_jsonipc-1.3.0 → python_mpv_jsonipc-1.5.0}/tests/test_arg_building.py +36 -2
- python_mpv_jsonipc-1.5.0/tests/test_live_async.py +550 -0
- python_mpv_jsonipc-1.5.0/tests/test_live_teardown.py +324 -0
- python_mpv_jsonipc-1.3.0/python_mpv_jsonipc.py +0 -823
- {python_mpv_jsonipc-1.3.0 → python_mpv_jsonipc-1.5.0}/LICENSE.md +0 -0
- {python_mpv_jsonipc-1.3.0 → python_mpv_jsonipc-1.5.0}/python_mpv_jsonipc.egg-info/dependency_links.txt +0 -0
- {python_mpv_jsonipc-1.3.0 → python_mpv_jsonipc-1.5.0}/python_mpv_jsonipc.egg-info/top_level.txt +0 -0
- {python_mpv_jsonipc-1.3.0 → python_mpv_jsonipc-1.5.0}/setup.cfg +0 -0
- {python_mpv_jsonipc-1.3.0 → python_mpv_jsonipc-1.5.0}/tests/test_api_surface.py +0 -0
- {python_mpv_jsonipc-1.3.0 → python_mpv_jsonipc-1.5.0}/tests/test_live_basic.py +0 -0
- {python_mpv_jsonipc-1.3.0 → python_mpv_jsonipc-1.5.0}/tests/test_live_events.py +0 -0
- {python_mpv_jsonipc-1.3.0 → python_mpv_jsonipc-1.5.0}/tests/test_live_failure.py +0 -0
- {python_mpv_jsonipc-1.3.0 → python_mpv_jsonipc-1.5.0}/tests/test_python_floor.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-mpv-jsonipc
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.5.0
|
|
4
4
|
Summary: Python API to MPV using JSON IPC
|
|
5
5
|
Author-email: Izzie Walton <izzie@iwalton.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -55,6 +55,10 @@ mpv.volume = 20
|
|
|
55
55
|
# You can also send commands.
|
|
56
56
|
mpv.command_name(arg1, arg2)
|
|
57
57
|
|
|
58
|
+
# Or send one without waiting for it. Returns a concurrent.futures.Future.
|
|
59
|
+
mpv.command_async("sub-add", "https://example.com/slow.srt",
|
|
60
|
+
callback=lambda error, result: print(error or "loaded"))
|
|
61
|
+
|
|
58
62
|
# Bind to key press events with a decorator
|
|
59
63
|
@mpv.on_key_press("space")
|
|
60
64
|
def space_handler():
|
|
@@ -41,6 +41,10 @@ mpv.volume = 20
|
|
|
41
41
|
# You can also send commands.
|
|
42
42
|
mpv.command_name(arg1, arg2)
|
|
43
43
|
|
|
44
|
+
# Or send one without waiting for it. Returns a concurrent.futures.Future.
|
|
45
|
+
mpv.command_async("sub-add", "https://example.com/slow.srt",
|
|
46
|
+
callback=lambda error, result: print(error or "loaded"))
|
|
47
|
+
|
|
44
48
|
# Bind to key press events with a decorator
|
|
45
49
|
@mpv.on_key_press("space")
|
|
46
50
|
def space_handler():
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-mpv-jsonipc
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.5.0
|
|
4
4
|
Summary: Python API to MPV using JSON IPC
|
|
5
5
|
Author-email: Izzie Walton <izzie@iwalton.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -55,6 +55,10 @@ mpv.volume = 20
|
|
|
55
55
|
# You can also send commands.
|
|
56
56
|
mpv.command_name(arg1, arg2)
|
|
57
57
|
|
|
58
|
+
# Or send one without waiting for it. Returns a concurrent.futures.Future.
|
|
59
|
+
mpv.command_async("sub-add", "https://example.com/slow.srt",
|
|
60
|
+
callback=lambda error, result: print(error or "loaded"))
|
|
61
|
+
|
|
58
62
|
# Bind to key press events with a decorator
|
|
59
63
|
@mpv.on_key_press("space")
|
|
60
64
|
def space_handler():
|
{python_mpv_jsonipc-1.3.0 → python_mpv_jsonipc-1.5.0}/python_mpv_jsonipc.egg-info/SOURCES.txt
RENAMED
|
@@ -8,7 +8,9 @@ python_mpv_jsonipc.egg-info/dependency_links.txt
|
|
|
8
8
|
python_mpv_jsonipc.egg-info/top_level.txt
|
|
9
9
|
tests/test_api_surface.py
|
|
10
10
|
tests/test_arg_building.py
|
|
11
|
+
tests/test_live_async.py
|
|
11
12
|
tests/test_live_basic.py
|
|
12
13
|
tests/test_live_events.py
|
|
13
14
|
tests/test_live_failure.py
|
|
15
|
+
tests/test_live_teardown.py
|
|
14
16
|
tests/test_python_floor.py
|