brunogge 0.1.4__tar.gz → 0.1.5__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: brunogge
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: Bilbioteka Python dla Goodgame Empire.
5
5
  Author-email: WojtS & ThunderStorm <wojts8@proton.me>
6
6
  Project-URL: Homepage, https://github.com/wojtsik/brunogge
@@ -0,0 +1,6 @@
1
+ from .get_ws import ggs_ws
2
+ from .ggs_stuff import ggs_account
3
+ from .just_funcs import fakescanning
4
+ from .getconfig import getconfig
5
+ __all__ = ["ggs_account", "ggs_ws", "fakescanning", "getconfig"]
6
+ __version__ = "0.1.4"
@@ -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,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: brunogge
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: Bilbioteka Python dla Goodgame Empire.
5
5
  Author-email: WojtS & ThunderStorm <wojts8@proton.me>
6
6
  Project-URL: Homepage, https://github.com/wojtsik/brunogge
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "brunogge"
3
- version = "0.1.4"
3
+ version = "0.1.5"
4
4
  description = "Bilbioteka Python dla Goodgame Empire."
5
5
  authors = [{ name = "WojtS & ThunderStorm", email = "wojts8@proton.me" }]
6
6
  readme = "README.md"
@@ -1,5 +0,0 @@
1
- from .get_ws import ggs_ws
2
- from .ggs_stuff import ggs_account
3
- from .just_funcs import fakescanning
4
- __all__ = ["ggs_account", "ggs_ws", "fakescanning"]
5
- __version__ = "0.1.3"
File without changes
File without changes
File without changes
File without changes
File without changes