Skip to main content

ncmdump-py

A simple package used to dump ncm files to mp3 or flac files, it can:

  • Decrypt and dump .ncm files.
  • Auto add album and cover info into .mp3 or .flac files.
  • Auto try download cover image when there is no cover data in .ncm files.

Install

pip install ncmdump-py

Usage

Command-line tool

python -m ncmdump [-h] [--in-folder IN_FOLDER] [--out-folder OUT_FOLDER] [--dump-metadata] [--dump-cover] [files ...]
usage: ncmdump [-h] [--in-folder IN_FOLDER] [--out-folder OUT_FOLDER] [--dump-metadata] [--dump-cover] [files ...]

Dump ncm files with progress bar and logging info, only process files with suffix '.ncm'

positional arguments:
  files                 Files to dump, can follow multiple files.

optional arguments:
  -h, --help            show this help message and exit
  --in-folder IN_FOLDER
                        Input folder of files to dump.
  --out-folder OUT_FOLDER
                        Output folder of files dumped.
  --dump-metadata       Whether dump metadata.
  --dump-cover          Whether dump album cover.

Import in your code

from ncmdump import NeteaseCloudMusicFile

ncmfile = NeteaseCloudMusicFile("filename.ncm")
ncmfile.decrypt()

print(ncmfile.music_metadata)  # show music metadata

ncmfile.dump_music("filename.mp3")  # auto detect correct suffix

# Maybe you also need dump metadata or cover image
# ncmfile.dump_metadata("filename.json")  
# ncmfile.dump_cover("filename.jpeg")

If you think this project is helpful to you, :star: it and let more people see!

Release files for ncmdump-py 1.1.6

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

Source distribution (sdist)

Source distribution for ncmdump-py 1.1.6
File Size Uploaded
ncmdump_py-1.1.6.tar.gz 8.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ncmdump-py 1.1.6
File Interpreter ABI Platform
ncmdump_py-1.1.6-py3-none-any.whl Python 3 none any Details

Total release size:17.6 kB

Release files / ncmdump_py-1.1.6.tar.gz

Download URL ncmdump_py-1.1.6.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
154dd694c11346f725150c574fb8cfc6aef39269f83fd1c59828981a78aa46c5
BLAKE2b-256 checksum
How to use checksums
91b76897cc5bb109a9929e3f16ae418eef682175e343820487611fc129a4f386
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.24

Release files / ncmdump_py-1.1.6-py3-none-any.whl

Download URL ncmdump_py-1.1.6-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f78cd0ecb887cd43b9fb64c04401f6a468ee63625b53f5083c6d1d3d1145169c
BLAKE2b-256 checksum
How to use checksums
f59cb6ac79a1e71d1e89d9a371295b92b47212ad43c22b6cca5a2f37ba1969a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.24

Release history Release notifications | RSS feed

This release

1.1.6 This release

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

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