Skip to main content

Convert Audible AAX to common audio formats (requires ffmpeg, awk, grep installed in /usr/bin).

Project description

FreeBooks

PyPI version

FreeBooks is a command-line tool for converting Audible AAX files into common audio formats (MP3, M4A, FLAC, WAV, Opus). It bundles all required tables and binaries (including rcrack) and exposes a simple freebooks CLI.

Features

  • Decrypt and convert AAX files using your activation bytes
  • Supports multiple output formats: mp3, m4a, flac, wav, opus
  • Automatically overwrites existing files with -f/--force
  • Verbose logging mode for debugging
  • Self-contained package including native tables & binaries

Prerequisites

Before installing or running FreeBooks, ensure the following executables are installed under /usr/bin and are executable:

  • /usr/bin/ffmpeg
  • /usr/bin/awk
  • /usr/bin/grep

You can verify each is on your $PATH and executable:

ls -l /usr/bin/ffmpeg /usr/bin/awk /usr/bin/grep

Installation

Install with pip:

pip install freebooks

Or, to build and install from source:

git clone https://github.com/leshawn-rice/freebooks.git
cd freebooks
python3 -m pip install --upgrade build
python3 -m build
pip install dist/freebooks-*.whl

Usage

freebooks INPUT_FILE.aax [options]

Arguments

  • INPUT_FILE
    Path to the .aax file you wish to convert.

Options

  • -o, --output-file OUTPUT_FILE
    Destination path for the converted file. Default: output.mp3.
  • -t, --output-type FORMAT
    Output format: one of mp3, m4a, flac, wav, opus. Default: mp3.
  • -f, --force
    Overwrite existing output file without prompting.
  • -v, --verbose
    Enable verbose logging.

Examples

Convert book.aax to chapter1.mp3:

freebooks book.aax -o chapter1.mp3

Convert with overwrite and verbose logging:

freebooks book.aax -o chapter1.m4a -t m4a -f -v

Development

Clone the repo, install developer dependencies, and run tests:

git clone https://github.com/leshawn-rice/freebooks.git
cd freebooks
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade build
pip install -e .[dev]

License

This project is licensed under the PolyForm Noncommercial License 1.0.0.
You may use, copy, modify, and distribute the code for non-commercial purposes only.

Commercial use of the bundled RainbowCrack binary (in freebooks/aax_tables/rcrack) is prohibited unless you obtain a separate commercial license from the RainbowCrack authors.

For full license text, see LICENSE.
For RainbowCrack licensing details, see freebooks/aax_tables/README.md.

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

freebooks-0.1.4.tar.gz (49.2 MB view details)

Uploaded Source

Built Distribution

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

freebooks-0.1.4-py3-none-any.whl (49.2 MB view details)

Uploaded Python 3

File details

Details for the file freebooks-0.1.4.tar.gz.

File metadata

  • Download URL: freebooks-0.1.4.tar.gz
  • Upload date:
  • Size: 49.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for freebooks-0.1.4.tar.gz
Algorithm Hash digest
SHA256 7570abd5f3e1c3f9ecff901c6505af7a10817a15e7df81fd27d5bdc2a8eee855
MD5 289ceaed652bc330ca2143b5e7343c9c
BLAKE2b-256 7e76f4bae7e81d28e05508a6031c37c3c5e296d641796cb765e3558b80df42bf

See more details on using hashes here.

File details

Details for the file freebooks-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: freebooks-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 49.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for freebooks-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a2bd211ee8689b297590b048e3e712cf3497a29c02c76715f0f53e99764b6d71
MD5 2d0337fa30d6e726d6e1988da7cf5764
BLAKE2b-256 6626cd9c83c868d7f09bbea0a624af01d257aa5d1f8fd39880c1e4a10686f464

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