ledgerai/toldg.py

27 lines
535 B
Python

import logging
import src.utils
import src.process
from rich.logging import RichHandler
def init_logging():
logging.basicConfig(
level=logging.INFO,
format="%(message)s",
datefmt="[%X]",
handlers=[RichHandler()],
)
def main():
init_logging()
config = src.utils.load_config()
src.utils.remove_if_exists(config.output_file)
src.utils.write_meta(config)
src.process.process_ldg_files(config)
src.process.process_csv_files(config)
if __name__ == "__main__":
main()