Skip to main content

auditui

A terminal-based user interface (TUI) client for Audible, written in Python 3.

The interface currently ships with a single built-in theme.

Requirements

  • Python 3.10-3.12 (3.13+ is not yet supported by audible module)
  • ffmpeg installed to play audio files.

Features

  • Browse your library: View all your Audible audiobooks in a clean, terminal-based interface
  • Offline playback: Download audiobooks to your local cache and listen without an internet connection
  • Playback controls: Play, pause, seek, adjust playback speed, and navigate between chapters
  • Library management: Filter your library, sort by name or progress, and mark books as finished
  • Progress tracking: See your listening progress for each book and resume where you left off
  • Statistics: View listening statistics and library overview
  • Keyboard-driven: Fully navigable with keyboard shortcuts for efficient use
  • Two-factor authentication: Supports OTP for secure login

Installation

Use pipx to install auditui:

pipx install auditui

Check the version to ensure installation was successful:

auditui --version

All set, run auditui configure to set up authentication, and then auditui to start the TUI.

Workaround for Python 3.13 Linux distributions

On some Linux distributions, Python 3.13 is already the default. In that case, install Python 3.12 manually before using pipx.

For Arch Linux:

yay -S python312

Once you have Python 3.12, run:

pipx install auditui --python python3.12

This workaround is temporary and depends on upstream audible compatibility updates.

Upgrade

Assuming it's already installed, use pipx to upgrade auditui:

pipx upgrade auditui

Keybindings

Key Action
/ Filter library
? Show help screen
enter Play the selected book
space Pause/resume the playback
escape Clear filter
ctrl+left Go to the previous chapter
ctrl+right Go to the next chapter
up Increase playback speed
down Decrease playback speed
left Seek backward 30 seconds
right Seek forward 30 seconds
a Show all/unfinished
d Toggle download/delete
f Mark as finished
n Sort by name
p Sort by progress
q Quit the application
r Refresh view
s Show stats screen

Cache

Books are downloaded to ~/.cache/auditui/books.

Downloaded files use a normalized Author_Title.aax naming format. For example, Stephen King and 11/22/63 become Stephen-King_11-22-63.aax.

The d key toggles the download state for the selected book: if the book is not cached, pressing d will download it; if it's already cached, pressing d will delete it from the cache.

To check the total size of your cache:

du -sh ~/.cache/auditui/books

Or the size of individual books:

du -h ~/.cache/auditui/books/*

Clean all the cache (if necessary) with:

rm -rf ~/.cache/auditui/books/*

Authentication / credentials

Login is handled and credentials are stored in ~/.config/auditui/auth.json.

When running auditui configure, you will be prompted for:

  • Email: Your Audible account email address
  • Password: Your Audible account password (input is hidden)
  • Marketplace locale: The regional marketplace you want to connect to (defaults to US if left empty)

The marketplace locale determines which Audible region you access, affecting available audiobooks in your library. Common marketplace codes include:

  • US - United States (default)
  • UK - United Kingdom
  • DE - Germany
  • FR - France
  • CA - Canada
  • AU - Australia
  • IT - Italy
  • ES - Spain
  • JP - Japan

To change your marketplace after initial configuration, simply run auditui configure again and select a different locale when prompted. But you should probably just stick with the marketplace you used when you first created your Audible account.

OTP is supported if you use a two-factor authentication device.

Hacking

This project uses uv for dependency management, the TUI is built with Textual (currently textual>=8.0.0).

# install dependencies (creates .venv)
$ uv sync
# modify the code...
# ...and run the TUI
$ uv run auditui

Don't forget to run the tests.

Testing

As usual, tests are located in tests directory and use pytest.

Get the dev dependencies:

uv sync --extra dev

And run the tests:

uv run pytest

License

This project is licensed under the GPLv3+ License. See the LICENSE file for details.

Metadata

Release files for auditui 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for auditui 0.2.0
File Size Uploaded Provenance Actions
auditui-0.2.0.tar.gz 78.6 kB Without provenance Details for auditui-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for auditui 0.2.0
File Interpreter ABI Platform Actions
auditui-0.2.0-py3-none-any.whl Python 3 none any Details for auditui-0.2.0-py3-none-any.whl

Total release size: 138.0 kB

Release files / auditui-0.2.0.tar.gz

Download URL auditui-0.2.0.tar.gz
Size 78.6 kB
Tags Source
SHA-256 checksum
How to use checksums
78edb69573db90180df31667316c70f432c20929a3e7b0162015f8e32a46207d
BLAKE2b-256 checksum
How to use checksums
cee1fd740e932826fcccebc025ffc628bf5377131dcd8a28655633623f892b99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / auditui-0.2.0-py3-none-any.whl

Download URL auditui-0.2.0-py3-none-any.whl
Size 59.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b9f5a03e2e44fe3925c819bb1c0dc41e9ff78d3ec963872cea2636715881459
BLAKE2b-256 checksum
How to use checksums
80f3343ef1072fee3be8d77e382de9826d6b8b233b820123db83c4c3a5bae18f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for auditui 0.2.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.

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page