Skip to main content

LLM-powered CLI for batch music metadata tagging

Project description

music-tag-auto

music-tag-web 衍生的批量音乐标签命令行工具。

把识别和选择的工作交给 llm

安装

pip install music-tag-auto
music-tag-auto --help

Quickstart:

export OPENAI_API_KEY=
export OPENAI_MODEL=gpt-4.1-mini
export OPENAI_BASE_URL=https://your-openai-compatible-api
music-tag-auto tag /path/to/musicdir

常用参数:

  • --dry-run:只搜索和选择,不写入标签
  • --output-dir ./tagged-output:默认把打完标签的副本输出到目标目录,并保留原相对目录结构
  • --in-place:直接覆盖源文件,不生成副本
  • --limit 10:最多处理 10 首
  • --report-file result.json:指定报告输出路径
  • --source acoustid:启用指纹识别源,要求本机已安装 fpcalc
  • --llm-base-url https://your-openai-compatible-api:指定 llm 基础 url
  • --llm-api-key "$OPENAI_API_KEY":指定 llm api key
  • --llm-model gpt-4.1-mini:指定 llm 模型

也支持环境变量:

  • OPENAI_BASE_URL
  • OPENAI_API_KEY
  • OPENAI_MODEL

netease 源需要登录态

  • NETEASE_COOKIE
  • NETEASE_COOKIE_FILE

发布

构建:

uv build

上传到 PyPI:

uv publish

或者使用 twine:

python -m twine upload dist/*

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

music_tag_auto-1.0.0.tar.gz (44.4 kB view details)

Uploaded Source

Built Distribution

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

music_tag_auto-1.0.0-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file music_tag_auto-1.0.0.tar.gz.

File metadata

  • Download URL: music_tag_auto-1.0.0.tar.gz
  • Upload date:
  • Size: 44.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for music_tag_auto-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5196adc12205c24e24c42152195741d561ae05b96fbb6d917c8d3c96842a3f05
MD5 a7c40ab75baf9e12c5e1d6cb144e85e4
BLAKE2b-256 3b2409f3be941457cf60f38eae8048449844ce8190ad1573b4e7507bc4ff2ed6

See more details on using hashes here.

File details

Details for the file music_tag_auto-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: music_tag_auto-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for music_tag_auto-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15bc14630d8c45fff25a6b6da3eadcd167f6e031ee2568fe48cac0c10672afa6
MD5 1b07f55790f21ba658683fa543693314
BLAKE2b-256 cf4693ab0f590ade0a15efd52c99d1900405e654d20b0b00a1cb13a8188f9ccd

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