The application that will be developed in this chapter and the following two chapters must be more structured than a simple script with the whole code in it. So, this project will be structured as a Python package, which can be installed with the setup tools. Moreover, since it relies on more dependencies besides the small code examples used in the previous chapters, using the Python setup tools helps us deal with dependencies. But before looking at the structure of the project, let's start by looking into the functional specifications of this application.
The application is a daemon that allows us to transcode audio files from MP3 to the FLAC format. FLAC is a lossless audio codec. The transcoded files are stored in a specified directory. The daemon exposes an HTTP API that allows a client to upload an audio file so that it is transcoded and stored...