Skip to main content

Dump ncm files to mp3 or flac files.

Project description

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!

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

ncmdump_py-1.1.6.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

ncmdump_py-1.1.6-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file ncmdump_py-1.1.6.tar.gz.

File metadata

  • Download URL: ncmdump_py-1.1.6.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.24

File hashes

Hashes for ncmdump_py-1.1.6.tar.gz
Algorithm Hash digest
SHA256 154dd694c11346f725150c574fb8cfc6aef39269f83fd1c59828981a78aa46c5
MD5 2633c788cd5fc570f9cb167c407628cd
BLAKE2b-256 91b76897cc5bb109a9929e3f16ae418eef682175e343820487611fc129a4f386

See more details on using hashes here.

File details

Details for the file ncmdump_py-1.1.6-py3-none-any.whl.

File metadata

  • Download URL: ncmdump_py-1.1.6-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.24

File hashes

Hashes for ncmdump_py-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f78cd0ecb887cd43b9fb64c04401f6a468ee63625b53f5083c6d1d3d1145169c
MD5 ded8289135af874de1b0764f127f1570
BLAKE2b-256 f59cb6ac79a1e71d1e89d9a371295b92b47212ad43c22b6cca5a2f37ba1969a4

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