36 lines
889 B
Python
36 lines
889 B
Python
# package/__init__.py
|
|
import os
|
|
|
|
# 1. Package Metadata
|
|
__version__ = "1.0.0"
|
|
__author__ = "Richard Allen"
|
|
|
|
# 2. Initialization Logic
|
|
print("Initializing package...")
|
|
|
|
# Ensure a required directory exists when the package loads
|
|
CACHE_DIR = os.path.join(os.path.expanduser("~"), ".package_cache")
|
|
os.makedirs(CACHE_DIR, exist_ok=True)
|
|
|
|
# 3. Expose Database Tools (Added)
|
|
# Replace 'DatabaseClient' and 'connect_to_db' with your actual class/function names
|
|
from .build_videos import build_videos
|
|
from .config import CHANNEL_NAME, DB
|
|
from .database import Database
|
|
from .transcribe_video import transcribe_to_srt
|
|
from .utils import run_command
|
|
|
|
# 4. Expose Subpackages
|
|
from . import twitch
|
|
|
|
# (Optional) Defines what is exposed during 'from package import *'
|
|
__all__ = [
|
|
"build_videos",
|
|
"CHANNEL_NAME",
|
|
"DB",
|
|
"Database",
|
|
"transcribe_to_srt",
|
|
"utils",
|
|
"twitch",
|
|
]
|