ncmdump-py
A simple package used to dump ncm files to mp3 or flac files, it can:
- Decrypt and dump
.ncmfiles. - Auto add album and cover info into
.mp3or.flacfiles. - Auto try download cover image when there is no cover data in
.ncmfiles.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| ncmdump_py-1.1.6.tar.gz | 8.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|