HydrogenLib-NEXT 7__tar.gz → 9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hydrogenlib_next-7 → hydrogenlib_next-9}/.gitignore +1 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/PKG-INFO +1 -2
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/cli/src/_hydrogenlib_cli/base/__init__.py +1 -1
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/cli/src/_hydrogenlib_cli/base/metadata/__init__.py +1 -1
- hydrogenlib_next-9/modules/cli/src/_hydrogenlib_cli/base/metadata/command.py +66 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/cli/src/_hydrogenlib_cli/base/parser.py +1 -1
- hydrogenlib_next-7/modules/cli/src/_hydrogenlib_cli/base/cli.py → hydrogenlib_next-9/modules/cli/src/_hydrogenlib_cli/base/runner.py +1 -1
- hydrogenlib_next-9/modules/cli/src/_hydrogenlib_cli/cli/command.py +12 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/cli/src/_hydrogenlib_cli/simple_parser.py +2 -2
- hydrogenlib_next-9/modules/config/re-import/simple/utils.py +1 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/config/src/_hydrogenlib_config/simple/__init__.py +1 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/pyproject.toml +55 -57
- hydrogenlib_next-7/hydrogenlib/__init__.py +0 -1
- hydrogenlib_next-7/hydrogenlib/core.py +0 -1
- hydrogenlib_next-7/hydrogenlib/ctypes.py +0 -1
- hydrogenlib_next-7/hydrogenlib/resource_system.py +0 -1
- hydrogenlib_next-7/hydrogenlib/sample.py +0 -1
- hydrogenlib_next-7/hydrogenlib/tools.py +0 -1
- hydrogenlib_next-7/hydrogenlib/winreg.py +0 -1
- hydrogenlib_next-7/modules/cli/src/_hydrogenlib_cli/base/metadata/command.py +0 -61
- hydrogenlib_next-7/modules/cli/src/_hydrogenlib_cli/cli/command.py +0 -6
- hydrogenlib_next-7/modules/config/re-import/core/base.py +0 -1
- hydrogenlib_next-7/modules/config/re-import/core/field.py +0 -1
- hydrogenlib_next-7/modules/config/re-import/core/type_registry.py +0 -1
- hydrogenlib_next-7/modules/config/re-import/simple.py +0 -1
- hydrogenlib_next-7/scripts/commands/__init__.py +0 -0
- hydrogenlib_next-7/scripts/module/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/.ai/mcp/mcp.json +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/.github/ISSUE_TEMPLATE/bug_template.yml +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/.github/workflows/python-release-publish.yml +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/.python-version +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/.safety-project.ini +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/License.md +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/README.md +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/git-hooks/commit-msg.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/git-hooks/install.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/git-hooks/post-push.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/anydantic/.hydro-ignore +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/anydantic/README.md +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/anydantic/pyproject.toml +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/anydantic/src/_hydrogenlib_anydantic/__about__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/anydantic/src/_hydrogenlib_anydantic/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/anydantic/src/_hydrogenlib_anydantic/base.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/anydantic/src/_hydrogenlib_anydantic/model.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/application/.hydro-ignore +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/application/README.md +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/application/pyproject.toml +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/application/src/_hydrogenlib_application/__about__.py +0 -0
- {hydrogenlib_next-7/hydrogenlib/config → hydrogenlib_next-9/modules/application/src/_hydrogenlib_application}/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/cli/.hydro-ignore +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/cli/README.md +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/cli/pyproject.toml +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/cli/src/_hydrogenlib_cli/__about__.py +0 -0
- {hydrogenlib_next-7/hydrogenlib/config/core → hydrogenlib_next-9/modules/cli/src/_hydrogenlib_cli}/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/cli/src/_hydrogenlib_cli/base/metadata/argument.py +0 -0
- {hydrogenlib_next-7/modules/application/src/_hydrogenlib_application → hydrogenlib_next-9/modules/cli/src/_hydrogenlib_cli/cli}/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/config/README.md +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/config/pyproject.toml +0 -0
- {hydrogenlib_next-7/modules/cli/src/_hydrogenlib_cli → hydrogenlib_next-9/modules/config/re-import/core}/__init__.py +0 -0
- {hydrogenlib_next-7/hydrogenlib/config → hydrogenlib_next-9/modules/config/re-import}/core/base.py +0 -0
- {hydrogenlib_next-7/hydrogenlib/config → hydrogenlib_next-9/modules/config/re-import}/core/field.py +0 -0
- {hydrogenlib_next-7/hydrogenlib/config → hydrogenlib_next-9/modules/config/re-import}/core/type_registry.py +0 -0
- /hydrogenlib_next-7/hydrogenlib/config/simple.py → /hydrogenlib_next-9/modules/config/re-import/simple/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/config/requirements.txt +0 -0
- {hydrogenlib_next-7/modules/cli/src/_hydrogenlib_cli/cli → hydrogenlib_next-9/modules/config/src/_hydrogenlib_config}/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/config/src/_hydrogenlib_config/simple/base.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/config/src/_hydrogenlib_config/simple/builtin_mixins.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/config/src/_hydrogenlib_config/simple/gtr.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/config/src/_hydrogenlib_config/simple/mixin.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/config/src/_hydrogenlib_config/simple/utils.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/config/src/_hydrogenlib_config_core/__about__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/config/src/_hydrogenlib_config_core/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/config/src/_hydrogenlib_config_core/base.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/config/src/_hydrogenlib_config_core/field.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/config/src/_hydrogenlib_config_core/type_registry.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/README.md +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/pyproject.toml +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/re-import.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/requirements.txt +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/__about__.py +0 -0
- {hydrogenlib_next-7/modules/config/re-import/core → hydrogenlib_next-9/modules/core/src/_hydrogenlib_core}/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/async_methods.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/atexit.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/const.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/data_structures/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/data_structures/b_plus_tree.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/data_structures/binary_tree.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/data_structures/graph.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/data_structures/heap.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/data_structures/huffman_tree.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/data_structures/stack.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/data_structures/tree.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/data_structures/vis_structure.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/dataclasses_methods.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/decorators.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/descriptor.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/environ_parser.py +0 -0
- {hydrogenlib_next-7/modules/config/src/_hydrogenlib_config → hydrogenlib_next-9/modules/core/src/_hydrogenlib_core/fsutil}/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/fsutil/copy.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/fsutil/dir_struct.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/fsutil/file.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/fsutil/hard_link.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/fsutil/soft_link.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/hash.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/import_plus.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/io_addons.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/json/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/json/common.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/json/objective_support.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/network.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/nio.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/output_methods.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/process.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/runtime.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/socket_methods/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/socket_methods/addr.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/socket_methods/async_socket.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/socket_methods/socket_consts.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/std_extends/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/std_extends/builtin_methods/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/std_extends/builtin_methods/frozen_dict.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/std_extends/objective_struct.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/std_extends/objective_struct.pyi +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/std_extends/rich_print.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/threading_methods/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/threading_methods/methods.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/threading_methods/sync.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/threading_methods/thread.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/time_.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/trasyncio.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/typefunc/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/typefunc/async_func.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/typefunc/bitmap.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/typefunc/call_property.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/typefunc/common.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/typefunc/dict_func.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/typefunc/errors.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/typefunc/function.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/typefunc/generator.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/typefunc/generator.pyi +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/typefunc/index_cursor.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/typefunc/list_func.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/typefunc/mixin.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/typefunc/number.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/typefunc/properties.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/typefunc/safe_eval.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/typefunc/tempalte_type.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/typefunc/type_func.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/utils/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/utils/clock.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/utils/double_dict.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/utils/instance_mapping/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/utils/instance_mapping/instance_dict.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/utils/lazy/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/utils/lazy/lz_data.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/utils/lazy/lz_property.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/utils/lazy/lz_property.pyi +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/utils/multi_set.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/utils/namespace.py +0 -0
- {hydrogenlib_next-7/modules/core/src/_hydrogenlib_core → hydrogenlib_next-9/modules/core/src/_hydrogenlib_core/utils/object_pool}/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/utils/object_pool/item.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/utils/object_pool/pool.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/utils/once_message.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/utils/probability_counter.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/utils/property_path.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/utils/timed_data.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/utils/timer_wheel/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/utils/timer_wheel/core.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/utils/timer_wheel/task.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/utils/timer_wheel/wheel.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/utils/triggers.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/utils/wrappers.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/ctypes/README.md +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/ctypes/pyproject.toml +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/ctypes/requirements.txt +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/ctypes/src/_hydrogenlib_ctypes/__about__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/ctypes/src/_hydrogenlib_ctypes/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/ctypes/src/_hydrogenlib_ctypes/_dll.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/ctypes/src/_hydrogenlib_ctypes/_func.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/ctypes/src/_hydrogenlib_ctypes/_special_methods.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/ctypes/src/_hydrogenlib_ctypes/_special_methods.pyi +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/ctypes/src/_hydrogenlib_ctypes/_types.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/httpcache/.hydro-ignore +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/httpcache/README.md +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/httpcache/pyproject.toml +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/httpcache/src/_hydrogenlib_httpcache/__about__.py +0 -0
- {hydrogenlib_next-7/modules/core/src/_hydrogenlib_core/fsutil → hydrogenlib_next-9/modules/httpcache/src/_hydrogenlib_httpcache}/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/httpcache/src/_hydrogenlib_httpcache/cache_control.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/httpcache/src/_hydrogenlib_httpcache/cache_dir.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/httpcache/src/_hydrogenlib_httpcache/cache_info.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/httpcache/src/_hydrogenlib_httpcache/utils.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/httpcache/uv.lock +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/ipc/.hydro-ignore +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/ipc/LICENSE.txt +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/ipc/README.md +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/ipc/pyproject.toml +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/ipc/src/hydrogenlib_ipc/__about__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/ipc/src/hydrogenlib_ipc/__init__.py +0 -0
- {hydrogenlib_next-7/modules/core/src/_hydrogenlib_core/utils/object_pool → hydrogenlib_next-9/modules/ipc/src/hydrogenlib_ipc/pipe}/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/ipc/src/hydrogenlib_ipc/pipe/base.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/ipc/src/hydrogenlib_ipc/pipe/windows.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/quickapi/.hydro-ignore +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/quickapi/README.md +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/quickapi/pyproject.toml +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/quickapi/requirements.txt +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/quickapi/src/_hydrogenlib_quickapi/__about__.py +0 -0
- {hydrogenlib_next-7/modules/httpcache/src/_hydrogenlib_httpcache → hydrogenlib_next-9/modules/quickapi/src/_hydrogenlib_quickapi}/__init__.py +0 -0
- {hydrogenlib_next-7/modules/ipc/src/hydrogenlib_ipc/pipe → hydrogenlib_next-9/modules/quickapi/src/_hydrogenlib_quickapi/client}/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/quickapi/src/_hydrogenlib_quickapi/client/aiohttp.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/quickapi/src/_hydrogenlib_quickapi/client/api_function.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/quickapi/src/_hydrogenlib_quickapi/client/methods.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/quickapi/src/_hydrogenlib_quickapi/client/models/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/quickapi/src/_hydrogenlib_quickapi/client/models/api_info.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/quickapi/src/_hydrogenlib_quickapi/client/models/request.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/quickapi/src/_hydrogenlib_quickapi/client/models/response.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/quickapi/src/_hydrogenlib_quickapi/client/models/stream_reader.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/quickapi/src/_hydrogenlib_quickapi/client/source.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/resource-system/README.md +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/resource-system/pyproject.toml +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/resource-system/src/_hydrogenlib_resource_system/__about__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/resource-system/src/_hydrogenlib_resource_system/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/resource-system/src/_hydrogenlib_resource_system/builtin_providers.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/resource-system/src/_hydrogenlib_resource_system/core/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/resource-system/src/_hydrogenlib_resource_system/core/errors.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/resource-system/src/_hydrogenlib_resource_system/core/provider.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/resource-system/src/_hydrogenlib_resource_system/core/system.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/resource-system/src/_hydrogenlib_resource_system/core/url/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/resource-system/src/_hydrogenlib_resource_system/core/url/url.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/resource-system/src/_hydrogenlib_resource_system/system.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/resource-system/src/_hydrogenlib_resource_system/utils.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/sample/README.md +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/sample/pyproject.toml +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/sample/requirements.txt +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/sample/src/_hydrogenlib_sample/__about__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/sample/src/_hydrogenlib_sample/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/sample/src/_hydrogenlib_sample/example.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/sample/src/_hydrogenlib_sample/sample_data/__init__.py +0 -0
- {hydrogenlib_next-7/modules/quickapi/src/_hydrogenlib_quickapi → hydrogenlib_next-9/modules/sample/src/_hydrogenlib_sample/scripts}/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/sample/src/_hydrogenlib_sample/scripts/enter.py +0 -0
- {hydrogenlib_next-7/modules/quickapi/src/_hydrogenlib_quickapi/client → hydrogenlib_next-9/modules/sample/src/_hydrogenlib_sample/scripts/utils}/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/sample/src/_hydrogenlib_sample/scripts/utils/build-bitmap.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/sample/src/_hydrogenlib_sample/scripts/utils/rename-x.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/tools/README.md +0 -0
- {hydrogenlib_next-7/modules/sample/src/_hydrogenlib_sample/scripts → hydrogenlib_next-9/modules/tools}/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/tools/enter.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/tools/scripts/parse_c_headers.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/winreg/README.md +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/winreg/pyproject.toml +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/winreg/requirements.txt +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/winreg/src/_hydrogenlib_winreg/__about__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/winreg/src/_hydrogenlib_winreg/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/modules/winreg/src/_hydrogenlib_winreg/main.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/publish-hook +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/refact.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/scripts/base/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/scripts/base/base.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/scripts/base/console_.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/scripts/base/module.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/scripts/base/project.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/scripts/base/project_info.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/scripts/build_project.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/scripts/ci_publish.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/scripts/clean.py +0 -0
- {hydrogenlib_next-7/modules/sample/src/_hydrogenlib_sample/scripts/utils → hydrogenlib_next-9/scripts/commands}/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/scripts/commands/hatchc.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/scripts/commands/uvc.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/scripts/generate_requirements.py +0 -0
- {hydrogenlib_next-7/modules/tools → hydrogenlib_next-9/scripts/module}/__init__.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/scripts/module/build.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/scripts/module/clear.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/scripts/module/ignore.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/scripts/module/info.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/scripts/module/new.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/scripts/module/publish.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/scripts/module/run.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/scripts/update-author-info.py +0 -0
- {hydrogenlib_next-7 → hydrogenlib_next-9}/test.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: HydrogenLib-NEXT
|
|
3
|
-
Version:
|
|
3
|
+
Version: 9
|
|
4
4
|
Project-URL: Documentation, https://github.com/LittleNightSong/HydrogenLib#readme
|
|
5
5
|
Project-URL: Issues, https://github.com/LittleNightSong/HydrogenLib/issues
|
|
6
6
|
Project-URL: Source, https://github.com/LittleNightSong/HydrogenLib
|
|
@@ -15,7 +15,6 @@ Classifier: Programming Language :: Python :: 3.14
|
|
|
15
15
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
16
16
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
17
17
|
Requires-Python: >=3.12
|
|
18
|
-
Requires-Dist: hydrogenlib-core>=0.6.0
|
|
19
18
|
Description-Content-Type: text/markdown
|
|
20
19
|
|
|
21
20
|
<h1 align="center">HydrogenLib</h1>
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/cli/src/_hydrogenlib_cli/base/metadata/__init__.py
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
from .argument import Argument, ArgumentTypes
|
|
2
|
-
from .command import
|
|
2
|
+
from .command import CommandSpec
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import dataclasses
|
|
2
|
+
import enum
|
|
3
|
+
from collections import OrderedDict
|
|
4
|
+
|
|
5
|
+
from _hydrogenlib_cli.base.metadata.argument import Argument
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ArgTypes(str, enum.Enum):
|
|
9
|
+
POSITION = 'position'
|
|
10
|
+
KEYWORD = 'keyword'
|
|
11
|
+
SWITCH = 'switch'
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@dataclasses.dataclass
|
|
15
|
+
class CommandSpec:
|
|
16
|
+
name: str
|
|
17
|
+
command: str
|
|
18
|
+
description: str
|
|
19
|
+
|
|
20
|
+
args: OrderedDict[str, Argument] = dataclasses.field(default_factory=OrderedDict)
|
|
21
|
+
kwargs: dict[str, Argument] = dataclasses.field(default_factory=dict)
|
|
22
|
+
switches: dict[str, Argument] = dataclasses.field(default_factory=dict)
|
|
23
|
+
|
|
24
|
+
mutually_exclusive: set[str] = None
|
|
25
|
+
requires: set[str] = None
|
|
26
|
+
|
|
27
|
+
_short_names_: dict[str, str] = dataclasses.field(init=False, default=None)
|
|
28
|
+
_all_names_: dict[str, str] = dataclasses.field(init=False, default=None)
|
|
29
|
+
|
|
30
|
+
def __post_init__(self):
|
|
31
|
+
self._short_names_ = {}
|
|
32
|
+
self._all_names_ = {}
|
|
33
|
+
|
|
34
|
+
for arg in self.args.values():
|
|
35
|
+
self._short_names_[arg.short_name] = arg.name
|
|
36
|
+
self._all_names_[arg.name] = ArgTypes.POSITION
|
|
37
|
+
|
|
38
|
+
for arg in self.kwargs.values():
|
|
39
|
+
self._short_names_[arg.short_name] = arg.name
|
|
40
|
+
self._all_names_[arg.name] = ArgTypes.KEYWORD
|
|
41
|
+
|
|
42
|
+
for arg in self.switches.values():
|
|
43
|
+
self._short_names_[arg.short_name] = arg.name
|
|
44
|
+
self._all_names_[arg.name] = ArgTypes.SWITCH
|
|
45
|
+
|
|
46
|
+
def get_fullname(self, name_or_short_name: str):
|
|
47
|
+
if name_or_short_name in self._short_names_:
|
|
48
|
+
return self._short_names_[name_or_short_name]
|
|
49
|
+
elif name_or_short_name in self._all_names_:
|
|
50
|
+
return name_or_short_name
|
|
51
|
+
else:
|
|
52
|
+
raise KeyError(name_or_short_name)
|
|
53
|
+
|
|
54
|
+
def get_argument(self, name: str):
|
|
55
|
+
name = self.get_fullname(name)
|
|
56
|
+
|
|
57
|
+
# if arg := self.args.get(name):
|
|
58
|
+
# return arg
|
|
59
|
+
# elif arg := self.kwargs.get(name):
|
|
60
|
+
# return arg
|
|
61
|
+
# elif arg := self.switches.get(name):
|
|
62
|
+
# return arg
|
|
63
|
+
# else:
|
|
64
|
+
# return None
|
|
65
|
+
|
|
66
|
+
return self.args.get(name) or self.kwargs.get(name) or self.switches.get(name)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
from _hydrogenlib_cli.base.metadata.command import
|
|
1
|
+
from _hydrogenlib_cli.base.metadata.command import CommandSpec
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
class Parser:
|
|
5
|
-
def __init__(self, command:
|
|
5
|
+
def __init__(self, command: CommandSpec):
|
|
6
6
|
self._command = command
|
|
7
7
|
|
|
8
8
|
def parse(self, argv):
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from _hydrogenlib_config.simple.utils import *
|
|
@@ -1,57 +1,55 @@
|
|
|
1
|
-
[build-system]
|
|
2
|
-
requires = ["hatchling"]
|
|
3
|
-
build-backend = "hatchling.build"
|
|
4
|
-
|
|
5
|
-
[project]
|
|
6
|
-
name = "HydrogenLib-NEXT"
|
|
7
|
-
dynamic = ["version"]
|
|
8
|
-
readme = "README.md"
|
|
9
|
-
requires-python = ">=3.12"
|
|
10
|
-
keywords = []
|
|
11
|
-
authors = [
|
|
12
|
-
{ name = "LittleNightSong", email = "LittleNightSongYO@outlook.com" },
|
|
13
|
-
]
|
|
14
|
-
classifiers = [
|
|
15
|
-
"Development Status :: 3 - Alpha",
|
|
16
|
-
"Programming Language :: Python",
|
|
17
|
-
"Programming Language :: Python :: 3.11",
|
|
18
|
-
"Programming Language :: Python :: 3.12",
|
|
19
|
-
"Programming Language :: Python :: 3.13",
|
|
20
|
-
"Programming Language :: Python :: 3.14",
|
|
21
|
-
"Programming Language :: Python :: Implementation :: CPython",
|
|
22
|
-
"Programming Language :: Python :: Implementation :: PyPy"
|
|
23
|
-
]
|
|
24
|
-
dependencies = [
|
|
25
|
-
|
|
26
|
-
]
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
]
|
|
55
|
-
|
|
56
|
-
[tool.hatch.build.targets.wheel]
|
|
57
|
-
packages = ["hydrogenlib"]
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "HydrogenLib-NEXT"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
readme = "README.md"
|
|
9
|
+
requires-python = ">=3.12"
|
|
10
|
+
keywords = []
|
|
11
|
+
authors = [
|
|
12
|
+
{ name = "LittleNightSong", email = "LittleNightSongYO@outlook.com" },
|
|
13
|
+
]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Development Status :: 3 - Alpha",
|
|
16
|
+
"Programming Language :: Python",
|
|
17
|
+
"Programming Language :: Python :: 3.11",
|
|
18
|
+
"Programming Language :: Python :: 3.12",
|
|
19
|
+
"Programming Language :: Python :: 3.13",
|
|
20
|
+
"Programming Language :: Python :: 3.14",
|
|
21
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
22
|
+
"Programming Language :: Python :: Implementation :: PyPy"
|
|
23
|
+
]
|
|
24
|
+
dependencies = []
|
|
25
|
+
|
|
26
|
+
import-names = ["hydrogenlib"]
|
|
27
|
+
|
|
28
|
+
[project.urls]
|
|
29
|
+
Documentation = "https://github.com/LittleNightSong/HydrogenLib#readme"
|
|
30
|
+
Issues = "https://github.com/LittleNightSong/HydrogenLib/issues"
|
|
31
|
+
Source = "https://github.com/LittleNightSong/HydrogenLib"
|
|
32
|
+
|
|
33
|
+
[tool.hatch.version]
|
|
34
|
+
path = "hydrogenlib/__init__.py"
|
|
35
|
+
|
|
36
|
+
[[tool.uv.index]]
|
|
37
|
+
url = "https://mirrors.aliyun.com/pypi/simple"
|
|
38
|
+
default = true
|
|
39
|
+
|
|
40
|
+
[dependency-groups]
|
|
41
|
+
dev = [
|
|
42
|
+
"aiohttp",
|
|
43
|
+
"curl-cffi",
|
|
44
|
+
"hatch",
|
|
45
|
+
"hatchling",
|
|
46
|
+
"httpx",
|
|
47
|
+
"packaging>=25.0",
|
|
48
|
+
"pydantic",
|
|
49
|
+
"tomlkit",
|
|
50
|
+
"urllib3",
|
|
51
|
+
"uv",
|
|
52
|
+
]
|
|
53
|
+
|
|
54
|
+
[tool.hatch.build.targets.wheel]
|
|
55
|
+
packages = ["hydrogenlib"]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
version = '7'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from _hydrogenlib_ctypes import *
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from _hydrogenlib_resource_system import *
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from _hydrogenlib_sample import *
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from _hydrogenlib_tools import *
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from _hydrogenlib_winreg import *
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import dataclasses
|
|
2
|
-
from collections import OrderedDict
|
|
3
|
-
from itertools import chain
|
|
4
|
-
|
|
5
|
-
from _hydrogenlib_core.typefunc import Function
|
|
6
|
-
from _hydrogenlib_cli.base.metadata.argument import Argument
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
@dataclasses.dataclass
|
|
10
|
-
class CommandMeta:
|
|
11
|
-
name: str
|
|
12
|
-
command: str
|
|
13
|
-
description: str
|
|
14
|
-
|
|
15
|
-
args: OrderedDict[str, Argument] = dataclasses.field(default_factory=OrderedDict)
|
|
16
|
-
kwargs: dict[str, Argument] = dataclasses.field(default_factory=dict)
|
|
17
|
-
switches: dict[str, Argument] = dataclasses.field(default_factory=dict)
|
|
18
|
-
|
|
19
|
-
mutually_exclusive: set[str] = None
|
|
20
|
-
requires: set[str] = None
|
|
21
|
-
|
|
22
|
-
_short_names_ = None
|
|
23
|
-
|
|
24
|
-
def __post_init__(self):
|
|
25
|
-
self._short_names_ = {}
|
|
26
|
-
for arg in chain(self.args.values(), self.kwargs.values(), self.switches.values()):
|
|
27
|
-
if arg.short_name:
|
|
28
|
-
self._short_names_[arg.short_name] = arg.name
|
|
29
|
-
|
|
30
|
-
def get_fullname(self, name_or_short_name: str):
|
|
31
|
-
if name_or_short_name in self._short_names_:
|
|
32
|
-
return self._short_names_[name_or_short_name]
|
|
33
|
-
else:
|
|
34
|
-
return self._short_names_
|
|
35
|
-
|
|
36
|
-
def get_argument(self, name: str):
|
|
37
|
-
name = self.get_fullname(name)
|
|
38
|
-
|
|
39
|
-
if arg := self.args.get(name):
|
|
40
|
-
return arg
|
|
41
|
-
elif arg := self.kwargs.get(name):
|
|
42
|
-
return arg
|
|
43
|
-
elif arg := self.switches.get(name):
|
|
44
|
-
return arg
|
|
45
|
-
else:
|
|
46
|
-
return None
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
# Decorator
|
|
50
|
-
def command(
|
|
51
|
-
func, *, name: str = None, description: str = None,
|
|
52
|
-
command: str = None
|
|
53
|
-
):
|
|
54
|
-
def decorator(func):
|
|
55
|
-
func = Function(func)
|
|
56
|
-
|
|
57
|
-
func.__command__ = cmd = CommandMeta(
|
|
58
|
-
name or func.name,
|
|
59
|
-
command or func.name,
|
|
60
|
-
description or func.doc
|
|
61
|
-
)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from _hydrogenlib_config_core.base import *
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from _hydrogenlib_config_core.field import *
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from _hydrogenlib_config_core.type_registry import *
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from _hydrogenlib_config.simple import *
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/anydantic/src/_hydrogenlib_anydantic/__about__.py
RENAMED
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/anydantic/src/_hydrogenlib_anydantic/__init__.py
RENAMED
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/anydantic/src/_hydrogenlib_anydantic/base.py
RENAMED
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/anydantic/src/_hydrogenlib_anydantic/model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/cli/src/_hydrogenlib_cli/base/metadata/argument.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hydrogenlib_next-7/hydrogenlib/config → hydrogenlib_next-9/modules/config/re-import}/core/base.py
RENAMED
|
File without changes
|
{hydrogenlib_next-7/hydrogenlib/config → hydrogenlib_next-9/modules/config/re-import}/core/field.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/config/src/_hydrogenlib_config/simple/base.py
RENAMED
|
File without changes
|
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/config/src/_hydrogenlib_config/simple/gtr.py
RENAMED
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/config/src/_hydrogenlib_config/simple/mixin.py
RENAMED
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/config/src/_hydrogenlib_config/simple/utils.py
RENAMED
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/config/src/_hydrogenlib_config_core/__about__.py
RENAMED
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/config/src/_hydrogenlib_config_core/__init__.py
RENAMED
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/config/src/_hydrogenlib_config_core/base.py
RENAMED
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/config/src/_hydrogenlib_config_core/field.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/async_methods.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/data_structures/heap.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/data_structures/tree.py
RENAMED
|
File without changes
|
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/dataclasses_methods.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/environ_parser.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/fsutil/dir_struct.py
RENAMED
|
File without changes
|
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/fsutil/hard_link.py
RENAMED
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/fsutil/soft_link.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/json/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/output_methods.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/socket_methods/addr.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hydrogenlib_next-7 → hydrogenlib_next-9}/modules/core/src/_hydrogenlib_core/std_extends/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|