streamlit-nle 0.1.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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Dan Sheils
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ recursive-include streamlit_video_editor/frontend/build *
@@ -0,0 +1,43 @@
1
+ Metadata-Version: 2.2
2
+ Name: streamlit-nle
3
+ Version: 0.1.0
4
+ Summary: Non-linear video editor component for Streamlit with multi-track timeline
5
+ Home-page: https://github.com/RhythrosaLabs/streamlit-video-editor
6
+ Author: Dan Sheils
7
+ Author-email:
8
+ Project-URL: Bug Tracker, https://github.com/RhythrosaLabs/streamlit-video-editor/issues
9
+ Project-URL: Changelog, https://github.com/RhythrosaLabs/streamlit-video-editor/blob/main/CHANGELOG.md
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Operating System :: OS Independent
13
+ Requires-Python: >=3.8
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Requires-Dist: streamlit>=1.28.0
17
+ Dynamic: author
18
+ Dynamic: classifier
19
+ Dynamic: description
20
+ Dynamic: description-content-type
21
+ Dynamic: home-page
22
+ Dynamic: project-url
23
+ Dynamic: requires-dist
24
+ Dynamic: requires-python
25
+ Dynamic: summary
26
+
27
+ # streamlit-video-editor
28
+
29
+ A non-linear video editor component for Streamlit featuring a multi-track timeline, drag-and-drop clips, audio alignment, and more.
30
+
31
+ ## Installation
32
+
33
+ ```bash
34
+ pip install streamlit-video-editor
35
+ ```
36
+
37
+ ## Usage
38
+
39
+ ```python
40
+ from streamlit_video_editor import st_video_editor
41
+
42
+ result = st_video_editor(key="editor")
43
+ ```
@@ -0,0 +1,17 @@
1
+ # streamlit-video-editor
2
+
3
+ A non-linear video editor component for Streamlit featuring a multi-track timeline, drag-and-drop clips, audio alignment, and more.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install streamlit-video-editor
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```python
14
+ from streamlit_video_editor import st_video_editor
15
+
16
+ result = st_video_editor(key="editor")
17
+ ```
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,25 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ setup(
4
+ name="streamlit-nle",
5
+ version="0.1.0",
6
+ author="Dan Sheils",
7
+ author_email="",
8
+ description="Non-linear video editor component for Streamlit with multi-track timeline",
9
+ long_description=open("README.md").read(),
10
+ long_description_content_type="text/markdown",
11
+ url="https://github.com/RhythrosaLabs/streamlit-video-editor",
12
+ project_urls={
13
+ "Bug Tracker": "https://github.com/RhythrosaLabs/streamlit-video-editor/issues",
14
+ "Changelog": "https://github.com/RhythrosaLabs/streamlit-video-editor/blob/main/CHANGELOG.md",
15
+ },
16
+ packages=find_packages(),
17
+ include_package_data=True,
18
+ classifiers=[
19
+ "Programming Language :: Python :: 3",
20
+ "License :: OSI Approved :: MIT License",
21
+ "Operating System :: OS Independent",
22
+ ],
23
+ python_requires=">=3.8",
24
+ install_requires=["streamlit>=1.28.0"],
25
+ )
@@ -0,0 +1,43 @@
1
+ Metadata-Version: 2.2
2
+ Name: streamlit-nle
3
+ Version: 0.1.0
4
+ Summary: Non-linear video editor component for Streamlit with multi-track timeline
5
+ Home-page: https://github.com/RhythrosaLabs/streamlit-video-editor
6
+ Author: Dan Sheils
7
+ Author-email:
8
+ Project-URL: Bug Tracker, https://github.com/RhythrosaLabs/streamlit-video-editor/issues
9
+ Project-URL: Changelog, https://github.com/RhythrosaLabs/streamlit-video-editor/blob/main/CHANGELOG.md
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Operating System :: OS Independent
13
+ Requires-Python: >=3.8
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Requires-Dist: streamlit>=1.28.0
17
+ Dynamic: author
18
+ Dynamic: classifier
19
+ Dynamic: description
20
+ Dynamic: description-content-type
21
+ Dynamic: home-page
22
+ Dynamic: project-url
23
+ Dynamic: requires-dist
24
+ Dynamic: requires-python
25
+ Dynamic: summary
26
+
27
+ # streamlit-video-editor
28
+
29
+ A non-linear video editor component for Streamlit featuring a multi-track timeline, drag-and-drop clips, audio alignment, and more.
30
+
31
+ ## Installation
32
+
33
+ ```bash
34
+ pip install streamlit-video-editor
35
+ ```
36
+
37
+ ## Usage
38
+
39
+ ```python
40
+ from streamlit_video_editor import st_video_editor
41
+
42
+ result = st_video_editor(key="editor")
43
+ ```
@@ -0,0 +1,15 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.md
4
+ setup.py
5
+ streamlit_nle.egg-info/PKG-INFO
6
+ streamlit_nle.egg-info/SOURCES.txt
7
+ streamlit_nle.egg-info/dependency_links.txt
8
+ streamlit_nle.egg-info/requires.txt
9
+ streamlit_nle.egg-info/top_level.txt
10
+ streamlit_video_editor/__init__.py
11
+ streamlit_video_editor/frontend/build/asset-manifest.json
12
+ streamlit_video_editor/frontend/build/index.html
13
+ streamlit_video_editor/frontend/build/static/js/main.77f923c8.js
14
+ streamlit_video_editor/frontend/build/static/js/main.77f923c8.js.LICENSE.txt
15
+ streamlit_video_editor/frontend/build/static/js/main.77f923c8.js.map
@@ -0,0 +1 @@
1
+ streamlit>=1.28.0
@@ -0,0 +1 @@
1
+ streamlit_video_editor
@@ -0,0 +1,38 @@
1
+ import os
2
+ import streamlit.components.v1 as components
3
+
4
+ _RELEASE = True
5
+
6
+ if _RELEASE:
7
+ _component_func = components.declare_component(
8
+ "streamlit_video_editor",
9
+ path=os.path.join(os.path.dirname(__file__), "frontend/build"),
10
+ )
11
+ else:
12
+ _component_func = components.declare_component(
13
+ "streamlit_video_editor",
14
+ url="http://localhost:3001",
15
+ )
16
+
17
+
18
+ def st_video_editor(tracks=None, height=700, key=None):
19
+ """
20
+ Render a non-linear video editor with multi-track timeline,
21
+ media import, video preview, razor tool, and undo/redo.
22
+
23
+ Parameters
24
+ ----------
25
+ tracks : list[dict], optional
26
+ Initial track data. Each track has name, type ('video'|'audio'),
27
+ and clips list.
28
+ height : int
29
+ Component height in pixels.
30
+ key : str, optional
31
+ Streamlit widget key for state isolation.
32
+
33
+ Returns
34
+ -------
35
+ dict | None
36
+ Timeline state with tracks, playhead position.
37
+ """
38
+ return _component_func(tracks=tracks, height=height, key=key, default=None)
@@ -0,0 +1,10 @@
1
+ {
2
+ "files": {
3
+ "main.js": "./static/js/main.77f923c8.js",
4
+ "index.html": "./index.html",
5
+ "main.77f923c8.js.map": "./static/js/main.77f923c8.js.map"
6
+ },
7
+ "entrypoints": [
8
+ "static/js/main.77f923c8.js"
9
+ ]
10
+ }
@@ -0,0 +1 @@
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Streamlit Video Editor</title><script defer="defer" src="./static/js/main.77f923c8.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>