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.4.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.4-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xigua-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 ebadc4a8c3c5edd3fbddc8b08f1e13858e97d8dd6d8bf800be7f3c52933772fe
MD5 b1d4dd13d5864c60a8cd6d15394b5eca
BLAKE2b-256 e8f601c4c1a64598ff54498ff764fb752c73e3c16f6f68e94be7e44d5d60ba25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xigua-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 50bb1202dfa3a0033fef776bf79e121f3c8c0e1dd5570314204321590118350a
MD5 07ac03ed2473e72be20a6d01dbe63639
BLAKE2b-256 d60092922ee6cc325d87cebf005c0d6b3a34187bc19091c93313828c9c224acf

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