Logging library
Project description
sqlalchemy-logger
A small library that provides sqlalchemy session logging.
Installation
pip install sqlalchemy-logger
Get started
How to log sqlalchemy session:
from sqlalchemy-logger import Logger
#create Logger instance (where app is your app = Flask(__name__))
logger = Logger(app)
#call the logger before flush
logger.listen_before_flush()
#call the logger after flush
logger.listen_after_flush()
#call the logger after rollback
logger.listen_after_rollback()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sqlalchemy-logger-0.1.2.tar.gz.
File metadata
- Download URL: sqlalchemy-logger-0.1.2.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68d4bd94ec49c7696f247965c0c9dfb6ef943ef2228c3cf18f6aefd291d05d8d
|
|
| MD5 |
ba952d3050dc62e96eb054127bba0561
|
|
| BLAKE2b-256 |
d99da12716916c98ba17e8f82a041afe7d5bdd0f47cb21001900b275b043307b
|
File details
Details for the file sqlalchemy_logger-0.1.2-py3-none-any.whl.
File metadata
- Download URL: sqlalchemy_logger-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72c285442784beffc7b2d0e0f89acf20e64bb7dc24bac72d35d144aa5b86c69d
|
|
| MD5 |
1c25a8be1036fffa07d17bc02aedf3cf
|
|
| BLAKE2b-256 |
5068df3c62b41df4884f9141d889f9c0bda3f097256ca824553d47d042bec40c
|