Skip to main content

Dakara player

PyPI version PyPI Python versions License Tests status Code coverage status Code style: black Imports: isort

Interface between the Dakara server and a media player, for the Dakara project.

Installation

To install Dakara completely, you have to get all the parts of the project. Installation guidelines are provided over here:

System requirements

  • Python3, for the magic to take place (supported versions: see above).

At least one of the following players:

  • VLC (supported version: 3.0.0 and higher, note that versions 3.0.13 to 3.0.16 cannot be used);
  • mpv (supported version: 0.27 and higher).

For 64 bits operating systems, you must install the equivalent version of the requirements. Linux and Windows are supported.

Virtual environment

It is strongly recommended to use the Dakara player within a virtual environment.

Install

Please ensure you have a recent enough version of setuptools:

pip install --upgrade "setuptools>=46.4.0"

Install the package with:

pip install dakaraplayer

If you have downloaded the repo, you can install the package directly with:

pip install .

Usage

The package provides the dakara-player play command which runs the player:

dakara-player play
# or
python -m dakara_player play

One instance of the Dakara server should be running.

For more help:

dakara-player -h
# or
python -m dakara_player -h

Before calling the command, you should create a config file with:

dakara-player create-config
# or
python -m dakara_player create-config

and complete it with your values. The file is stored in your user space: ~/.config/dakara on Linux, or $APPDATA\DakaraProject\dakara on Windows.

Configuration

The configuration is created with the previously cited command. Several aspect of the player can be configured with this file. Please check with the file documentation.

Authentication to the server can only be done with a player token that can be generated and copied from the web client. Please note that only a playlist manager can generate such a player token.

Customization

The different text screens used when the player is idle, or before a song, can be customized, both for the background and the text template. The program looks for custom files at startup in the user directory: ~/.local/share/dakara/player on Linux or $APPDATA\DakaraProject\dakara\player on Windows. Backgrounds are located in the backgrounds subfolder, and text templates in the templates subfolder. File names can be modified in the config file, see player.templates and player.backgrounds.

You can dump the default backgrounds and templates in the user directory as a starter with:

dakara-player create-resources
# or
python -m dakara_player create-resources

Development

Please read the developers documentation.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dakaraplayer-1.10.0.tar.gz (383.1 kB view details)

Uploaded Source

Built Distribution

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

dakaraplayer-1.10.0-py3-none-any.whl (393.5 kB view details)

Uploaded Python 3

File details

Details for the file dakaraplayer-1.10.0.tar.gz.

File metadata

  • Download URL: dakaraplayer-1.10.0.tar.gz
  • Upload date:
  • Size: 383.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for dakaraplayer-1.10.0.tar.gz
Algorithm Hash digest
SHA256 87cce8f165ded9549b5e5b9a29c3cc2d09dbfbeb68673f65137a3938d78e94e6
MD5 f8e8de0b5d1702f807d0d72fbbc2b923
BLAKE2b-256 a862d9ec7ce97e32b542ccc6ac4f083d3090bf04477d16b7eb6f349e3f6f1a63

See more details on using hashes here.

File details

Details for the file dakaraplayer-1.10.0-py3-none-any.whl.

File metadata

  • Download URL: dakaraplayer-1.10.0-py3-none-any.whl
  • Upload date:
  • Size: 393.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for dakaraplayer-1.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db17a3a3553e1c15455e030d1522fa0502fe62cc0de79a87a09a1503b7a072ce
MD5 4cf385cde4f67183014af09289e3aadc
BLAKE2b-256 d7987d4889de2298c79846ccb73c04a830b0aede7f1a158afa30dd0784fa682b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.10.0 This release

2 files

1.9.0

2 files

1.8.1

2 files

1.8.0

2 files

1.7.0

2 files

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