Skip to main content

Lightweight structured logger for Py projects with AI analysis!

Project description

SmartPyLogger

....................................................................................
....................................................................................
..........................................-++=..:...................................
.............-.........................=**#######+:.........-.......................
.............................-.......:=#***##**##*=.....................-...........
......-.............................:+******#**##*#=................................
.............-...................:=*********####%##*:...............................
..............................:+************#*####=..................-..............
...-*+=:.................-=****##*****####*######%+:................................
...-*#*#**##*********##**#*******#######**#%%#***#%+................................
...:=*****#*##*######****#*****#####*#*++--*%##***##=.........-.....................
....-******###*##**###**###*#*###****+-...:-*%%#**##%-..................-...........
....:=******###*###****#**#**#####**+:......-*%##***%#-.............................
.....:+*#***##***###******##**###**+:.......:-*%##**#%*-............................
......-*#****######***#**#*##*##**+:.........:-*%#*+*#%#:...........................
......:-*******#**********#***##**-...........-:=*##***#%*:.........................
........:-+#***************##**##**-............:=*##****#%*-.......................
............:=*#************+*###*#+.............-=*###**#%@%#-.....................
.............:-+#*************+*###*-......-......:-+*#%####%%*:....................
.......-.......:-=*#***************+.................-=*#%%%*###%=..................
..................:--##*************-.................:-+*%#****#%*.................
............-.......:--+#************#..................-=*#%#**#%%%-...............
........................::*********--+:...................:-=*###***#%*.............
.../PPPP/PPPPPPPPP..........++#*****--#....................:-=+###*#%%%.............
..| PPPPPPPPPPPPPPP..............-'++-#......................:=#%#***%%+............
..| PPPP_______/PPPP..-.........................-.............:=#%#***%%+...........
..| PPPP......| PPPP..........................................:=#%#***%%+...........
..| PPPPPPPPPPPPPPP./YYYY..../YYYY........-...................:=#%#***%%+...........
..| PPPP/PPPPPPPP..| YYYY...| YYYY............................:=*%##**#%#-..........
..| PPPP_______/...| YYYY...| YYYY.............................=*%%##*#%%=..........
..| PPPP............\ YYYYYYYYYYYY.....ooo....................=+%%%#**%%+...........
..| PPPP.............\ YYYYY_/YYYY.../OOOOO....-.............:=+###**#%#:...........
../____/..............\___/.| YYYY...| OOO...................=+#%#**#%#:............
...................../YYYY..| YYYY....\__/.................:=+***++++**-............
.............-......| YYYYY/ YYYYY...-..............................................
.....................\ YYYYYYYYYY...................................................
.......-..............\________/....................................................
....................................................................................
....................................................................................

Thank you so much for downloading and using SmartPyLogger! Developed by Niklavs Visockis, Ludvig Bergström and Jonas Lorenz - in June of 2025 at the Couchbase x AWS x Cillers Hackathon. Special thanks goes out to the Couchbase team and AWS for sponsoring this project.

FastAPI middleware for comprehensive request/response logging.

Installation

pip install smartpylogger .

Usage

from fastapi import FastAPI
from smartpylogger import LoggingMiddleware

app = FastAPI()

# Add your middleware
app.add_middleware(
    LoggingMiddleware,
    api_key="YOUR_API_KEY",
    allowed_origins=["IP", ...]
    )

What it logs:

  • Request details: Nothing yet

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

smartpylogger-0.2.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smartpylogger-0.2.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file smartpylogger-0.2.0.tar.gz.

File metadata

  • Download URL: smartpylogger-0.2.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for smartpylogger-0.2.0.tar.gz
Algorithm Hash digest
SHA256 eedd67e549486925c74f7f9c00a73c9c03ccf973add24a868b2a073b618a9e91
MD5 0b580f4a7e15b0ad6d99bf60da0ba7a5
BLAKE2b-256 c17636a7c7aa7a5e5acd1532ebbb08910cdf5f7eaf3ec7fb4f7552afda45098b

See more details on using hashes here.

File details

Details for the file smartpylogger-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: smartpylogger-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for smartpylogger-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 818e5acbbcd1d1a2f9ca0374527b63b0fbeea5898266e125419c94529bde03eb
MD5 905cbc82412a8eac333e0da9b31f93fb
BLAKE2b-256 b4591b121eee1e400f6a98d9d0f294d98e5d0914efc987072e127dfb3a5e8324

See more details on using hashes here.

Supported by

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