mardi 27 mars 2018

Python application build

I am building an application for data processing and wonder what is the best approach / design pattern to use to let user to decide what application features to run

e.g. to decide what data source to choose, to decide about the data output destination if there are multiple options.

I have solved it by creation of settings.py module with a dictionary in which I set right items to 1 and I read the variable storing the dictionary and run functions with globals() depending on settings dictionary item selection.

What is the standard approach to solve such application design problem? What is the good practice?

Aucun commentaire:

Enregistrer un commentaire