volumito
Python client library and CLI tool for Volumio.
Overview
volumito is a Python library and a command-line tool
that allows you to interact with your
Volumio
player, programmatically or on a shell.
Features
- Clean Python API to connect to and control a Volumio player
- Built-in comprehensive command-line tool with a lot of options
- Type-safe implementation with full type hints
- Comprehensive test coverage (100%)
Requirements
- Python 3.13 or later
- A running Volumio player
Installation
From PyPI
Activate your virtual environment (volumito_env),
and install:
(volumito_env) $ pip install volumito
From Source
Clone the repository and install from source in a virtual environment:
$ git clone https://github.com/pettarin/volumito
$ cd volumito
$ # here Micromamba is used, choose your favorite
$ # package/virtual environment manager
$ micromamba env create -f environment.yml
$ micromamba activate volumito_dev
(volumito_dev) $ pip install -e .
(volumito_dev) $ # or
(volumito_dev) $ make install-e-this
(volumito_dev) $ # for developing volumito, use the dev configuration:
(volumito_dev) $ pip install -e .[dev]
(volumito_dev) $ # or
(volumito_dev) $ make install-e-this-dev
Usage
Basic Command
Query a Volumio instance at the default location (volumio.local:3000):
volumito info
Connection Options
Specify custom connection parameters:
# Custom host
volumito info --host my-volumio.local
volumito info --host 192.168.1.100
# HTTPS connection
volumito info --scheme https
# Custom ports
volumito info --rest-api-port 8080 --mpd-port 7000
# Custom timeout (in seconds)
volumito info --timeout 10
The default MPD port is 6600, as used by Volumio 4.
For Volumio 3 and earlier, which use MPD port 6599,
pass --mpd-port 6599.
Output Formats
Choose from multiple output formats:
# Pretty JSON with 4-space indentation (default)
volumito info --format pretty
# Compact JSON with 2-space indentation
volumito info --format json
# Human-readable table
volumito info --format table
# Raw unformatted JSON
volumito info --raw
Field Filtering
Control which fields are displayed:
# Show only key playback information (default)
volumito info --fields short
# Show all available fields
volumito info --fields all
Short fields include:
- position
- title
- artist
- album
- samplerate
- bitdepth
- channels
- service
- duration
Verbosity Control
# Verbose mode - show connection details
volumito info --verbose
# Quiet mode - suppress error messages
volumito info --quiet
Examples
Combine options for specific use cases:
# Table format with all fields
volumito info --format table --fields all
# Pipe to jq for advanced JSON processing
volumito info --raw | jq '.title, .artist'
# Save state to file
volumito info --format json > volumio_state.json
# Monitor playback every 5 seconds
while true; do
clear
volumito info --format table
sleep 5
done
Album Art
Get the current album art URL:
# Get URL only
volumito track albumart
# Download album art to file
volumito track albumart -o albumart.jpg
# With custom host and save path
volumito track albumart --host 192.168.1.100 -o /path/to/albumart.jpg
API Reference
TODO
Releases And Changelog
See the CHANGELOG file for the list of releases and their changes.
Development
See DEVELOPMENT.md for how to set up a development environment, run the tests, the project structure, and contributing.
License
This project is licensed under the GNU General Public License v3.0 or later (GPLv3+).
See the LICENSE file for details.
Authors
- Alberto Pettarin (Web)
Legal Disclaimers
Volumio and Volumio logo are a registered trademark of Volumio SRL, a company registered in Italy (VAT ID: IT07009020483).
Please refer to the Volumio Terms Of Service.
This project and its authors are not affiliated nor endorsed by Volumio SRL.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file volumito-0.0.5.tar.gz.
File metadata
- Download URL: volumito-0.0.5.tar.gz
- Upload date:
- Size: 27.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44ec2edce97eb93c550cb62bae93f1f7fc98f00c260814429675d520f5d5653c
|
|
| MD5 |
fe5376a7ba20fd2d281a86d972982ea2
|
|
| BLAKE2b-256 |
5ed3aa46a8144cc2b73ab48c73490c458869ad7192649e3b23682e5439569bf9
|
File details
Details for the file volumito-0.0.5-py3-none-any.whl.
File metadata
- Download URL: volumito-0.0.5-py3-none-any.whl
- Upload date:
- Size: 28.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
317f225313db8a7a88f68e5b619480f018cadf1ef59c625179237562f3e12feb
|
|
| MD5 |
58119c628ad551216056dbccf3a7810f
|
|
| BLAKE2b-256 |
7f8979ebf9eee7902bff84ee8eb5ec7deed84cd6128b614a9f3a50074d3d60f8
|