Key BPM Renamer
key_bpm_renamer is a Python command-line tool that automatically analyzes audio files (MP3, WAV, FLAC), extracts the musical key and beats per minute (BPM), renames the files with this information, and embeds the key and BPM into the metadata (for MP3 files).
Features
- Extracts the musical key and BPM from audio files.
- Renames the audio files by appending the detected key and BPM.
- Embeds the key and BPM in the metadata of MP3 files (using
eyed3). - Supports MP3, WAV, and FLAC audio formats.
- Works with directories and preserves folder structure.
Installation
To install key_bpm_renamer, you can use pip:
pip install key_bpm_renamer
Usage
After installing the dependencies, you can use the key_bpm_renamer command to process your audio files.
Command Structure
key_bpm_renamer -i <input_directory> -o <output_directory>
-i <input_directory>: The path to the directory containing the audio files you want to process. -o <output_directory>: The path to the directory where the renamed audio files will be saved.
Example
key_bpm_renamer -i ./input_audio_files -o ./output_audio_files
This command will:
- Analyze all the audio files in the
input_audio_filesdirectory. - Detect the key and BPM of each file.
- Rename the files with the format
<original_filename>_<key>_<bpm>bpm.<extension>. - Save the renamed files in the
output_audio_filesdirectory. - Embed the detected key and BPM into the metadata of each audio file.
Notes
- Supported audio formats:
.mp3,.wav,.flac - The key will be extracted using Essentia’s
KeyExtractorand the BPM usingRhythmExtractor. - Files are copied (not moved), so the original files remain untouched.
Metadata
Release files for key-bpm-renamer 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| key_bpm_renamer-0.1.2.tar.gz | 4.5 kB | Without provenance | Details for key_bpm_renamer-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| key_bpm_renamer-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for key_bpm_renamer-0.1.2-py3-none-any.whl |
Total release size: 9.5 kB
Release files / key_bpm_renamer-0.1.2.tar.gz
| Download URL | key_bpm_renamer-0.1.2.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4eb3e6e6ffb8ba87f8b247b2ad96292f508d9f707a155d5187c5a37aebff69c9
|
|
BLAKE2b-256 checksum How to use checksums |
76466fabec55be5075a271a1b935ad97feb5481fd51d4dc15f7dc564c10c7356
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.2
|
Release files / key_bpm_renamer-0.1.2-py3-none-any.whl
| Download URL | key_bpm_renamer-0.1.2-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb1e8f14d7698e31012ac790c2d83819ddca864fc6985c60a4c57d77e2d6eb75
|
|
BLAKE2b-256 checksum How to use checksums |
1965795624167c606f7ae333a7842a431287462f1f409730f88158cc9968e632
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.2
|
Security for key-bpm-renamer 0.1.2
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.