在浏览器中可视化浏览本地图片/视频:分类、搜索、分页、Lightbox,内置本地 HTTP 服务且不在页面/日志中暴露真实路径
Project description
viz-media-in-html
把本地图片/视频做成一个可交互的 HTML 画廊,并启动一个本地 HTTP 服务来浏览:支持分类、搜索、分页、Lightbox、键盘快捷键、自动翻页。
这个包默认不在 HTML/控制台输出中暴露真实本地路径:页面内的媒体资源通过 /media/<id> 访问。
安装
pip install viz-media-in-html
使用
- glob 模式(推荐)
viz-media-in-html --input "**/*.jpg" --port 18000 --open
- txt 列表模式
- 每行:
路径[空格或TAB]类别(类别可省略)
- 每行:
viz-media-in-html --input list.txt --open
常用参数
--bind:绑定地址,默认0.0.0.0(局域网可访问;注意防火墙/安全)--port:起始端口,若被占用会自动向上寻找可用端口--html:可选,写出一个静态 HTML 文件(默认index.html)--per-page-img / --per-page-video:分页大小--open:启动后自动打开浏览器
发布到 PyPI(示例)
python -m pip install -U build twine
python -m build
python -m twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
viz_media_in_html-1.0.0.tar.gz
(14.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file viz_media_in_html-1.0.0.tar.gz.
File metadata
- Download URL: viz_media_in_html-1.0.0.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac8424e7d9cb50cf62208bc24655a4dee9a04a309c8bb565cf4884315596feee
|
|
| MD5 |
02a03280944ad079ea8bcebd6f3dd7e0
|
|
| BLAKE2b-256 |
bd97ede3f01848295be9ae45ce805cfc693393ad58aa912e2ea0773359da4ffa
|
File details
Details for the file viz_media_in_html-1.0.0-py3-none-any.whl.
File metadata
- Download URL: viz_media_in_html-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81be92106549008e4a0a636b2bf639f961b09aca30522cf6a19e702640087719
|
|
| MD5 |
b1c958c8aaf252d93f396c42c626e6df
|
|
| BLAKE2b-256 |
4246821510defe6bda88f6e0f24965775921f6498f4e28a8905e5f55b30a22ac
|