MCPcopy Create free account
hub / github.com/daniel2005d/mapXplore / Settings

Class Settings

config/settings.py:11–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10
11class Settings:
12
13 COMMAND_PREFIX = "do_"
14
15 folder_by_extension = {
16 'pdf':['pdf'],
17 'documents':['docx','xlsx','pptx','ppt','doc','xls'],
18 'images':['png','jpg','jpeg','gif'],
19 'text':['txt']
20 }
21
22 special_column_names={
23 "TypeTitle":"TypeFormat_{col_name}",
24 "ContentTitle":"DataFromBase64_{col_name}"
25 }
26
27 principal_databases:dict={
28 'postgres':'postgres',
29 'sqlite':None
30 }
31
32 _default_commands = ['set','shortcuts','shell','alias','edit','macro','run_pyscript','run_script']
33
34 checksum_column = 'sqlmap_hash'
35 valid_format_files = ['html','xlsx','json']
36 exclude_data_type: List[str] = ["boolean","timestamp without time zone","date","datetime"]
37 filter_options = ['tables','columns','values','all']
38 allow_hashes = Hashes.get_available_algorithms()
39 setting = {
40
41 "General":{
42 "debug":False
43 },
44 "Import":{
45 "strict":True,
46 "validchars":"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!\"#$%&\'()*+,-./:;<=>@[\\]^_`{|}"
47 },
48 "Server":{
49 "host":"",
50 "username":"",
51 "password":"",
52 "dbms":"postgres"
53 },
54 "Results":{
55 "output":"",
56 "format":'xlsx',
57 "includeAllColumns":True
58
59 },
60 "sqlmap":{
61 "input":"",
62 "csvdelimiter":",",
63 "database":""
64 }
65 }
66
67 @staticmethod
68 def get_default_commands():

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected