Skip to main content

做的一些工具包

Project description

yLIueTools

MxTools包含自己正在使用的一些小工具

当前版本: 1.0.1

当前更新时间: 2025.09.21

yLIue_Debug包使用说明

注意!!!

Debug包会调用Color包的函数,Color的颜色显示不支持ANSI转义序列的终端会出现乱码的情况

你可以通过关闭颜色来让其正常显示

	debug = Debug("Test", _color=False)

初步使用

1.引入该包

	from MxTools import Debug

2.定义一个Debug对象

	# debug = Debug('project_name') 

	# project_name 为项目名称 type:str

	debug = Debug('Test')

3.使用Debug模块打印信息

	debug.log('Hello World!')

	# 输出

	# [2025-09-21 16:01:47,299] ING Test.default: Hello World!

过滤器教程

使用log打印时有3个参数

分别是

msg(打印信息)

name(发出位置,默认为default)

type(类型,默认为ING)

我们可以使用过滤器来过滤它们

   debug = Debug('Test',_filterType = 'ING', _filterName = 'default')

   # 筛选出类型为ING 发出位置为 default的打印消息

关闭Debug输出

  debug = Debug('Test', False)

yLIue_Color包使用说明

注意!!!

Color包的颜色显示不支持ANSI转义序列的终端会出现乱码的情况

初步使用

1.引入该包

   from MxTools import Color

2.输出紫色字体

    print(Color.purple('Hello World!'))

API

  • purple 紫色

  • grey 灰色

  • green 绿色

  • red 红色

  • blue 蓝色

  • yellow 黄色

  • cyan 青色

Update log

Ver1.0.1 2025.09.21 第一次上传

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

yliueTools-1.0.1.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file yliueTools-1.0.1.tar.gz.

File metadata

  • Download URL: yliueTools-1.0.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for yliueTools-1.0.1.tar.gz
Algorithm Hash digest
SHA256 46bf15594b34d00df62baf7434c77230f50256c995f43347da267f47200a0d27
MD5 e27ef47ed053c4cdea1c9592f5140a60
BLAKE2b-256 ab70420652bda856f68b1e88e5fc977f4fc7a1a45e3f8022432108597bdc76e6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page