tinytag/tinytag 源码下载与部署教程

项目概述

Python library for reading audio file metadata

项目地址

https://github.com/tinytag/tinytag

项目页面预览

tinytag/tinytag preview

关键指标

  • Stars:796
  • 主要语言:Python
  • License:MIT License
  • 最近更新:2025-12-15T21:13:11Z
  • 默认分支:master

本站高速下载(国内可用)

点击下载(本站镜像)
– SHA256:f97a5943f4f12cfb4a8b8144038903aad9713deddf3e70ef833d2a843bddaa7c

安装部署要点(README 精选)

Install

python3 -m pip install tinytag

Usage

tinytag only provides the minimum needed for reading metadata, and presents
it in a simple format. It can determine track number, total tracks, title,
artist, album, year, duration and more.

from tinytag import TinyTag
tag: TinyTag = TinyTag.get('/some/music.mp3')

print(f'This track is by {tag.artist}.')
print(f'It is {tag.duration:.2f} seconds long.')

[!WARNING]
The ignore_errors parameter of TinyTag.get() is obsolete as of tinytag
2.0.0, and will be removed in the future.

Alternatively you can use tinytag directly on the command line:

$ python3 -m tinytag /some/music.mp3
{
  "filename": "/some/music.mp3",
  "filesize": 3243226,
  "duration": 173.52,
  "channels": 2,
  "bitrate": 128,
  "samplerate": 44100,
  "artist": [
    "artist name"
  ],
  "album": [
    "album name"
  ],
  "title": [
    "track name"
  ],
  "track": 4,
  "genre": [
    "Jazz"
  ],
  "year": [
    "2010"
  ],
  "comment": [
    "Some comment here"
  ]
}

Check python3 -m tinytag --help for all CLI options, for example other
output formats.

常用命令(从 README 提取)

python3 -m pip install tinytag

通用部署说明

  1. 下载源码并阅读 README
  2. 安装依赖(pip/npm/yarn 等)
  3. 配置环境变量(API Key、模型路径、数据库等)
  4. 启动服务并测试访问
  5. 上线建议:Nginx 反代 + HTTPS + 进程守护(systemd / pm2)

免责声明与版权说明

本文仅做开源项目整理与教程索引,源码版权归原作者所有,请遵循对应 License 合规使用。

© 版权声明
THE END
喜欢就支持一下吧
点赞15 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容