Skip to main content

照片墙

这是一个纯本地单页index.html+assets.js的照片墙应用,通过photowall index子命令扫描相册目录生成tags.json、assets.js并输出index.html,无需服务端即可在浏览器中展示照片。

常用命令

  • photowall index:一键全量索引。从指定相册根目录(--home,默认为当前工作目录)查找 assets/ 媒体文件,自动进行 AI 打标生成 tags.json、提取元数据生成 assets.js,并输出 index.html 网页文件。
    • --home:相册根目录路径(可选,默认当前目录)。
    • --title:相册标题(可选,默认使用相册文件夹名)。
    • --force:强制重新推理 AI 标签并重新解析所有媒体文件。
    • --skip-tags:跳过 AI 标签生成步骤。
  • photowall tags:仅使用 WD14 Tagger 自动为图片打标并生成 tags.json。
  • photowall assets:仅扫描 assets/ 目录并融合标签生成 assets.js。

快速开始

  1. 安装 photowall:
    uv tool install photowall
    
  2. 把图片和视频放进 assets 文件夹,不需要特别分门别类,直接扔进去就行。

    最开始没有 assets 文件夹需要手动创建。

  3. 运行 photowall index 生成相册索引。
  4. 打开生成的 index.html 即可。

    如果更新了 assets 的内容则再次运行 photowall index 即可。

  5. 如果想启动本地服务器也可以直接运行 start.bat,会自动启动本地服务器并使用浏览器打开。

Metadata

Release files for PhotoWall 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PhotoWall 0.1.0
File Size Uploaded Provenance Actions
photowall-0.1.0.tar.gz 80.2 kB Without provenance Details for photowall-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for PhotoWall 0.1.0
File Interpreter ABI Platform Actions
photowall-0.1.0-py3-none-any.whl Python 3 none any Details for photowall-0.1.0-py3-none-any.whl

Total release size: 137.2 kB

Release files / photowall-0.1.0.tar.gz

Download URL photowall-0.1.0.tar.gz
Size 80.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1dc3f5283bca4551a4c34a8d4a60f9abbd46d8153cf12b69174311b22046e520
BLAKE2b-256 checksum
How to use checksums
bb186ec655fa5b8eb1103d1842f2e8c377962318d61c2916f60548a2fd64547c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / photowall-0.1.0-py3-none-any.whl

Download URL photowall-0.1.0-py3-none-any.whl
Size 57.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9087137fcbe6375e130467585add9bc38e1ee766a768b713b88fdc93d4ded8a2
BLAKE2b-256 checksum
How to use checksums
35a8e1bf17495593ed8b33d21192d5109a54670fd2f6f4268bfed9e41469658d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for PhotoWall 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page