- Introduce `app.py` as the main application file to handle shitpost scanning. - Create `config.py` for configuration settings including scan paths and file types. - Implement database models in `Models.py` for shitposts, songs, speech outputs, and tags. - Add database creation logic in `db.py`. - Develop various scanners (`OcrScanner.py`, `SongScanner.py`, `SpeechScanner.py`, `TagScanner.py`) for extracting information from shitposts. - Implement utility functions in `dateExtractor.py` and `shitpostFactory.py` for handling file metadata and creating shitpost objects. - Include a `pyproject.toml` for project dependencies and configuration.
8 lines
182 B
Python
8 lines
182 B
Python
from sqlalchemy import create_engine
|
|
from db.Models import *
|
|
|
|
|
|
def create_db():
|
|
engine = create_engine("sqlite:///Shitpost.db", future=True)
|
|
Base.metadata.create_all(engine)
|