数据库中使用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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| amitool-0.1.5.tar.gz | 2.6 kB | Without provenance | Details for amitool-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| amitool-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for amitool-0.1.5-py3-none-any.whl |
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
|
Security for amitool 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.