calliope

Calliope is a set of tools for processing playlists.

This module contains the core parts of Calliope.

Subpackages

Submodules

Package Contents

Classes

FailedModule

Helper to defer ImportError exceptions until module is actually used.

ModuleLoader

Wrapper module import to avoid requiring all dependencies at import time.

Functions

uri_to_path(uri)

Convert a file:/// URI to a pathlib.Path.

class calliope.FailedModule(name, error)

Helper to defer ImportError exceptions until module is actually used.

__getattr__(self, attr)
runtime_error(self, command_name=None)

Return an error appropriate for display in CLI.

runtime_error_gobject_introspection(self, command_name=None)
class calliope.ModuleLoader

Wrapper module import to avoid requiring all dependencies at import time.

We want import calliope to import the whole Calliope library. However, this pulls in a lot of dependencies by default. This helper class allows features to be disabled at runtime (used in PyPI installs), or at configure time (used in Meson installs).

load_config(self)
maybe_load_module(self, name)
calliope.uri_to_path(uri)

Convert a file:/// URI to a pathlib.Path.