Skip to main content

Nonencm

PyPI License

📖 简介

pyncm 是一个功能强大的 ncm 处理工具。 QQMusicApi 是一个功能强大的 异步 API 库。 noneprompt 是 NoneBot 设计的控制台交互的提示工具包。

本项目实际上就是把这三个东西 vibe 在一起.

另外, 本项目仅用于学习研究封装与工具开发经验, 不提供任何支持.

🚀 安装与使用

方式一:通过 PyPI 安装 (推荐)

如果您熟悉 Python 环境,可以直接通过 pip 安装:

pip install nonencm
nonencm

如果你希望使用目标文件夹的图片报表功能, 需要安装 pil-utils 依赖:

pip install "nonencm[pil-utils]"
nonencm

方式二:下载可执行文件

对于没有 Python 环境的用户,可以在 Releases 页面下载对应系统的可执行文件。Windows 用户下载后直接双击即可。

在终端中运行方法:

  • Windows: win + r,输入 cmd,回撤出现黑窗口,拖入 .exe 文件,回车运行
  • macOS: open nonencm-macos-vX.X.X,打开访达找到所在文件夹,右键底部文件夹,选择 在终端中打开 输入
    chmod + x nonencm-macos-vX.X.X
    ./nonencm-macos-vX.X.X
    

使用前须知

  1. 请先登录
    1. N 推荐使用二维码登录
    2. Q 推荐使用二维码登录
    3. 因为我别的都没测
  2. 输出目录共用,Detection / Export 会对目录内所有歌曲生效(无论来源于 N 还是 Q)。

返回上一级/取消等操作, 请使用 ctrl + c 或 cmd + c(Mac)

功能一览

Settings

通用设置

  • Output Directory
    • 选择下载文件的保存位置
  • Filename Template: {title} - {artist}
    • {title}:歌曲名
    • {artist}/{artists}:歌手(多个时逗号分隔)
    • {album}:专辑名
    • {track}:同 {title}(保留的兼容键)
    • {id}:歌曲 ID
  • Overwrite Files: No / Yes
    • 如果已经存在是否覆盖

N Settings(二级菜单)

  • Audio Quality: standard
    • Standard (standard) 默认
    • Higher (exhigh)
    • Lossless (lossless)
    • Hi-Res (hires)
  • Preferred Format: auto
    • auto:由接口返回的最佳可用格式决定(在较低的 Audio Quality 情况下通常是 mp3)
    • mp3:即便有高码率/无损也会强制转为 mp3 级别的下载。
    • flac:会优先无损格式,不足时再退回其他格式。
  • Download Lyrics: No
    • 下载同时附带歌词
  • Use Download API: No / Yes
    • 网易云黑胶用户拥有每个月300-500次的下载机会
    • 否则使用播放Api进行下载,可能会有部分音质受限的情况

Q Settings(二级菜单)

  • Preferred File Type
    • mp3_320:高码率 mp3
    • mp3_128:标准 mp3
    • flac:无损 flac(可用时)

Login

平台独立登录

  • N Account:二维码 / 手机号 / 匿名登录,支持注销,登录后生成 session.pyncm
  • Q Account:二维码(Q / W)或短信验证码登录,支持注销,登录后生成 session.qqmusic.json
  • 未登录的平台不会显示对应的搜索入口

Search & Download

  • 支持直接传入歌单链接下载(N / Q)
  • 支持单行或多行关键字搜索并下载(换行分隔;逐首确认后静默下载,可继续下一首)
  • 下载后复用通用的检测/导出能力(含残破文件检测,需登录/VIP 时触发)

Export

导出目标文件夹的歌单报表

  • Image Report (JPG)
  • CSV
  • TXT
  • Markdown

Detection

对目标文件夹进行检测与处理

  • Check Failed Downloads
    • 会根据下载策略进行残破文件(需vip/登陆)的检测和二次下载确认
  • Check Possible Duplicates
    • 对目标文件夹进行匹配、检测可能的重复文件并让用户选择

配置文件

  • 本项目会在启动的文件夹生成 nonencm_config.yaml 文件, 用于保存全局配置
  • 登录后, N 会生成 session.pyncm,Q 会生成 session.qqmusic.json,用于保存登录状态

📄 许可证

额别急我研究一下。

Metadata

Release files for nonencm 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonencm 0.2.4
File Size Uploaded Provenance Actions
nonencm-0.2.4.tar.gz 28.3 kB With provenance Details for nonencm-0.2.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nonencm 0.2.4
File Interpreter ABI Platform Actions
nonencm-0.2.4-py3-none-any.whl Python 3 none any Details for nonencm-0.2.4-py3-none-any.whl

Total release size: 56.1 kB

Release files / nonencm-0.2.4.tar.gz

Download URL nonencm-0.2.4.tar.gz
Size 28.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8a1e365c82737e236cc54cc0cd96609b629b1d91732554992ac34ebf62093fe8
BLAKE2b-256 checksum
How to use checksums
0dd7ffdb9ab24f158ffcb96b4640e1b5a9df5ecbae7f9406e21916124627923d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 31, 2025.

Transparency log

Release files / nonencm-0.2.4-py3-none-any.whl

Download URL nonencm-0.2.4-py3-none-any.whl
Size 27.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ecfc26913f5ed7b2d2f19fcec1d69ef7db8b452443c6174664805a5cb8e59fac
BLAKE2b-256 checksum
How to use checksums
0990a0f30864e1a37a6a0b0941389c47d86232ddbe8cbe5c12f3c679cc7d6336
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 31, 2025.

Transparency log

Security for nonencm 0.2.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nonencm-0.2.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 31, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page