lidb 1.0.5__py3-none-any.whl → 1.0.7__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.

Potentially problematic release.


This version of lidb might be problematic. Click here for more details.

lidb/__init__.py CHANGED
@@ -19,4 +19,4 @@ from .database import (
19
19
  read_ck,
20
20
  )
21
21
 
22
- __version__ = "1.0.5"
22
+ __version__ = "1.0.7"
lidb/init.py CHANGED
@@ -11,7 +11,7 @@ import logair
11
11
  USERHOME = Path("~").expanduser() # 用户家目录
12
12
  NAME = "lidb"
13
13
  DB_PATH = USERHOME / NAME
14
- CONFIG_PATH = DB_PATH / "conf" / "settings.toml"
14
+ CONFIG_PATH = USERHOME / ".config" / NAME / "settings.toml"
15
15
 
16
16
  logger = logair.get_logger(NAME)
17
17
 
@@ -20,11 +20,10 @@ if not CONFIG_PATH.exists():
20
20
  try:
21
21
  CONFIG_PATH.parent.mkdir(parents=True, exist_ok=True)
22
22
  except Exception as e:
23
- logger.error(f"Create settings file failed: {e}")
23
+ logger.error(f"Failed to create settings file: {e}")
24
24
  with open(CONFIG_PATH, "w") as f:
25
25
  template_content = f"""[global]
26
- path="{DB_PATH}"
27
- """
26
+ path={DB_PATH}"""
28
27
  with open(CONFIG_PATH, "w") as f:
29
28
  f.write(template_content)
30
29
  logger.info(f"Settings file created: {CONFIG_PATH}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lidb
3
- Version: 1.0.5
3
+ Version: 1.0.7
4
4
  Requires-Python: >=3.12
5
5
  Description-Content-Type: text/markdown
6
6
  Requires-Dist: dynaconf>=3.2.11
@@ -0,0 +1,8 @@
1
+ lidb/__init__.py,sha256=aVFgcTIjRYdaCOi2-AxGRX8KLLpp_K6m26XKg_KaTCI,306
2
+ lidb/database.py,sha256=U1h80jgmkRfgQW8sdhb7B3ISvQJUvPefLurWMsbzqa0,5372
3
+ lidb/init.py,sha256=YUrPG5D0KiFCSiLOxURgVnnKKzYcGYigJlHbPCI7cts,1169
4
+ lidb/parse.py,sha256=N1BBZoUhvLj58biZfEhFs4cGsqaZqsanx27bAp_P7Oo,2236
5
+ lidb-1.0.7.dist-info/METADATA,sha256=z3KDihB6ZlNy-Esxy1mhGnCV3Pdjib7zP4bpuiFc70Y,303
6
+ lidb-1.0.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ lidb-1.0.7.dist-info/top_level.txt,sha256=NgXJNwt6ld6oLXtW1vOPaEh-VO5R0JEX_KmGIJR4ueE,5
8
+ lidb-1.0.7.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- lidb/__init__.py,sha256=bkXm3SpSwrgGZ6UdTGhT2NN8-a0k_lFo08mIL6W7KLw,306
2
- lidb/database.py,sha256=U1h80jgmkRfgQW8sdhb7B3ISvQJUvPefLurWMsbzqa0,5372
3
- lidb/init.py,sha256=S6Yud6bHEmbaCVV7yXZWsQhe0YIsw9D_Yy17kiDpsGQ,1159
4
- lidb/parse.py,sha256=N1BBZoUhvLj58biZfEhFs4cGsqaZqsanx27bAp_P7Oo,2236
5
- lidb-1.0.5.dist-info/METADATA,sha256=IXmwvqe87vY_UfJWXD2kI09MA1OLD8C8Ecq-1F8FbJ8,303
6
- lidb-1.0.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
- lidb-1.0.5.dist-info/top_level.txt,sha256=NgXJNwt6ld6oLXtW1vOPaEh-VO5R0JEX_KmGIJR4ueE,5
8
- lidb-1.0.5.dist-info/RECORD,,
File without changes