Fix example and readme and __init__

This commit is contained in:
shenjack 2023-12-03 22:05:14 +08:00
parent d272c8870d
commit 1a55103bca
Signed by: shenjack
GPG Key ID: 7B1134A979775551
3 changed files with 6 additions and 7 deletions

View File

@ -6,7 +6,7 @@ A python lib came from [Difficult Rocket](https://github.com/shenjackyuanjie/Dif
## Information/信息
- Version / 版本: 0.3.0-rc.1
- Version / 版本: 0.3.0-rc.2
- Author / 作者: shenjackyuanjie <3695888@qq.com>
> [shenjackyuanjie](https://github.com/shenjackyuanjie)
@ -37,9 +37,9 @@ pip install lib-not-dr[nuitka]
> 等待 0.4.0
```python title="logger.py"
from lib_not_dr.loggers.logger import Logger
from lib_not_dr import loggers
logger = Logger.get_logger_by_name("test")
logger = loggers.get_logger("test")
logger.fine('Hello World!')
logger.debug('Hello World!')

View File

@ -13,6 +13,6 @@
> 预计 `0.4` 发布?
- [ ] 完成配置解析
- [x] 完成配置解析
- [ ] 支持读取配置之后自动应用

View File

@ -9,15 +9,14 @@ from typing import TYPE_CHECKING
if TYPE_CHECKING:
from lib_not_dr import loggers, nuitka, types, command
_version_ = "0.3.0-rc.1"
_version_ = "0.3.0-rc.2"
# fmt: off
__all__ = [
"_version_",
"logger",
"loggers",
"nuitka",
"types",
"command",
"logger",
]
# fmt: on