Skip to main content

数据库中使用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()

Metadata

Release files for amitool 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for amitool 0.1.5
File Size Uploaded
amitool-0.1.5.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for amitool 0.1.5
File Interpreter ABI Platform
amitool-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 5.4 kB

Release files / amitool-0.1.5.tar.gz

Download URL amitool-0.1.5.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0875aa1f7960b1a4164c52617d4872f9e57f1739d6aee376325e5f34ea20f0e3
BLAKE2b-256 checksum
How to use checksums
8dfc40332fe6d921cfa484337d5bb891f651506b50da2d473d469e1300bb7a14
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / amitool-0.1.5-py3-none-any.whl

Download URL amitool-0.1.5-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
568638f6fd3eea3b64274b3cdb080bb144a6b2f08c70f4e1ebb60bd0b5d4e095
BLAKE2b-256 checksum
How to use checksums
803d304119154c2c524b3799cd9daf4e44a920b1325b699eba0303dc1830840e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page