|
|
|
|
|
""" |
|
|
Configuration file for SFTP settings |
|
|
""" |
|
|
|
|
|
import os |
|
|
from dotenv import load_dotenv |
|
|
|
|
|
|
|
|
load_dotenv() |
|
|
|
|
|
|
|
|
SFTP_CONFIG = { |
|
|
'host': os.getenv('SFTP_HOST', '163.172.133.70'), |
|
|
'port': int(os.getenv('SFTP_PORT', '2224')), |
|
|
'username': os.getenv('SFTP_USERNAME', 'simplify'), |
|
|
'password': os.getenv('SFTP_PASSWORD', 'V%40xi%24tD%40c2023'), |
|
|
'remote_path': os.getenv('SFTP_REMOTE_PATH', '/simplify/model'), |
|
|
'local_download_dir': os.getenv('LOCAL_MODELS_DIR', 'models') |
|
|
} |
|
|
|
|
|
|
|
|
TRANSCRIPTIONS_DIR = os.getenv('TRANSCRIPTIONS_DIR', 'transcriptions') |
|
|
|
|
|
|
|
|
def get_sftp_config(): |
|
|
"""Return SFTP configuration dictionary.""" |
|
|
return SFTP_CONFIG.copy() |
|
|
|
|
|
|
|
|
def print_sftp_config(): |
|
|
"""Print current SFTP configuration (without password).""" |
|
|
config = get_sftp_config() |
|
|
safe_config = config.copy() |
|
|
safe_config['password'] = '***' if config['password'] else 'Not set' |
|
|
|
|
|
print("🔧 SFTP Configuration:") |
|
|
print("=" * 40) |
|
|
for key, value in safe_config.items(): |
|
|
print(f" {key}: {value}") |
|
|
print("=" * 40) |
|
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
print_sftp_config() |
|
|
|