Add dir with some small projects

This commit is contained in:
bt3gl 2022-03-23 18:41:46 +04:00
parent 0da3cbd74a
commit 0bdc950e7f
55 changed files with 12 additions and 1212 deletions

View file

@ -0,0 +1,28 @@
#!/usr/bin/env python
import logging as l
import src.Epen as Epen
import src.utils as utils
from src.settings import LOG_LEVEL, LOG_FORMAT, INPUT_STREAM_FILE
# Define log level: choose between DEBUG or INFO.
l.basicConfig(level=LOG_LEVEL, format=LOG_FORMAT)
def main():
p = Epen.EPen()
# Get input stream from file.
input_stream = utils.parse_input_stream(INPUT_STREAM_FILE)
# Extract and run list of commands from stream input.
if input_stream:
p.parse_stream(input_stream)
if __name__ == "__main__":
main()