Skip to main content

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)

Uploaded Source

Built Distribution

amitool-0.1.5-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page