toonarmycaptain/dionysus

Use a class and decorators for configuration

Open

#93 opened on Dec 28, 2018

 (1 comment) (0 reactions) (0 assignees)Python (14 forks)auto 404
enhancementhelp wantedquestion

Repository metrics

Stars
 (10 stars)
PR merge metrics
 (PR metrics pending)

Description

Might a better method for handling configuration and path data be to implement a class with @property attributes and @x.setter functions for those that may change dynamically (eg user default save paths).

https://pabloariasal.github.io/2018/11/25/python-descriptors/ https://www.hackerearth.com/practice/notes/samarthbhargav/a-design-pattern-for-configuration-management-in-python/

Contributor guide