calliope¶
Calliope is a set of tools for processing playlists.
This module contains the core parts of Calliope.
Subpackages¶
calliope.bandcampcalliope.beetscalliope.diffcalliope.exportcalliope.import_calliope.lastfmcalliope.listenbrainzcalliope.musicbrainzcalliope.playcalliope.selectcalliope.shufflecalliope.spotifycalliope.statcalliope.subprojectscalliope.suggestcalliope.synccalliope.trackercalliope.validatecalliope.youtube
Submodules¶
Package Contents¶
Classes¶
Helper to raise ImportError exceptions for disabled modules. |
|
Helper to defer ImportError exceptions until module is actually used. |
|
Wrapper module import to avoid requiring all dependencies at import time. |
Functions¶
|
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)¶