brunogge 0.1.4__py3-none-any.whl → 0.1.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- brunogge/__init__.py +3 -2
- brunogge/getconfig.py +5 -1
- {brunogge-0.1.4.dist-info → brunogge-0.1.5.dist-info}/METADATA +1 -1
- brunogge-0.1.5.dist-info/RECORD +11 -0
- {brunogge-0.1.4.dist-info → brunogge-0.1.5.dist-info}/WHEEL +1 -1
- brunogge-0.1.4.dist-info/RECORD +0 -11
- {brunogge-0.1.4.dist-info → brunogge-0.1.5.dist-info}/top_level.txt +0 -0
brunogge/__init__.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
from .get_ws import ggs_ws
|
2
2
|
from .ggs_stuff import ggs_account
|
3
3
|
from .just_funcs import fakescanning
|
4
|
-
|
5
|
-
|
4
|
+
from .getconfig import getconfig
|
5
|
+
__all__ = ["ggs_account", "ggs_ws", "fakescanning", "getconfig"]
|
6
|
+
__version__ = "0.1.4"
|
brunogge/getconfig.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
from configparser import ConfigParser
|
2
2
|
import json, os
|
3
|
-
def getconfig(type:str ,savename:str ,created:str = "y"):
|
3
|
+
def getconfig(type:str ,savename:str ,created:str = "y") -> dict:
|
4
4
|
if created == "y":
|
5
5
|
config = ConfigParser()
|
6
6
|
# Use the user’s home directory and create the config file path
|
@@ -13,6 +13,8 @@ def getconfig(type:str ,savename:str ,created:str = "y"):
|
|
13
13
|
|
14
14
|
if savename in config:
|
15
15
|
if type == "baron":
|
16
|
+
nick = config.get(savename, "nick")
|
17
|
+
pwrd = config.get(savename, "pwrd")
|
16
18
|
kid = config.get(savename, "kid")
|
17
19
|
excluded_commanders = config.get(savename, "excluded_commanders")
|
18
20
|
radius_option = config.get(savename, "radius_option")
|
@@ -37,6 +39,8 @@ def getconfig(type:str ,savename:str ,created:str = "y"):
|
|
37
39
|
kid = "3"
|
38
40
|
# Return as a dictionary
|
39
41
|
result = {
|
42
|
+
"nick": nick,
|
43
|
+
"pwrd": pwrd,
|
40
44
|
"kid": kid,
|
41
45
|
"excluded_commanders": excluded_commanders,
|
42
46
|
"radius_option": radius_option,
|
@@ -0,0 +1,11 @@
|
|
1
|
+
brunogge/__init__.py,sha256=MgU4caQhwriibT1fZZ0GIUMNHCa_vrqav_oQXnBFB2E,225
|
2
|
+
brunogge/barony.py,sha256=6Xm-i5AaXa8oVQ_kzX0_tDZucoBVplF7gYTGuad6djk,14891
|
3
|
+
brunogge/get_ws.py,sha256=nPsvNReq4DzflvOItHOd3WgajAV7f3ckeZr8qRADYsI,709
|
4
|
+
brunogge/getconfig.py,sha256=Ky0faOuQSdrjLQulgPZD1uMCx2crJr_NipmVC85AtQw,9753
|
5
|
+
brunogge/ggs_stuff.py,sha256=vV-blmi7lXPNh3ktmqGVb4NQO97-rHBt7hG5eN4F6go,4640
|
6
|
+
brunogge/just_funcs.py,sha256=eQz_XOjfLKU532jWf_JrpQjkq-d5nVoiXJTFumW6-VA,2573
|
7
|
+
brunogge/server_list.json,sha256=5hZrlPH7tbFY7m1bqMMgsKiyHkGiPTnVMAW2B9WLabc,5084
|
8
|
+
brunogge-0.1.5.dist-info/METADATA,sha256=Oa73Wh3z_xu4BsFflcOCF_Mk1erHLiS_ecpt1XvfK18,328
|
9
|
+
brunogge-0.1.5.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
10
|
+
brunogge-0.1.5.dist-info/top_level.txt,sha256=oTTOxi0gm7TPhnipjl1nIXsYLRrnWnDzKKLCfRVhAjw,9
|
11
|
+
brunogge-0.1.5.dist-info/RECORD,,
|
brunogge-0.1.4.dist-info/RECORD
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
brunogge/__init__.py,sha256=u7oIqEQIhYfx9P2JfkZfydmVyLfHT_nJ3cURr6HvIJI,178
|
2
|
-
brunogge/barony.py,sha256=6Xm-i5AaXa8oVQ_kzX0_tDZucoBVplF7gYTGuad6djk,14891
|
3
|
-
brunogge/get_ws.py,sha256=nPsvNReq4DzflvOItHOd3WgajAV7f3ckeZr8qRADYsI,709
|
4
|
-
brunogge/getconfig.py,sha256=DFUr5qy5_KULrAHVXIUX8PX6ql33M-H2wqccnmws4_Y,9569
|
5
|
-
brunogge/ggs_stuff.py,sha256=vV-blmi7lXPNh3ktmqGVb4NQO97-rHBt7hG5eN4F6go,4640
|
6
|
-
brunogge/just_funcs.py,sha256=eQz_XOjfLKU532jWf_JrpQjkq-d5nVoiXJTFumW6-VA,2573
|
7
|
-
brunogge/server_list.json,sha256=5hZrlPH7tbFY7m1bqMMgsKiyHkGiPTnVMAW2B9WLabc,5084
|
8
|
-
brunogge-0.1.4.dist-info/METADATA,sha256=olyAJaTTsUGlvj8G1dr0pn5rhaC9AhoXS97JvdE3CrM,328
|
9
|
-
brunogge-0.1.4.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
10
|
-
brunogge-0.1.4.dist-info/top_level.txt,sha256=oTTOxi0gm7TPhnipjl1nIXsYLRrnWnDzKKLCfRVhAjw,9
|
11
|
-
brunogge-0.1.4.dist-info/RECORD,,
|
File without changes
|