aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/conventionalrp/__init__.py
blob: d5ff537bbb0899065c48d5ae0798685616d0940f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
"""
Conventional Role Play SDK (ConventionalRP)
"""

import sys
from importlib.metadata import version

from . import _core
from .core import Parser, Processor, Rule, RuleEngine, AutoParser
from .utils import (
    setup_logging,
    get_logger,
    ConventionalRPError,
    ParserError,
    RuleError,
    ProcessorError,
    ValidationError,
    ConfigurationError,
)

__all__ = [
    "Parser",
    "Processor",
    "Rule",
    "RuleEngine",
    "AutoParser",
    "setup_logging",
    "get_logger",
    "ConventionalRPError",
    "ParserError",
    "RuleError",
    "ProcessorError",
    "ValidationError",
    "ConfigurationError",
    "__version__",
]

if sys.version_info >= (3, 8):
    __version__ = version("conventionalrp")
elif sys.version_info < (3, 8):
    from pkg_resources import get_distribution

    __version__ = get_distribution("conventionalrp").version

_default_logger = setup_logging(level="INFO")