BonPrinter v1.2.0
Thermal Printer tool
Loading...
Searching...
No Matches
config.py File Reference

configuration settings More...

Go to the source code of this file.

Classes

class  Config
 Class Configuration: Read/Write configuration data (user or articles) More...

Namespaces

namespace  Source
namespace  Source.Model
namespace  Source.Model.config

Functions

float get_dict_float (dict[str, dict[str, str]] d_dict, str s_section, str s_key)
 Get floating value in dictionary.
int get_dict_int (dict[str, dict[str, str]] d_dict, str s_section, str s_key)
 Get integer value in dictionary.
str get_dict_value (dict[str, dict[str, str]] d_dict, str s_section, str s_key)
 Get value from dictionary.
bool is_float (Any value)
 Check if string can convert to float.
bool is_int (Any value)
 Check if string can convert to integer.
dict[str, dict[str, str|list[str]]] read_data_from_config_file (str s_file_name)
 Read data from configuration file.
dict[str, Any] sort_dict (dict[str, Any] d_dict_to_sort, dict[str, Any] d_order_reference)
 Sort dictionary.
None write_config_to_file (str s_file_name, dict[str, Any] d_dict)
 Write configuration to file.

Variables

 log = logging.getLogger(__title__)
str S_ITEM_FILE = "articles.ini"
str S_ITEM_TEMP_FILE = "_temp_articles.ini"
str S_USER_FILE = "user.ini"
str S_USER_TEMP_FILE = "_temp_user.ini"

Detailed Description

configuration settings


Definition in file config.py.