Skip to content

About

python common

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

python_common

和 python 相关的公共方法

为什么需要做这个: python 的写法很灵活,但是这也会造成一个问题

比如,同样是调用 Presto 获取数据,不同的用户就有不同的写法

那么,参考 go_common 我决定还是写一个公共方法集合,尽管这是很漫长的

参考:

logger

from python_common.logger import PrefixLogger

log = PrefixLogger("prefix")
log.info("test")

config parser

为什么有 ini, yaml 等文件解析的库了,还需要 config parser

为了方便解析成具体的 class 对象

目前需求

mysql connector -- 待考虑, sqlalchemy 封装已经很好了

mailer

About

python common

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages