mirror of
https://github.com/autistic-symposium/web3-starter-py.git
synced 2025-07-30 18:18:33 -04:00
Add dir with some small projects
This commit is contained in:
parent
0da3cbd74a
commit
0bdc950e7f
55 changed files with 12 additions and 1212 deletions
28
small-projects/magic-pen/src/main.py
Normal file
28
small-projects/magic-pen/src/main.py
Normal 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()
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue