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.15.4.tar.gz
(742.2 kB
view hashes)
Built Distribution
Close
Hashes for MeUtils-2021.9.4.17.15.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ef0121799421a51cc8b16c9022505911546e7c055688ae24e50074ac1f557f7 |
|
MD5 | a8564686795af7cc35e03c85f0794395 |
|
BLAKE2b-256 | 54b6dee34a8b88d59334c23a35f2def13d7198847204dd43f7aa05ad180cd5e7 |