reelens 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,2 @@
1
+ include README.md
2
+ recursive-include tests *.py
reelens-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,91 @@
1
+ Metadata-Version: 2.4
2
+ Name: reelens
3
+ Version: 0.1.0
4
+ Summary: Turn one video or podcast into a structured breakdown report: shots, frames, transcript, rhythm and audio — every field labelled by how it was measured.
5
+ Author: reelens contributors
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/KAN-H/reelens
8
+ Project-URL: Repository, https://github.com/KAN-H/reelens
9
+ Project-URL: Issues, https://github.com/KAN-H/reelens/issues
10
+ Project-URL: Changelog, https://github.com/KAN-H/reelens/blob/main/CHANGELOG.md
11
+ Keywords: video,audio,breakdown,shot-detection,transcription,whisper,ffmpeg,deepseek-harness
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: License :: OSI Approved :: Apache Software License
18
+ Classifier: Operating System :: OS Independent
19
+ Classifier: Topic :: Multimedia :: Video
20
+ Classifier: Topic :: Multimedia :: Sound/Audio :: Analysis
21
+ Requires-Python: >=3.10
22
+ Description-Content-Type: text/markdown
23
+ Provides-Extra: download
24
+ Requires-Dist: yt-dlp>=2024.1; extra == "download"
25
+ Provides-Extra: asr
26
+ Requires-Dist: faster-whisper>=1.0; extra == "asr"
27
+ Provides-Extra: audio
28
+ Requires-Dist: librosa>=0.10; extra == "audio"
29
+ Provides-Extra: scenes
30
+ Requires-Dist: scenedetect>=0.7; extra == "scenes"
31
+ Provides-Extra: images
32
+ Requires-Dist: pillow>=10; extra == "images"
33
+ Provides-Extra: all
34
+ Requires-Dist: yt-dlp>=2024.1; extra == "all"
35
+ Requires-Dist: faster-whisper>=1.0; extra == "all"
36
+ Requires-Dist: librosa>=0.10; extra == "all"
37
+ Requires-Dist: scenedetect>=0.7; extra == "all"
38
+ Requires-Dist: pillow>=10; extra == "all"
39
+
40
+ # reelens
41
+
42
+ **Turn one video or podcast into a structured breakdown report** — shots, keyframes,
43
+ transcript, on-screen text, editing rhythm, audio — where every field says *how it was
44
+ measured* and *what it cannot tell you*.
45
+
46
+ This package is the standalone core: a Python library plus the `reelens` CLI. It is also the
47
+ engine behind the [DeepSeek Harness plugin](https://github.com/KAN-H/reelens) in the same
48
+ repository, which adds six chat tools and a panel on top of it.
49
+
50
+ ![The reelens panel](https://raw.githubusercontent.com/KAN-H/reelens/main/docs/images/panel.png)
51
+
52
+ ## Install
53
+
54
+ ```bash
55
+ pip install "reelens[asr,scenes,audio,images]" # pick the extras you need
56
+ reelens probe # what is available right now
57
+ ```
58
+
59
+ `ffmpeg` and `ffprobe` must be on `PATH`. The core has **no required dependencies** — ASR,
60
+ scene detection, beat analysis and image work are optional extras. Without them those
61
+ sections report `SKIPPED` with a reason instead of failing the run.
62
+
63
+ ## Use
64
+
65
+ ```bash
66
+ reelens run "https://www.bilibili.com/video/BV..." --out out/clip --tier standard
67
+ reelens run /path/to/podcast.mp3 --out out/pod --items transcript,summary
68
+ reelens report out/clip --markdown
69
+ ```
70
+
71
+ Every section of the report carries a status:
72
+
73
+ | Status | Meaning |
74
+ |---|---|
75
+ | `MEASURED` | measured directly, method calibrated |
76
+ | `DERIVED` | a proxy computed from measurements — usable, but labelled as a proxy |
77
+ | `ASSUMED` | an inference; reference only |
78
+ | `UNKNOWN` / `SKIPPED` / `FAILED` | not measured — and why |
79
+
80
+ Non-conclusive sections roll up into `unknowns[]`; a section you requested but did not get
81
+ makes `ok=false` with a non-zero exit code.
82
+
83
+ ## Documentation
84
+
85
+ - [Repository and full documentation](https://github.com/KAN-H/reelens)
86
+ - [Measurement details](https://github.com/KAN-H/reelens/blob/main/docs/DETAIL.md)
87
+ - [Privacy — what leaves your machine](https://github.com/KAN-H/reelens/blob/main/PRIVACY.md)
88
+
89
+ ## License
90
+
91
+ Apache-2.0.
@@ -0,0 +1,52 @@
1
+ # reelens
2
+
3
+ **Turn one video or podcast into a structured breakdown report** — shots, keyframes,
4
+ transcript, on-screen text, editing rhythm, audio — where every field says *how it was
5
+ measured* and *what it cannot tell you*.
6
+
7
+ This package is the standalone core: a Python library plus the `reelens` CLI. It is also the
8
+ engine behind the [DeepSeek Harness plugin](https://github.com/KAN-H/reelens) in the same
9
+ repository, which adds six chat tools and a panel on top of it.
10
+
11
+ ![The reelens panel](https://raw.githubusercontent.com/KAN-H/reelens/main/docs/images/panel.png)
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ pip install "reelens[asr,scenes,audio,images]" # pick the extras you need
17
+ reelens probe # what is available right now
18
+ ```
19
+
20
+ `ffmpeg` and `ffprobe` must be on `PATH`. The core has **no required dependencies** — ASR,
21
+ scene detection, beat analysis and image work are optional extras. Without them those
22
+ sections report `SKIPPED` with a reason instead of failing the run.
23
+
24
+ ## Use
25
+
26
+ ```bash
27
+ reelens run "https://www.bilibili.com/video/BV..." --out out/clip --tier standard
28
+ reelens run /path/to/podcast.mp3 --out out/pod --items transcript,summary
29
+ reelens report out/clip --markdown
30
+ ```
31
+
32
+ Every section of the report carries a status:
33
+
34
+ | Status | Meaning |
35
+ |---|---|
36
+ | `MEASURED` | measured directly, method calibrated |
37
+ | `DERIVED` | a proxy computed from measurements — usable, but labelled as a proxy |
38
+ | `ASSUMED` | an inference; reference only |
39
+ | `UNKNOWN` / `SKIPPED` / `FAILED` | not measured — and why |
40
+
41
+ Non-conclusive sections roll up into `unknowns[]`; a section you requested but did not get
42
+ makes `ok=false` with a non-zero exit code.
43
+
44
+ ## Documentation
45
+
46
+ - [Repository and full documentation](https://github.com/KAN-H/reelens)
47
+ - [Measurement details](https://github.com/KAN-H/reelens/blob/main/docs/DETAIL.md)
48
+ - [Privacy — what leaves your machine](https://github.com/KAN-H/reelens/blob/main/PRIVACY.md)
49
+
50
+ ## License
51
+
52
+ Apache-2.0.
@@ -0,0 +1,61 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "reelens"
7
+ version = "0.1.0"
8
+ description = "Turn one video or podcast into a structured breakdown report: shots, frames, transcript, rhythm and audio — every field labelled by how it was measured."
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = { text = "Apache-2.0" }
12
+ authors = [{ name = "reelens contributors" }]
13
+ keywords = ["video", "audio", "breakdown", "shot-detection", "transcription", "whisper", "ffmpeg", "deepseek-harness"]
14
+ classifiers = [
15
+ "Development Status :: 4 - Beta",
16
+ "Intended Audience :: Developers",
17
+ "Programming Language :: Python :: 3",
18
+ "Programming Language :: Python :: 3.10",
19
+ "Programming Language :: Python :: 3.12",
20
+ "License :: OSI Approved :: Apache Software License",
21
+ "Operating System :: OS Independent",
22
+ "Topic :: Multimedia :: Video",
23
+ "Topic :: Multimedia :: Sound/Audio :: Analysis",
24
+ ]
25
+
26
+ #: 核心依赖刻意保持为**零**:只用标准库 + 外部可执行文件(ffmpeg/ffprobe)。
27
+ #: 可选能力各自一组,装不上就 SKIPPED 并给出安装提示,不影响主流程。
28
+ dependencies = []
29
+
30
+ [project.urls]
31
+ Homepage = "https://github.com/KAN-H/reelens"
32
+ Repository = "https://github.com/KAN-H/reelens"
33
+ Issues = "https://github.com/KAN-H/reelens/issues"
34
+ Changelog = "https://github.com/KAN-H/reelens/blob/main/CHANGELOG.md"
35
+
36
+ [project.optional-dependencies]
37
+ download = ["yt-dlp>=2024.1"]
38
+ asr = ["faster-whisper>=1.0"]
39
+ audio = ["librosa>=0.10"]
40
+ scenes = ["scenedetect>=0.7"]
41
+ images = ["pillow>=10"]
42
+ all = [
43
+ "yt-dlp>=2024.1",
44
+ "faster-whisper>=1.0",
45
+ "librosa>=0.10",
46
+ "scenedetect>=0.7",
47
+ "pillow>=10",
48
+ ]
49
+
50
+ [project.scripts]
51
+ reelens = "reelens.cli:main"
52
+
53
+ [tool.setuptools]
54
+ package-dir = { "" = "src" }
55
+
56
+ [tool.setuptools.packages.find]
57
+ where = ["src"]
58
+
59
+ [tool.pytest.ini_options]
60
+ testpaths = ["tests"]
61
+ addopts = "-q"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,18 @@
1
+ """video-breakdown —— 把一条视频/音频拆成结构化报告(镜头/抽帧/口播/节奏/音频)。
2
+
3
+ 设计要点(读代码前先看这三条)
4
+ ------------------------------
5
+ 1. **每个可测项都带 `status`**(`MEASURED / DERIVED / ASSUMED / UNKNOWN / SKIPPED / FAILED`)。
6
+ "测到"不等于"测对":未经标定的代理指标只能是 `DERIVED`。见 `status.py`。
7
+ 2. **失败不静默**:拿不到的东西写成 `UNKNOWN/SKIPPED` 并附原因,绝不填 0 或空数组冒充。
8
+ `report.assemble()` 会把这些项汇总进 `unknowns[]`,并据此决定 `ok`。
9
+ 3. **不依赖任何私有包**:外部工具(ffmpeg/yt-dlp/whisper/faster-whisper)都走
10
+ `paths.py` 的解析顺序,本机细节不写死。
11
+ """
12
+
13
+ __version__ = "0.1.0"
14
+
15
+ from . import audio, asr, frames, paths, probe, report, shots, sources, status # noqa: F401
16
+
17
+ __all__ = ["audio", "asr", "frames", "paths", "probe", "report", "shots", "sources",
18
+ "status", "__version__"]