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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file amitool-0.1.5.tar.gz.

File metadata

  • Download URL: amitool-0.1.5.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5

File hashes

Hashes for amitool-0.1.5.tar.gz
Algorithm Hash digest
SHA256 0875aa1f7960b1a4164c52617d4872f9e57f1739d6aee376325e5f34ea20f0e3
MD5 565949c47cd45b35dd55c30a8be40f0e
BLAKE2b-256 8dfc40332fe6d921cfa484337d5bb891f651506b50da2d473d469e1300bb7a14

See more details on using hashes here.

File details

Details for the file amitool-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: amitool-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5

File hashes

Hashes for amitool-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 568638f6fd3eea3b64274b3cdb080bb144a6b2f08c70f4e1ebb60bd0b5d4e095
MD5 a017ec91765513e39ba57a8c067fa6cc
BLAKE2b-256 803d304119154c2c524b3799cd9daf4e44a920b1325b699eba0303dc1830840e

See more details on using hashes here.

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