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

Uploaded Python 3

File details

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

File metadata

  • Download URL: xigua-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 095d592bff3022035c7face741bad96e521637126bba5d4a070506b41ce0fbb3
MD5 f244e899529c5a3ae1673e158024568c
BLAKE2b-256 a2fce7daa4790888ca440a41f80db2618c8f6bb291ef5fb4f543c208ed7d19d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xigua-0.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 56e9a68524cfe664bc953e08ba6c066b6a0fc4115be87d73c8a4958af2bd9c97
MD5 6e9833c956c1ba55d280f202458ccb0b
BLAKE2b-256 531aae0bc00822278f0908e798b9f3de3aa4d9b04457478289a199aa6079a868

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