A simple but useful python library that helps you to manage user preferences
Project description
Why?
PREFS's purpose is to facilitate the process of store and manage user preferences, simple but useful library..
Installation:
On windows:
pip install PREFS
On Mac and Linux:
pip3 install PREFS
Syntax:
PREFS library has inside a class also called PREFS, you have to create an instance of this class to call all functions. Each new instance is a new prefs file: This class has one required parameter, which is a dictionary with the default preferences, default means the preferences that all users will have at first time.
UserPrefs = PREFS.PREFS(prefs = {"theme": "light", "lang": "en"})
The main methods are:
-
ReadPrefs()
: Returns a dictionary with your prefs. -
WritePrefs()
: Requires two arguments, first the name of the pref that you want to change (if pref exists) or create if it doesn't, and second argument is the value that you want to asign to the pref.
Documentation
PREFS documentation can be found at https://github.com/Patitotective/PREFS/wiki with more examples and information.
Links
-
Github page: https://github.com/Patitotective/PREFS
-
Pypi page: https://pypi.org/project/PREFS/
-
Contact me:
-
Discord: patitotective#0127
-
Gmail: cristobalriaga@gmail.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.