diff options
Diffstat (limited to 'hrc')
| -rw-r--r-- | hrc/LibCore.py | bin | 0 -> 437248 bytes | |||
| -rw-r--r-- | hrc/LibCore.pyi | 5 | ||||
| -rw-r--r-- | hrc/__init__.py | 2 | ||||
| -rw-r--r-- | hrc/cli.py | 46 | ||||
| -rw-r--r-- | hrc/config.py | 0 | ||||
| -rw-r--r-- | hrc/const.py | 0 | ||||
| -rw-r--r-- | hrc/core.py | 1 | ||||
| -rw-r--r-- | hrc/dependencies.py | 0 | ||||
| -rw-r--r-- | hrc/development/__init__.py | 3 | ||||
| -rw-r--r-- | hrc/development/character.py | 2 | ||||
| -rw-r--r-- | hrc/document/__init__.py | 0 | ||||
| -rw-r--r-- | hrc/exceptions.py | 0 | ||||
| -rw-r--r-- | hrc/feature/__init__.py | 0 | ||||
| -rw-r--r-- | hrc/log.py | 0 | ||||
| -rw-r--r-- | hrc/performance/__init__.py | 0 | ||||
| -rw-r--r-- | hrc/py.typed | 0 | ||||
| -rw-r--r-- | hrc/rule_package.py | 0 | ||||
| -rw-r--r-- | hrc/rules/BaseRule/JudgeRule.py | 13 | ||||
| -rw-r--r-- | hrc/rules/BaseRule/__init__.py | 46 | ||||
| -rw-r--r-- | hrc/rules/__init__.py | 1 | ||||
| -rw-r--r-- | hrc/typing.py | 0 | ||||
| -rw-r--r-- | hrc/utils.py | 0 |
22 files changed, 119 insertions, 0 deletions
diff --git a/hrc/LibCore.py b/hrc/LibCore.py Binary files differnew file mode 100644 index 0000000..d85d03a --- /dev/null +++ b/hrc/LibCore.py diff --git a/hrc/LibCore.pyi b/hrc/LibCore.pyi new file mode 100644 index 0000000..aa88747 --- /dev/null +++ b/hrc/LibCore.pyi @@ -0,0 +1,5 @@ +class LibCore(object): + """Core library for hydro roll""" + + def __init__(self, name: str = ""): ... + def process_rule_pack(self, rule_pack: str) -> str: ... diff --git a/hrc/__init__.py b/hrc/__init__.py new file mode 100644 index 0000000..6c6b22c --- /dev/null +++ b/hrc/__init__.py @@ -0,0 +1,2 @@ +from .LibCore import * +from . import rules diff --git a/hrc/cli.py b/hrc/cli.py new file mode 100644 index 0000000..55758bc --- /dev/null +++ b/hrc/cli.py @@ -0,0 +1,46 @@ +import argparse + + +class Cli(object): + parser = argparse.ArgumentParser(description="水系核心终端") + + def __init__(self): + self.parser.add_argument( + "-i", + "--install", + dest="command", + help="安装规则包", + action="store_const", + const="install_package", + ) + self.parser.add_argument( + "-T", + "--template", + dest="command", + help="选择模板快速创建规则包实例", + action="store_const", + const="build_template", + ) + self.parser.add_argument( + "-S", + "--search", + dest="command", + help="在指定镜像源查找规则包", + action="store_const", + const="search_package", + ) + self.parser.add_argument( + "-c", + "--config", + dest="command", + help="配置管理", + action="store_const", + const="config", + ) + self.args = self.parser.parse_args() + + def get_args(self): + return self.args + + def get_help(self): + return self.parser.format_help() diff --git a/hrc/config.py b/hrc/config.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/hrc/config.py diff --git a/hrc/const.py b/hrc/const.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/hrc/const.py diff --git a/hrc/core.py b/hrc/core.py new file mode 100644 index 0000000..020ccb9 --- /dev/null +++ b/hrc/core.py @@ -0,0 +1 @@ +class Core: ... diff --git a/hrc/dependencies.py b/hrc/dependencies.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/hrc/dependencies.py diff --git a/hrc/development/__init__.py b/hrc/development/__init__.py new file mode 100644 index 0000000..b3e76b3 --- /dev/null +++ b/hrc/development/__init__.py @@ -0,0 +1,3 @@ +from .character import Character + +__all__ = ["Character"] diff --git a/hrc/development/character.py b/hrc/development/character.py new file mode 100644 index 0000000..c883e45 --- /dev/null +++ b/hrc/development/character.py @@ -0,0 +1,2 @@ +class Character: + class Attribute: ... diff --git a/hrc/document/__init__.py b/hrc/document/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/hrc/document/__init__.py diff --git a/hrc/exceptions.py b/hrc/exceptions.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/hrc/exceptions.py diff --git a/hrc/feature/__init__.py b/hrc/feature/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/hrc/feature/__init__.py diff --git a/hrc/log.py b/hrc/log.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/hrc/log.py diff --git a/hrc/performance/__init__.py b/hrc/performance/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/hrc/performance/__init__.py diff --git a/hrc/py.typed b/hrc/py.typed new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/hrc/py.typed diff --git a/hrc/rule_package.py b/hrc/rule_package.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/hrc/rule_package.py diff --git a/hrc/rules/BaseRule/JudgeRule.py b/hrc/rules/BaseRule/JudgeRule.py new file mode 100644 index 0000000..20d28a2 --- /dev/null +++ b/hrc/rules/BaseRule/JudgeRule.py @@ -0,0 +1,13 @@ +import dataclasses +from dataclasses import dataclass +from typing import Literal, Optional, Union + +@dataclass +class Custom(object): + ... + +class Attribute(Custom): + ... + +class Skill(Custom): + ... diff --git a/hrc/rules/BaseRule/__init__.py b/hrc/rules/BaseRule/__init__.py new file mode 100644 index 0000000..4d3bc9d --- /dev/null +++ b/hrc/rules/BaseRule/__init__.py @@ -0,0 +1,46 @@ +import dataclasses +from dataclasses import dataclass +from typing import Literal, Optional, Union + +from . import JudgeRule + +@dataclass +class CharacterCard(object): + """Docstring for CharacterCard.""" + property: type + + class Information(object): + age: Optional[Union[int, str]] + race: Optional[str] + gender: Optional[str] + group: Optional[str] + + +@dataclass +class CustomRule(object): + """Docstring for CustomRule.""" + property: type + + +@dataclass +class ExpansionRule(object): + """Docstring for ExpansionRule.""" + property: type + + +@dataclass +class Wiki(object): + """Docstring for Wiki.""" + property: type + + +@dataclass +class Query(object): + """Docstring for Query.""" + property: type + + +@dataclass +class Duration(object): + """Docstring for Duration.""" + property: type diff --git a/hrc/rules/__init__.py b/hrc/rules/__init__.py new file mode 100644 index 0000000..be96d47 --- /dev/null +++ b/hrc/rules/__init__.py @@ -0,0 +1 @@ +from . import BaseRule
\ No newline at end of file diff --git a/hrc/typing.py b/hrc/typing.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/hrc/typing.py diff --git a/hrc/utils.py b/hrc/utils.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/hrc/utils.py |
