rgwfuncs 0.0.99__py3-none-any.whl → 0.0.101__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.
- rgwfuncs/str_lib.py +5 -5
- {rgwfuncs-0.0.99.dist-info → rgwfuncs-0.0.101.dist-info}/METADATA +1 -1
- rgwfuncs-0.0.101.dist-info/RECORD +12 -0
- {rgwfuncs-0.0.99.dist-info → rgwfuncs-0.0.101.dist-info}/WHEEL +1 -1
- rgwfuncs-0.0.99.dist-info/RECORD +0 -12
- {rgwfuncs-0.0.99.dist-info → rgwfuncs-0.0.101.dist-info}/entry_points.txt +0 -0
- {rgwfuncs-0.0.99.dist-info → rgwfuncs-0.0.101.dist-info}/licenses/LICENSE +0 -0
- {rgwfuncs-0.0.99.dist-info → rgwfuncs-0.0.101.dist-info}/top_level.txt +0 -0
rgwfuncs/str_lib.py
CHANGED
@@ -29,10 +29,10 @@ def send_telegram_message(preset_name: str, message: str, config: Optional[Union
|
|
29
29
|
"""Get configuration either from a path, direct dictionary, or by searching upwards."""
|
30
30
|
def get_config_from_file(config_path: str) -> dict:
|
31
31
|
"""Load configuration from a JSON file."""
|
32
|
-
print(f"Reading config from: {config_path}") # Debug line
|
32
|
+
# print(f"Reading config from: {config_path}") # Debug line
|
33
33
|
with open(config_path, 'r', encoding='utf-8') as file:
|
34
34
|
content = file.read()
|
35
|
-
print(f"Config content (first 100 chars): {content[:100]}...") # Debug line
|
35
|
+
# print(f"Config content (first 100 chars): {content[:100]}...") # Debug line
|
36
36
|
if not content.strip():
|
37
37
|
raise ValueError(f"Config file {config_path} is empty")
|
38
38
|
try:
|
@@ -43,12 +43,12 @@ def send_telegram_message(preset_name: str, message: str, config: Optional[Union
|
|
43
43
|
def find_config_file() -> str:
|
44
44
|
"""Search for '.rgwfuncsrc' in current directory and upwards."""
|
45
45
|
current_dir = os.getcwd()
|
46
|
-
print(f"Starting config search from: {current_dir}") # Debug line
|
46
|
+
# print(f"Starting config search from: {current_dir}") # Debug line
|
47
47
|
while True:
|
48
48
|
config_path = os.path.join(current_dir, '.rgwfuncsrc')
|
49
|
-
print(f"Checking for config at: {config_path}") # Debug line
|
49
|
+
# print(f"Checking for config at: {config_path}") # Debug line
|
50
50
|
if os.path.isfile(config_path):
|
51
|
-
print(f"Found config at: {config_path}") # Debug line
|
51
|
+
# print(f"Found config at: {config_path}") # Debug line
|
52
52
|
return config_path
|
53
53
|
parent_dir = os.path.dirname(current_dir)
|
54
54
|
if parent_dir == current_dir: # Reached root directory
|
@@ -0,0 +1,12 @@
|
|
1
|
+
rgwfuncs/__init__.py,sha256=LSn54Tlyskcb6Wab_wUpPLB6UGMe5LdrB3GU88mDEbU,1712
|
2
|
+
rgwfuncs/algebra_lib.py,sha256=rKFITfpWfgdBswnbMUuS41XgndEt-jUVz2ObO_ik7eM,42234
|
3
|
+
rgwfuncs/df_lib.py,sha256=3foomRHlunCpf_accTcqfdgwDmSPIVkVCnlWJ4ag4XQ,76947
|
4
|
+
rgwfuncs/docs_lib.py,sha256=i63NzX-V8cGhikYdtkRGAEe2VcuwpXxDUyTRa9xI7l8,1972
|
5
|
+
rgwfuncs/interactive_shell_lib.py,sha256=YN0ZnM5twIsOeDKuOQ9ZGURCvvBX0RZjM4a1vO1C3E8,4281
|
6
|
+
rgwfuncs/str_lib.py,sha256=qpt7jPbQ2Feu88zt3_7L8w5jMsBGacBS74Sa5om4VLE,4814
|
7
|
+
rgwfuncs-0.0.101.dist-info/licenses/LICENSE,sha256=jLvt20gcUZYB8UOvyBvyKQ1qhYYhD__qP7ZDx2lPFkU,1062
|
8
|
+
rgwfuncs-0.0.101.dist-info/METADATA,sha256=Qyy3sPQ5FUFea4VZaLHO4-yss5Ch9-yKQU6GrK8yYuI,62224
|
9
|
+
rgwfuncs-0.0.101.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
10
|
+
rgwfuncs-0.0.101.dist-info/entry_points.txt,sha256=j-c5IOPIQ0252EaOV6j6STio56sbXl2C4ym_fQ0lXx0,43
|
11
|
+
rgwfuncs-0.0.101.dist-info/top_level.txt,sha256=aGuVIzWsKiV1f2gCb6mynx0zx5ma0B1EwPGFKVEMTi4,9
|
12
|
+
rgwfuncs-0.0.101.dist-info/RECORD,,
|
rgwfuncs-0.0.99.dist-info/RECORD
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
rgwfuncs/__init__.py,sha256=LSn54Tlyskcb6Wab_wUpPLB6UGMe5LdrB3GU88mDEbU,1712
|
2
|
-
rgwfuncs/algebra_lib.py,sha256=rKFITfpWfgdBswnbMUuS41XgndEt-jUVz2ObO_ik7eM,42234
|
3
|
-
rgwfuncs/df_lib.py,sha256=3foomRHlunCpf_accTcqfdgwDmSPIVkVCnlWJ4ag4XQ,76947
|
4
|
-
rgwfuncs/docs_lib.py,sha256=i63NzX-V8cGhikYdtkRGAEe2VcuwpXxDUyTRa9xI7l8,1972
|
5
|
-
rgwfuncs/interactive_shell_lib.py,sha256=YN0ZnM5twIsOeDKuOQ9ZGURCvvBX0RZjM4a1vO1C3E8,4281
|
6
|
-
rgwfuncs/str_lib.py,sha256=Nhpw3bpVASVPd7UlyIqtyBSmvqKk1FSuj7KRWSlowiw,4804
|
7
|
-
rgwfuncs-0.0.99.dist-info/licenses/LICENSE,sha256=jLvt20gcUZYB8UOvyBvyKQ1qhYYhD__qP7ZDx2lPFkU,1062
|
8
|
-
rgwfuncs-0.0.99.dist-info/METADATA,sha256=bzcFyWtxOIYWEjVYrV-fz8kkvCTER-qtrLdrsf3APNI,62223
|
9
|
-
rgwfuncs-0.0.99.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
10
|
-
rgwfuncs-0.0.99.dist-info/entry_points.txt,sha256=j-c5IOPIQ0252EaOV6j6STio56sbXl2C4ym_fQ0lXx0,43
|
11
|
-
rgwfuncs-0.0.99.dist-info/top_level.txt,sha256=aGuVIzWsKiV1f2gCb6mynx0zx5ma0B1EwPGFKVEMTi4,9
|
12
|
-
rgwfuncs-0.0.99.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|