music.db package

Submodules

music.db.database module

class music.db.database.DatabaseUser(client_id: str, client_secret: str, access_token: Optional[str] = None, refresh_token: Optional[str] = None, user_id: Optional[str] = None)

Bases: spotframework.net.user.NetworkUser

adding music tools username to spotframework network user

user_id: str = None
music.db.database.get_authed_lastfm_network(user)
music.db.database.get_authed_spotify_network(user)
music.db.database.refresh_token_database_callback(user)

music.db.part_generator module

class music.db.part_generator.PartGenerator(user: Optional[music.model.user.User] = None, username: Optional[str] = None)

Bases: object

get_recursive_parts(name)
process_reference_by_name(name)
process_reference_by_reference(ref)
reset()

Module contents

Database interfacing components aside from the music.model ORM layer