使用Python3进行编写的一个开源系统管理工具, 通过封装Linux系统都软件包管理、磁盘管理、文件管理、网络管理、安全管理、服务管理等内容从而实现快速开发的效果
Project description
ColorInfo
介绍
ColorInfo 是一个使用Python3编写的简单的彩色日志工具,主要特性:
- 使用简单
- 彩色输出
- 中文注释
- 支持全部Python3版本(>=3.0)
安装教程
执行下面的命令即可
pip3 install --upgrade ColorInfo_liumou_Stable
Demo
# -*- encoding: utf-8 -*-
"""
@File : demo.py
@Time : 2022-10-26 23:51
@Author : 坐公交也用券
@Version : 1.0
@Contact : liumou.site@qq.com
@Homepage : https://liumou.site
@Desc : 演示
"""
from ColorInfo_liumou_Stable import logger,ColorLogger
def demos():
log = ColorLogger(txt=True, fileinfo=True, basename=False)
log.info(msg='1', x="23")
log.error('2', '22', '222')
log.debug('3', '21')
log.warning('4', '20', 22)
class Demo:
def __init__(self):
self.logger = logger
self.logger.info("初始化")
def de(self):
self.logger.info("de1")
logger.info("de2")
d = Demo()
d.de()
demos()
效果
请在gitee项目主页查看图片
项目主页
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file colorinfo_liumou_stable-1.0.0.tar.gz.
File metadata
- Download URL: colorinfo_liumou_stable-1.0.0.tar.gz
- Upload date:
- Size: 99.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9ffd903e2ffbb01a07385f4a2249f1d22fa3665e5596b2fabcd3d823149213c
|
|
| MD5 |
c29b483e7ce1147e2e421acb740d62f0
|
|
| BLAKE2b-256 |
446516456e7e793381079acd7b0214a46759804d2c68d301e0b681bf695c7424
|
File details
Details for the file colorinfo_liumou_stable-1.0.0-py3-none-any.whl.
File metadata
- Download URL: colorinfo_liumou_stable-1.0.0-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d74041d0902aae4a7f27529510c8a6a27058ece7a264819cbb1f2aaa11138953
|
|
| MD5 |
90a2f542f2a9e02f66e77172994c7ed0
|
|
| BLAKE2b-256 |
908481d4fdf9804bbcfcfeea385e0463278fccfd42628a49f52e6dd1f20de83c
|