# PyShelf's Program Flow Chart

## Entry Point

      > ./pyShelf.py

### pyShelf.py

- from src.backend.pyShelf_ScanLibrary import execute_scan
- from src.backend.pyShelf_MakeCollections import MakeCollections
- config = Config()
- PRG_PATH
- Storage(config).create_tables()
- Thread(run_import)
- FastAPIServer(config)

#### run_import()

bookimport

- execute_scan(PRG_PATH, config) Book DB Insertion Point
- MakeCollections(PRG_PATH, config) Collection DB Insertion Point
- TODO Move collections insertion to run in tandem with book insertion as this is the last time we have all of the information in one place. #a34ad104