From 072653e301200a427a44ee6e0b4d53d0cf8e1bc1 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Sun, 28 Feb 2010 14:38:02 +0100 Subject: [PATCH] Add class instantiation and usage graph --- docs/development.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/development.rst b/docs/development.rst index 5fb3f494..7a0dc574 100644 --- a/docs/development.rst +++ b/docs/development.rst @@ -138,3 +138,22 @@ A list of the issues we currently experience with pyspotify, both bugs and features we wished was there: * None at the moment. + + +Class instantiation and usage +============================= + +The following diagram shows how Mopidy with the despotify backend is wired +together. The gray nodes are part of external dependencies, and not Mopidy. + +.. digraph:: class_instantiation_and_usage + + "spytify" [ color="gray" ] + "despotify" [ color="gray" ] + "__main__" -> "MpdServer" [ label="create 1" ] + "__main__" -> "DespotifyBackend" [ label="create 1" ] + "MpdServer" -> "MpdSession" [ label="create 1 per client" ] + "MpdSession" -> "MpdHandler" [ label="pass MPD requests to" ] + "MpdHandler" -> "DespotifyBackend" [ label="use backend API" ] + "DespotifyBackend" -> "spytify" [ label="use Python wrapper" ] + "spytify" -> "despotify" [ label="use C library" ]