BPM4B Python CLI
The BPM4B Python package provides document structure detection and splitting, audiobook creation, audio extraction, and audio merging from the command line. Audio commands use FFmpeg.
BPM4B's web and desktop apps have a redesigned interface with dedicated workspaces for audiobook, audio, book, and chapter tasks. The former Audiobook Maker has been removed; audiobook creation is now handled by focused tools such as MP3 → M4B, Single MP3 + Chapter Manifest, Folder → M4B, and M4B Chapter Tools. This Python package is the CLI edition; see the repository README for the graphical apps.
Install
python -m pip install bpm4b
bpm4b --help
Requirements: Python 3.9 or later and FFmpeg/FFprobe on PATH. Set FFMPEG_PATH or FFPROBE_PATH if they are installed in a nonstandard location.
Commands
# Detect document structure and split a document into sections
bpm4b detect book.txt --no-days
bpm4b split book.txt
# Create an M4B from chapter audio files
bpm4b m4b -i "chapter1.mp3,chapter2.mp3" -o audiobook.m4b -t "Chapter 1,Chapter 2" -b 128k
# Extract audio or merge files
bpm4b extract audiobook.m4b extracted.mp3 --bitrate 192k
bpm4b merge -i "part1.mp3,part2.mp3" -o merged.mp3
Development
cd python
python -m pip install -e .[dev]
python tests/run.py
python -m build
The Python CLI shares the document structure and audio workflows with the Node CLI. See the repository's src-cli/ and electron/ipc/ directories for the application implementations.
Metadata
Release files for bpm4b 14.0.0
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 |
|---|---|---|---|---|
| bpm4b-14.0.0.tar.gz | 8.0 kB | With provenance | Details for bpm4b-14.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bpm4b-14.0.0-py3-none-any.whl | Python 3 | none | any | Details for bpm4b-14.0.0-py3-none-any.whl |
Total release size: 15.9 kB
Release files / bpm4b-14.0.0.tar.gz
| Download URL | bpm4b-14.0.0.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3082468043f7dcc8c50fedd625a704ed1016bf23647849ab68634050bc3696f6
|
|
BLAKE2b-256 checksum How to use checksums |
6544e8c1fc8c477bb31a34cd523f293ba2e082b42e5115aaf10828af73744be2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 11, 2026.
Transparency logRelease files / bpm4b-14.0.0-py3-none-any.whl
| Download URL | bpm4b-14.0.0-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc85c8b107f275739f91eb2121b5f7e3c5a1c2860f8465b9885b5a5d6fb55d2e
|
|
BLAKE2b-256 checksum How to use checksums |
3a614d1c943282583528d827f60af70ef25f7b18353b03930d65b73f9c88dbba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 11, 2026.
Transparency logSecurity for bpm4b 14.0.0
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
Both files in this release have been uploaded with provenance metadata.
Attestation for bpm4b-14.0.0.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 Oct 11, 2026.
Transparency logA 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.