jwutils: Move to jwutils -> jw.util

Move all implementation source code from the jwutils module to
jw.util. For compatibility with existing Python modules, keep a thin,
autogenerated compatibility shim under jwutils.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-06-10 07:22:46 +02:00 • committed by janware DevOps
commit a2684dd601
Signed by: DevOps
SSH key fingerprint: SHA256:cZiw7ExG5q3KAVm7Jse3rGITowu0VjgUgNMPbifmY8g
21 changed files with 678 additions and 52 deletions

View file

@ -0,0 +1,7 @@
# ruff: noqa: E501
from jw.util.db.DataBase import DataBase as DataBase
__all__ = [
"DataBase",
]

View file

@ -0,0 +1,5 @@
TOPDIR = ../../../..
PY_UPDATE_INIT_PY = false
include $(TOPDIR)/make/proj.mk
include $(JWBDIR)/make/py-mod.mk

View file

@ -0,0 +1,6 @@
# ruff: noqa: E501
from jw.util.db.Session import Session as Session
__all__ = [
"Session",
]

View file

@ -0,0 +1,6 @@
# ruff: noqa: E501
from jw.util.db.TableIoHandler import TableIoHandler as TableIoHandler
__all__ = [
"TableIoHandler",
]

View file

@ -0,0 +1,17 @@
# >> -------------------------- generated by python-tools.sh >>
# ruff: noqa: E501
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
from .rows import rows_pretty as rows_pretty
from .rows import rows_duplicates as rows_duplicates
from .rows import rows_remove as rows_remove
from .rows import rows_select as rows_select
from .rows import rows_rewrite_regex as rows_rewrite_regex
from .rows import rows_check_not_null as rows_check_not_null
from .rows import rows_dumps as rows_dumps
from .rows import rows_dump as rows_dump
from .rows import rows_to_csv as rows_to_csv
from .Session import Session as Session
from .TableIoHandler import TableIoHandler as TableIoHandler
# << -------------------------- generated by python-tools.sh <<

View file

@ -0,0 +1,5 @@
TOPDIR = ../../../../..
PY_UPDATE_INIT_PY = false
include $(TOPDIR)/make/proj.mk
include $(JWBDIR)/make/py-mod.mk

View file

@ -0,0 +1,6 @@
# ruff: noqa: E501
from jw.util.db.query.Queries import Queries as Queries
__all__ = [
"Queries",
]

View file

@ -0,0 +1,6 @@
# ruff: noqa: E501
from jw.util.db.query.Query import Query as Query
__all__ = [
"Query",
]

View file

@ -0,0 +1,8 @@
# ruff: noqa: E501
from jw.util.db.query.QueryResult import ResType as ResType
from jw.util.db.query.QueryResult import QueryResult as QueryResult
__all__ = [
"ResType",
"QueryResult",
]

View file

@ -0,0 +1,10 @@
# >> -------------------------- generated by python-tools.sh >>
# ruff: noqa: E501
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
from .Queries import Queries as Queries
from .Query import Query as Query
from .QueryResult import ResType as ResType
from .QueryResult import QueryResult as QueryResult
# << -------------------------- generated by python-tools.sh <<

View file

@ -0,0 +1,22 @@
# ruff: noqa: E501
from jw.util.db.rows import rows_pretty as rows_pretty
from jw.util.db.rows import rows_duplicates as rows_duplicates
from jw.util.db.rows import rows_remove as rows_remove
from jw.util.db.rows import rows_select as rows_select
from jw.util.db.rows import rows_rewrite_regex as rows_rewrite_regex
from jw.util.db.rows import rows_check_not_null as rows_check_not_null
from jw.util.db.rows import rows_dumps as rows_dumps
from jw.util.db.rows import rows_dump as rows_dump
from jw.util.db.rows import rows_to_csv as rows_to_csv
__all__ = [
"rows_pretty",
"rows_duplicates",
"rows_remove",
"rows_select",
"rows_rewrite_regex",
"rows_check_not_null",
"rows_dumps",
"rows_dump",
"rows_to_csv",
]

View file

@ -0,0 +1,6 @@
# ruff: noqa: E501
from jw.util.db.schema.Column import Column as Column
__all__ = [
"Column",
]

View file

@ -0,0 +1,6 @@
# ruff: noqa: E501
from jw.util.db.schema.ColumnSet import ColumnSet as ColumnSet
__all__ = [
"ColumnSet",
]

View file

@ -0,0 +1,6 @@
# ruff: noqa: E501
from jw.util.db.schema.CompositeForeignKey import CompositeForeignKey as CompositeForeignKey
__all__ = [
"CompositeForeignKey",
]

View file

@ -0,0 +1,10 @@
# ruff: noqa: E501
from jw.util.db.schema.DataType import py_type as py_type
from jw.util.db.schema.DataType import Id as Id
from jw.util.db.schema.DataType import DataType as DataType
__all__ = [
"py_type",
"Id",
"DataType",
]

View file

@ -0,0 +1,5 @@
TOPDIR = ../../../../..
PY_UPDATE_INIT_PY = false
include $(TOPDIR)/make/proj.mk
include $(JWBDIR)/make/py-mod.mk

View file

@ -0,0 +1,6 @@
# ruff: noqa: E501
from jw.util.db.schema.Schema import Schema as Schema
__all__ = [
"Schema",
]

View file

@ -0,0 +1,3 @@
# ruff: noqa: E501
__all__ = []

View file

@ -0,0 +1,6 @@
# ruff: noqa: E501
from jw.util.db.schema.Table import Table as Table
__all__ = [
"Table",
]

View file

@ -0,0 +1,14 @@
# >> -------------------------- generated by python-tools.sh >>
# ruff: noqa: E501
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
from .Column import Column as Column
from .ColumnSet import ColumnSet as ColumnSet
from .CompositeForeignKey import CompositeForeignKey as CompositeForeignKey
from .DataType import py_type as py_type
from .DataType import DataType as DataType
from .Schema import Schema as Schema
from .Table import Table as Table
from .utils import check_schema as check_schema
# << -------------------------- generated by python-tools.sh <<

Some files were not shown because too many files have changed in this diff Show more