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

Uploaded Python 3

File details

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

File metadata

  • Download URL: xigua-0.1.7.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.7.tar.gz
Algorithm Hash digest
SHA256 5653a6fb3f2cf2ce8d94c9b2edc1e975b6fc57984a0a529ce236a1e235e02306
MD5 5df25fa9a23b52cc8931abb6714a7a5c
BLAKE2b-256 2006a4504df9defcb826bffb633181ce1543ebb673baa029a9fd44e35e9d948f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xigua-0.1.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0aeb8f5ec0efd7cede79b1591945b7198a0e09ac53db2bb73310074daf0c2de2
MD5 19b7ffbc364b74f8d259389ef6231bc8
BLAKE2b-256 0aa9fffb691603511c1fd387cfa3c5b0e52fa3f0d0613f34088d7935bf0d7457

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