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:
parent
bc7652fdf9
commit
a2684dd601
67 changed files with 678 additions and 52 deletions
8
src/python/jwutils/ArgsContainer.py
Normal file
8
src/python/jwutils/ArgsContainer.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.ArgsContainer import ArgsContainer as ArgsContainer
|
||||
from jw.util.ArgsContainer import add_argument as add_argument
|
||||
|
||||
__all__ = [
|
||||
"ArgsContainer",
|
||||
"add_argument",
|
||||
]
|
||||
6
src/python/jwutils/Bunch.py
Normal file
6
src/python/jwutils/Bunch.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.Bunch import Bunch as Bunch
|
||||
|
||||
__all__ = [
|
||||
"Bunch",
|
||||
]
|
||||
6
src/python/jwutils/Cmd.py
Normal file
6
src/python/jwutils/Cmd.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.Cmd import Cmd as Cmd
|
||||
|
||||
__all__ = [
|
||||
"Cmd",
|
||||
]
|
||||
8
src/python/jwutils/Cmds.py
Normal file
8
src/python/jwutils/Cmds.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.Cmds import Cmds as Cmds
|
||||
from jw.util.Cmds import run_sub_commands as run_sub_commands
|
||||
|
||||
__all__ = [
|
||||
"Cmds",
|
||||
"run_sub_commands",
|
||||
]
|
||||
6
src/python/jwutils/Config.py
Normal file
6
src/python/jwutils/Config.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.Config import Config as Config
|
||||
|
||||
__all__ = [
|
||||
"Config",
|
||||
]
|
||||
6
src/python/jwutils/CppState.py
Normal file
6
src/python/jwutils/CppState.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.CppState import CppState as CppState
|
||||
|
||||
__all__ = [
|
||||
"CppState",
|
||||
]
|
||||
5
src/python/jwutils/Makefile
Normal file
5
src/python/jwutils/Makefile
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
TOPDIR = ../../..
|
||||
PY_UPDATE_INIT_PY = false
|
||||
|
||||
include $(TOPDIR)/make/proj.mk
|
||||
include $(JWBDIR)/make/py-mod.mk
|
||||
6
src/python/jwutils/Object.py
Normal file
6
src/python/jwutils/Object.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.Object import Object as Object
|
||||
|
||||
__all__ = [
|
||||
"Object",
|
||||
]
|
||||
6
src/python/jwutils/Options.py
Normal file
6
src/python/jwutils/Options.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.Options import Options as Options
|
||||
|
||||
__all__ = [
|
||||
"Options",
|
||||
]
|
||||
6
src/python/jwutils/Process.py
Normal file
6
src/python/jwutils/Process.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.Process import Process as Process
|
||||
|
||||
__all__ = [
|
||||
"Process",
|
||||
]
|
||||
6
src/python/jwutils/RedirectStdIO.py
Normal file
6
src/python/jwutils/RedirectStdIO.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.RedirectStdIO import RedirectStdIO as RedirectStdIO
|
||||
|
||||
__all__ = [
|
||||
"RedirectStdIO",
|
||||
]
|
||||
3
src/python/jwutils/Signals.py
Normal file
3
src/python/jwutils/Signals.py
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# ruff: noqa: E501
|
||||
|
||||
__all__ = []
|
||||
6
src/python/jwutils/StopWatch.py
Normal file
6
src/python/jwutils/StopWatch.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.StopWatch import StopWatch as StopWatch
|
||||
|
||||
__all__ = [
|
||||
"StopWatch",
|
||||
]
|
||||
51
src/python/jwutils/__init__.py
Normal file
51
src/python/jwutils/__init__.py
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
# >> -------------------------- generated by python-tools.sh >>
|
||||
# ruff: noqa: E501
|
||||
from pkgutil import extend_path
|
||||
|
||||
__path__ = extend_path(__path__, __name__)
|
||||
from .ArgsContainer import ArgsContainer as ArgsContainer
|
||||
from .ArgsContainer import add_argument as add_argument
|
||||
from .Bunch import Bunch as Bunch
|
||||
from .cast import cast_str_to_timedelta as cast_str_to_timedelta
|
||||
from .cast import cast_str_to_int as cast_str_to_int
|
||||
from .cast import cast_str_to_bool as cast_str_to_bool
|
||||
from .cast import guess_type as guess_type
|
||||
from .cast import from_str as from_str
|
||||
from .cast import from_env as from_env
|
||||
from .Cmds import Cmds as Cmds
|
||||
from .Cmds import run_sub_commands as run_sub_commands
|
||||
from .Config import Config as Config
|
||||
from .CppState import CppState as CppState
|
||||
from .ldap import Connection as Connection
|
||||
from .ldap import default_config as default_config
|
||||
from .log import prio_gets_logged as prio_gets_logged
|
||||
from .log import log_level as log_level
|
||||
from .log import slog_m as slog_m
|
||||
from .log import slog as slog
|
||||
from .log import parse_log_prio_str as parse_log_prio_str
|
||||
from .log import console_color_chars as console_color_chars
|
||||
from .log import set_level as set_level
|
||||
from .log import set_flags as set_flags
|
||||
from .log import append_to_prefix as append_to_prefix
|
||||
from .log import remove_from_prefix as remove_from_prefix
|
||||
from .log import set_filename_length as set_filename_length
|
||||
from .log import set_module_name_length as set_module_name_length
|
||||
from .log import add_log_file as add_log_file
|
||||
from .misc import silentremove as silentremove
|
||||
from .misc import atomic_store as atomic_store
|
||||
from .misc import object_builtin_name as object_builtin_name
|
||||
from .misc import get_derived_classes as get_derived_classes
|
||||
from .misc import load_classes as load_classes
|
||||
from .misc import load_class as load_class
|
||||
from .misc import load_class_names as load_class_names
|
||||
from .misc import load_object as load_object
|
||||
from .misc import load_function as load_function
|
||||
from .misc import commit_tmpfile as commit_tmpfile
|
||||
from .misc import multi_regex_edit as multi_regex_edit
|
||||
from .misc import dump as dump
|
||||
from .Object import Object as Object
|
||||
from .Options import Options as Options
|
||||
from .Process import Process as Process
|
||||
from .RedirectStdIO import RedirectStdIO as RedirectStdIO
|
||||
from .StopWatch import StopWatch as StopWatch
|
||||
# << -------------------------- generated by python-tools.sh <<
|
||||
5
src/python/jwutils/algo/Makefile
Normal file
5
src/python/jwutils/algo/Makefile
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
TOPDIR = ../../../..
|
||||
PY_UPDATE_INIT_PY = false
|
||||
|
||||
include $(TOPDIR)/make/proj.mk
|
||||
include $(JWBDIR)/make/py-mod.mk
|
||||
12
src/python/jwutils/algo/ShuntingYard.py
Normal file
12
src/python/jwutils/algo/ShuntingYard.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.algo.ShuntingYard import L as L
|
||||
from jw.util.algo.ShuntingYard import R as R
|
||||
from jw.util.algo.ShuntingYard import Operator as Operator
|
||||
from jw.util.algo.ShuntingYard import ShuntingYard as ShuntingYard
|
||||
|
||||
__all__ = [
|
||||
"L",
|
||||
"R",
|
||||
"Operator",
|
||||
"ShuntingYard",
|
||||
]
|
||||
8
src/python/jwutils/algo/__init__.py
Normal file
8
src/python/jwutils/algo/__init__.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# >> -------------------------- generated by python-tools.sh >>
|
||||
# ruff: noqa: E501
|
||||
from pkgutil import extend_path
|
||||
|
||||
__path__ = extend_path(__path__, __name__)
|
||||
from .ShuntingYard import Operator as Operator
|
||||
from .ShuntingYard import ShuntingYard as ShuntingYard
|
||||
# << -------------------------- generated by python-tools.sh <<
|
||||
5
src/python/jwutils/asyncio/Makefile
Normal file
5
src/python/jwutils/asyncio/Makefile
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
TOPDIR = ../../../..
|
||||
PY_UPDATE_INIT_PY = false
|
||||
|
||||
include $(TOPDIR)/make/proj.mk
|
||||
include $(JWBDIR)/make/py-mod.mk
|
||||
6
src/python/jwutils/asyncio/Process.py
Normal file
6
src/python/jwutils/asyncio/Process.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.asyncio.Process import Process as Process
|
||||
|
||||
__all__ = [
|
||||
"Process",
|
||||
]
|
||||
6
src/python/jwutils/asyncio/ShellCmd.py
Normal file
6
src/python/jwutils/asyncio/ShellCmd.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.asyncio.ShellCmd import ShellCmd as ShellCmd
|
||||
|
||||
__all__ = [
|
||||
"ShellCmd",
|
||||
]
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue