lidb 1.0.0__py3-none-any.whl → 1.0.2__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
@@ -7,7 +7,6 @@ from .init import (
7
7
  NAME,
8
8
  DB_PATH,
9
9
  CONFIG_PATH,
10
- LOGS_PATH,
11
10
  get_settings,
12
11
  )
13
12
 
@@ -18,4 +17,4 @@ from .database import (
18
17
  tb_path,
19
18
  )
20
19
 
21
- __version__ = "1.0.0"
20
+ __version__ = "1.0.2"
lidb/init.py CHANGED
@@ -5,37 +5,16 @@
5
5
 
6
6
  from pathlib import Path
7
7
  from dynaconf import Dynaconf
8
- from loguru import logger
9
- import sys
8
+ import tolog
10
9
 
11
10
 
12
11
  USERHOME = Path("~").expanduser() # 用户家目录
13
12
  NAME = "lidb"
14
13
  DB_PATH = USERHOME / NAME
15
14
  CONFIG_PATH = DB_PATH / "conf" / "settings.toml"
16
- LOGS_PATH = DB_PATH / "logs"
17
15
 
18
- logger.remove()
16
+ logger = tolog.get_logger(NAME)
19
17
 
20
- console_format = (
21
- "<green>{time:YYYY-MM-DD HH:mm:ss}</green> | "
22
- "<level>{level}</level> | "
23
- f"<cyan>{NAME}</cyan>:<cyan>{{function}}</cyan>:<cyan>{{line}}</cyan> - "
24
- "<level>{message}</level>"
25
- )
26
-
27
- logger.add(
28
- sys.stderr,
29
- format=console_format,
30
- level="TRACE"
31
- )
32
-
33
- logger.add(
34
- LOGS_PATH / "{time:YYYYMMDD}.log",
35
- retention="10 days",
36
- format=f"{{time:YYYY-MM-DD HH:mm:ss}} | {{level}} | {NAME}:{{function}}:{{line}} - {{message}}",
37
- level="TRACE"
38
- )
39
18
 
40
19
  if not CONFIG_PATH.exists():
41
20
  try:
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lidb
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Requires-Python: >=3.12
5
5
  Description-Content-Type: text/markdown
6
6
  Requires-Dist: dynaconf>=3.2.11
7
- Requires-Dist: loguru>=0.7.3
8
7
  Requires-Dist: polars>=1.31.0
9
8
  Requires-Dist: sqlparse>=0.5.3
9
+ Requires-Dist: logair>=1.0.0
@@ -0,0 +1,8 @@
1
+ lidb/__init__.py,sha256=ltFd25wzsk29ysIlthY3kUhOiJ4gMn18OTwgow9Ye2s,277
2
+ lidb/database.py,sha256=OktJZCPVIaBUYENGMeWNB8NPOy1R01kwWtkfuUzP07E,3147
3
+ lidb/init.py,sha256=fQze6zgdDocWjbbsqWL0CDGRV_-64H0wt7qQBe-iINw,1157
4
+ lidb/parse.py,sha256=N1BBZoUhvLj58biZfEhFs4cGsqaZqsanx27bAp_P7Oo,2236
5
+ lidb-1.0.2.dist-info/METADATA,sha256=kWOBXogWPd0U8LMTn_UwjZm_LsY2gPwEP6dBkLIvT5M,234
6
+ lidb-1.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ lidb-1.0.2.dist-info/top_level.txt,sha256=NgXJNwt6ld6oLXtW1vOPaEh-VO5R0JEX_KmGIJR4ueE,5
8
+ lidb-1.0.2.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- lidb/__init__.py,sha256=tI-DSNlrTaj3X6WmvGIIa8KTUlsI5oIPxIagOLDcbqk,292
2
- lidb/database.py,sha256=OktJZCPVIaBUYENGMeWNB8NPOy1R01kwWtkfuUzP07E,3147
3
- lidb/init.py,sha256=HPMqUVF8FWa3i9NTu7x3fQaSAOJ08r9JjelHrUgl0tA,1681
4
- lidb/parse.py,sha256=N1BBZoUhvLj58biZfEhFs4cGsqaZqsanx27bAp_P7Oo,2236
5
- lidb-1.0.0.dist-info/METADATA,sha256=094xQkA7LNLqHXvyU9sE5TgdU5Au4o2hXSfZ6elUSkU,234
6
- lidb-1.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
- lidb-1.0.0.dist-info/top_level.txt,sha256=NgXJNwt6ld6oLXtW1vOPaEh-VO5R0JEX_KmGIJR4ueE,5
8
- lidb-1.0.0.dist-info/RECORD,,
File without changes