Debian Codegraph @

docs/dev/importer.rst

raw
1 Music Importer
2 ==============
3
4 The importer component is responsible for the user-centric workflow that adds
5 music to a library. This is one of the first aspects that a user experiences
6 when using beets: it finds music in the filesystem, groups it into albums, finds
7 corresponding metadata in MusicBrainz, asks the user for intervention, applies
8 changes, and moves/copies files. A description of its user interface is given in
9 :doc:`/guides/tagger`.
10
11 The workflow is implemented in the ``beets.importer`` module and is distinct
12 from the core logic for matching MusicBrainz metadata (in the ``beets.autotag``
13 module). The workflow is also decoupled from the command-line interface with the
14 hope that, eventually, other (graphical) interfaces can be bolted onto the same
15 importer implementation.
16
17 The importer is multithreaded and follows the pipeline pattern. Each pipeline
18 stage is a Python coroutine. The ``beets.util.pipeline`` module houses a
19 generic, reusable implementation of a multithreaded pipeline.