Files
Bacruru Sakaguchi 1ddfe375e5 feat(core): add recursive loading and analyzer tools
Add recursive thread loading method to load threads with all messages and images from the database.

Add support for image captions in the database schema and Image model.

Introduce new analyzer tools for thread management:
- Load thread names from database
- Group threads by similarity
- Merge thread groups

Update main menu to include new Analyzer submenu and options to process threads without downloading images.
2026-02-18 18:19:33 +00:00

44 lines
1.1 KiB
Python
Executable File

"""
Database module for storing forum data.
This module provides database functionality for storing parsed forum data
from 2ch.life (Dvach) and other forum sources.
The module consists of:
- Database: Main database manager with context manager support
- Table: Base class for table operations
- ThreadTable: Thread-specific database operations
- MessageTable: Message-specific database operations
- ImageTable: Image-specific database operations
Example usage:
from Programm.Database import Database
# Using context manager
with Database('threads.db') as db:
db.save_thread_recursive(thread)
# Or with explicit path
db = Database('threads.db')
try:
db.save_thread_recursive(thread)
finally:
db.close()
"""
from .Database import Database
from .table import Table
from .thread_table import ThreadTable
from .message_table import MessageTable
from .image_table import ImageTable
__all__ = [
'Database',
'Table',
'ThreadTable',
'MessageTable',
'ImageTable',
]
__version__ = '1.0.0'
__author__ = 'Forum Scrapper Team'