description
Project description
:rocket: 常用工具类 :facepunch:
Install
pip install -U meutils
Usages
from meutils.pipe import *
for i in range(5) | xtqdm:
logger.info("这是一个进度条")
with timer('LOG'):
logger.info("打印一条log所花费的时间")
CLI
mecli pkg
Notice
from meutils.pipe import *
from meutils.log_utils import logger4wecom
from meutils.decorators.catch import wecom_catch, wecom_hook
@wecom_catch()
def wecom_catch_test():
1/0
@wecom_hook('wecom_hook_test', 'Sleeping 3s')
def wecom_hook_test():
time.sleep(3)
logger4wecom()
wecom_catch_test()
wecom_hook_test()
TODO
- add hook
- add zk/es/mongo/hdfs logger
- retry tenacity
pyspark https://wiki.n.miui.com/pages/viewpage.action?pageId=477643956
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
MeUtils-2021.9.4.17.12.36.tar.gz
(742.4 kB
view hashes)
Built Distribution
Close
Hashes for MeUtils-2021.9.4.17.12.36.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0050acfdda77c80770d9a70a5770adffedd1020916944e4969d7f6cad06e58c |
|
MD5 | b9c4952bd2a8c0d4278ba31fc0bd498e |
|
BLAKE2b-256 | 06217fd598bd93d50cccc98677cf73bec930861471fd6a468dfba0b83f1a74fc |
Close
Hashes for MeUtils-2021.9.4.17.12.36-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9297c7aa06bf6231e5db84fec36a8d6b002b69faba05499b7abb1a9290690afc |
|
MD5 | f93c6b7657055255118a129632618b0b |
|
BLAKE2b-256 | bb5eb6a004488096f7359ba0725d2daa58142283a2a940ca13688753602bf567 |