calliope

Calliope is a set of tools for processing playlists.

This module contains the core parts of Calliope.

Subpackages

Submodules

Package Contents

Classes

DisabledModule

Helper to raise ImportError exceptions for disabled modules.

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.DisabledModule(name)

Helper to raise ImportError exceptions for disabled modules.

__getattr__(attr)
class calliope.FailedModule(name, error)

Helper to defer ImportError exceptions until module is actually used.

__getattr__(attr)
runtime_error(command_name=None)

Return an error appropriate for display in CLI.

runtime_error_gobject_introspection(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()
maybe_load_module(name)
calliope.uri_to_path(uri)

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