create session and redis
Project description
数据库中使用Zlog表
需要在创建Model的时候加上 __table_args__ = {'implicit_returning':False}
使用方法
pip install amitool
from amitools.AmiTool import AmiTools
ami = AmiTools(LogDir="./log", ConnString="", Host="127.0.0.1", PassWord="", Port=6379, db=10) # 参数不用全填
logger = ami.loggers
logger.info("start session")
session = ami.initSession()
logger.info("start redis")
rs = ami.initRedis()
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
amitool-0.1.5.tar.gz
(2.6 kB
view hashes)