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

Uploaded Python 3

File details

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

File metadata

  • Download URL: music_tag_auto-0.1.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-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7ea034299b1c2929caa8ad95a22dfc72ce2074de346c6174a68f3148c564c4b3
MD5 4d5785eab353b44d240be5ea084742fd
BLAKE2b-256 e7fb79140570ceb30c316ae21cbf5a92c6f900b27e00c1ffff0e2d1a415f806f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: music_tag_auto-0.1.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-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7cedb0ea06b7bbe934d3349b036129030af6ecac66c220d648459512666fb2b
MD5 91f22df7540f63a5da6bdf13b9450e99
BLAKE2b-256 3f33608626c3e31f0947c00b8940db4ec27c65d13d737c9a19754dbb27652326

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