1
0
Fork 0

fix __init__.py for package

This commit is contained in:
Kevin Matz 2022-05-12 19:16:44 -04:00
parent 19de92834d
commit 784f7df603
6 changed files with 50 additions and 2 deletions

19
__init__.py Normal file
View File

@ -0,0 +1,19 @@
"""Init for the baconscript package."""
from .bacon import (
HogNet,
beautify_lisp_string,
OscCommentMacroListener,
SyntaxErrorListener,
load_config,
comment,
)
__all__ = [
"HogNet",
"beautify_lisp_string",
"OscCommentMacroListener",
"SyntaxErrorListener",
"load_config",
"comment",
]

View File

@ -6,6 +6,10 @@ from time import sleep
from .commentmacro.CommentMacroParser import CommentMacroParser
from .commentmacro.CommentMacroListener import CommentMacroListener
__all__ = [
"beautify_lisp_string",
"OscCommentMacroListener",
]
# https://raw.githubusercontent.com/jszheng/py3antlr4book/master/bin/pygrun
# this is a python version of TestRig

View File

@ -1,2 +1,20 @@
"""Main BaconScript module init."""
__all__ = ["script", "hog4", "OscListener"]
from .hog4 import HogNet
from .OscListener import beautify_lisp_string, OscCommentMacroListener
from .script import SyntaxErrorListener, load_config, comment
__all__ = [
"HogNet",
]
__all__ += [
"beautify_lisp_string",
"OscCommentMacroListener",
]
__all__ = [
"SyntaxErrorListener",
"load_config",
"comment",
]

View File

@ -1,2 +1 @@
"""Init for comment macro antlr4."""
__all__ = ["CommentMacroLexer", "CommentMacroListener", "CommentMacroParser"]

View File

@ -6,6 +6,9 @@ from typing import Any, Dict, Union
from pythonosc import udp_client, osc_message_builder, osc_bundle, osc_message
from antlr4 import ParserRuleContext
__all__ = [
"HogNet",
]
class HogNet:
"""Class definition of a hognet participant."""

View File

@ -12,6 +12,11 @@ from .commentmacro.CommentMacroLexer import CommentMacroLexer
from .commentmacro.CommentMacroParser import CommentMacroParser
from .OscListener import OscCommentMacroListener
__all__ = [
"SyntaxErrorListener",
"load_config",
"comment",
]
class SyntaxErrorListener(ErrorListener):
"""An error listener that raises SyntaxError exceptions."""