logtools icon indicating copy to clipboard operation
logtools copied to clipboard

Moved to Python3, latest SQLAlchemy (supports Mysql8.0), plus some extensions

Open AlainLich opened this issue 3 years ago • 1 comments

Hi,

Interesting package, which I adapted to my use cases. In this process, moved to Python3, added database related extensions...

To figure out the details, see extensions https://github.com/AlainLich/logtools/blob/ALPython3/PYTHON3-ADDITIONS.md. On my site https://github.com/AlainLich/logtools use branch ALPython3 (which should be the default)

Current plan is to enter a PR once more testing has been done, could do it sooner if interest; will take remarks into account if this facilitates integration.

Sorry, this is not modular, but I discovered the interesting things (in my view) late, so I did not want to undo or make modular.

AlainLich avatar May 18 '21 15:05 AlainLich

Hi, I am ready to enter a PR, in case there is some interest. Main features:

  1. works with Python3, but not compatible with Python2 (sorry). Some areas not covered (geoIP, ̀logfilter`).
  2. database interfaces supported: Mysql 8.x and SQLite. This required moving to up to date SQLAlchemy, getting rid of sqlsoup
  3. some extensions, as described on https://github.com/AlainLich/logtools/blob/ALPython3/PYTHON3-ADDITIONS.md. This allows for more log formats, added flexibility, handling of JSON input.
  4. tests see https://github.com/AlainLich/logtools/actions ( including Mysql and SQLite )

AlainLich avatar Jun 12 '21 20:06 AlainLich