Treasury Analytics Core
  • Home
  • API Reference
  • Examples
  • Credentials
  • Global Settings
  1. API Reference
  2. Scripts
  3. manage_settings
  • Overview
    • Treasury Analytics Core
  • Credential Management
    • Secure Credential Management
    • Global Settings
  • Examples
    • Example Projects
  • API Reference
    • Function reference
    • Core Components
      • FinanceDataEngine
      • engine_factory
      • engine
      • database
      • cache
      • processor
      • analyzer
    • Configuration
      • settings
      • settings_factory
      • global_settings_manager
    • Utilities
      • credentials
      • dataframe_utils
      • setup_logging
      • env_checker
      • query_timer
      • setup_helper
      • logging
      • constants
      • types
    • Scripts
      • configure_db
      • create_project
      • manage_settings

On this page

  • manage_settings
    • Classes
      • SettingsManager
    • Functions
      • main
      • parse_args

Other Formats

  • Github (GFM)
  1. API Reference
  2. Scripts
  3. manage_settings

manage_settings

scripts.manage_settings

Global Settings and Password Management Tool for nova_fde

This script manages global database connection settings and password expiration tracking.

Usage: python -m nova_fde.scripts.manage_settings [options]

Options: –create Create a new global settings file –db-host HOST Database host for template creation –db-port PORT Database port for template creation (default: 5432) –db-name NAME Database name for template creation –update-password Record a password update (resets expiration timer) –check Check password expiration status –create-reminder Create calendar reminder for password expiration –expiry DAYS Set password expiry days (e.g., –expiry=90) –reminder DAYS Set reminder days before expiry (e.g., –reminder=14) –settings-path PATH Path to global settings file –show Show the current global settings

Classes

Name Description
SettingsManager Manages global settings and password expiration.

SettingsManager

scripts.manage_settings.SettingsManager(self, settings_path=None)

Manages global settings and password expiration.

Methods

Name Description
check_expiration Check password expiration status.
create_calendar_reminder Create a calendar reminder file for password rotation.
create_settings Create a new global settings file.
get_settings Get global settings.
load_settings Load global settings from file.
update_expiry_settings Update password expiry settings.
update_password Record a password update.
check_expiration
scripts.manage_settings.SettingsManager.check_expiration()

Check password expiration status.

create_calendar_reminder
scripts.manage_settings.SettingsManager.create_calendar_reminder()

Create a calendar reminder file for password rotation.

create_settings
scripts.manage_settings.SettingsManager.create_settings(
    db_host,
    db_port,
    db_name,
    expiry_days=90,
    reminder_days=14,
)

Create a new global settings file.

get_settings
scripts.manage_settings.SettingsManager.get_settings()

Get global settings.

load_settings
scripts.manage_settings.SettingsManager.load_settings()

Load global settings from file.

update_expiry_settings
scripts.manage_settings.SettingsManager.update_expiry_settings(
    expiry_days=None,
    reminder_days=None,
)

Update password expiry settings.

update_password
scripts.manage_settings.SettingsManager.update_password(username=None)

Record a password update.

Functions

Name Description
main Main entry point.
parse_args Parse command-line arguments.

main

scripts.manage_settings.main()

Main entry point.

parse_args

scripts.manage_settings.parse_args()

Parse command-line arguments.

create_project
 
 
  • Built with [Quarto](https://quarto.org/) and [quartodoc](https://machow.github.io/quartodoc/)