Skip to main content

yucctools

常用的工具分享。可以方便的调用本工具去记录日志等。

安装

方法一:直接使用pip安装

pip install yucctools

方法二:国内pip有时较慢,可以指定使用清华源安装

pip install yucctools -i https://pypi.tuna.tsinghua.edu.cn/simple

使用示例

日志工具

可以方便的去初始化记录日志,并记录日志,样例:

# 导入包
import yucctools as yt

# 初始化logger实例
logger = yt.logger(filepath='test.log')

# 记录信息,只要这么调用就可以使用了
# 记录一条debug级别的日志
logger.info('this is a debug levle log.')
# 记录一条info级别的日志
logger.info('this is a info level log.')
# 记录一条warning级别的日志记录
logger.warning('this is a warning level log.')
# 记录一条error级别的日志记录
logger.error('this is a error level log.')
# 记录一条critical级别的日志记录
logger.critical('this is a critical level log.')

附录

github网页:https://github.com/yucc2018/yucctools

pypi网页:https://pypi.org/project/yucctools/

Release files for yucctools 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yucctools 0.1.9
File Size Uploaded
yucctools-0.1.9.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yucctools 0.1.9
File Interpreter ABI Platform
yucctools-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size:7.6 kB

Release files / yucctools-0.1.9.tar.gz

Download URL yucctools-0.1.9.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8b2df7c967b972b9deec2d100e9fe9aa077cab4c1ef914478c2021f0099cdae2
BLAKE2b-256 checksum
How to use checksums
3a1c5adeb96b64ec9840eabbd4522fb96ecf9818e8529e36841249e633ad9c0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.1.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.9

Release files / yucctools-0.1.9-py3-none-any.whl

Download URL yucctools-0.1.9-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70a8b76706bf07080b57169d1990c41de1f276e2d3bc01c5caa82aecd0fd1510
BLAKE2b-256 checksum
How to use checksums
b6e8c5eebb311d5e9426d671aeb723c5b1790427df01ca717a1ea29805ddf500
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.1.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.9

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page