-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py
More file actions
25 lines (19 loc) · 975 Bytes
/
config.py
File metadata and controls
25 lines (19 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"""
config.py
Centralized configuration settings for the Cloud Data Retrieval & Visualization Framework.
All endpoint URLs, API keys, and runtime options can be controlled via this file or overridden by environment variables.
"""
import os
# Cloud Data Retrieval Settings
CLOUD_API_ENDPOINT = os.getenv("CLOUD_API_ENDPOINT", "https://api.example.com/data")
API_KEY = os.getenv("API_KEY", "your_api_key_here")
REQUEST_TIMEOUT = int(os.getenv("REQUEST_TIMEOUT", "10"))
MAX_RETRIES = int(os.getenv("MAX_RETRIES", "3"))
# Data Processing Settings
PROCESSING_BATCH_SIZE = int(os.getenv("PROCESSING_BATCH_SIZE", "100"))
DATA_FORMAT = os.getenv("DATA_FORMAT", "json") # Options: json, csv
# Visualization Settings
DEFAULT_VISUALIZATION_TYPE = os.getenv("DEFAULT_VISUALIZATION_TYPE", "plotly") # Options: matplotlib, plotly
# Logging Settings
DEBUG_MODE = os.getenv("DEBUG_MODE", "True").lower() in ("true", "1", "yes")
LOG_FILE = os.getenv("LOG_FILE", "cloud_framework.log")