Skip to main content

小工具集 — 各类实用小功能

Project description

xigua — 小工具集

各类实用小功能,按模块组织,持续扩展。

已包含模块

media — 本地图片/视频元数据

读取本地图片或视频的全部元数据(中文键名输出)。

from xigua.media import MediaMetadataService

# 读取为字典
data = MediaMetadataService.read("/path/to/photo.jpg")

# 直接格式化输出
print(MediaMetadataService.format_file("/path/to/clip.mp4", fmt="text"))
print(MediaMetadataService.format_file("/path/to/clip.mp4", fmt="yaml", include_md5=False))

命令行:

xigua-media /path/to/photo.jpg
xigua-media /path/to/clip.mp4 --fmt text --no-md5

依赖说明:

  • 图片:Pillow(HEIC/HEIF 需 pip install xigua[heif]
  • 视频:系统需安装 ffprobe

安装

pip install xigua
pip install xigua[heif]   # 支持 HEIC/HEIF

发布

cd /Users/xigua/pypi-publish
./publish xigua --bump patch

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xigua-0.1.6.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xigua-0.1.6-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file xigua-0.1.6.tar.gz.

File metadata

  • Download URL: xigua-0.1.6.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for xigua-0.1.6.tar.gz
Algorithm Hash digest
SHA256 394d2ac4ef82aee34df4d81130f8c7ea7ef5b35abfa6f5e70c39ff129daae77b
MD5 27e272f0ae2a337e1b1b35e37f70d3bf
BLAKE2b-256 388d3b598e742aad693dc656d9381e663c77d9d20aed8b440dd6bfd47561b916

See more details on using hashes here.

File details

Details for the file xigua-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: xigua-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for xigua-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6e55817dda2c83fdbbf6e3a76d3c8efad46ec85904c15e41596254636ce3b4ba
MD5 607f5994782e679376f42575e69822ae
BLAKE2b-256 550969419551941e2143b838493afd20cb06278db8f3a8e0daac4ee346483985

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page