BeginnerUtilities & ToolsPython
System Utilities¶
This folder contains utilities for system-level operations, file management, and configuration in financial applications.
Available Utilities¶
File I/O (file_io_utils.py)¶
- JSON and CSV file operations
- Directory management
- File backup functionality
- File size formatting
Configuration (config_utils.py)¶
- JSON configuration management
- Dot notation access to nested config values
- Configuration merging
- Environment variable integration
Usage¶
# File operations
from file_io_utils import read_json_file, write_json_file, backup_file
from config_utils import load_config, get_config_value, set_config_value
# Work with files
config = read_json_file("app_config.json")
backup_file("important_data.json")
# Configuration management
config = load_config("config.json")
api_key = get_config_value(config, "api.key")
set_config_value(config, "debug.mode", True)
Installation¶
No additional dependencies required. Uses only Python standard library.
Testing¶
Run each utility directly to see demonstrations:
Common Use Cases¶
- Configuration Management: Handle application settings and preferences
- Data Persistence: Save and load trading data and portfolios
- File Management: Organize data files and backups
- System Integration: Work with external data sources
- Application Setup: Initialize and configure trading applications
Continue in Utilities & Tools¶
-
This folder contains core mathematical and date/time utilities that form the foundation for quantitative finance calculations.
-
This utility does NOT use any external APIs. All exchange rates are entered manually for learning and experimentation.
-
This folder contains utilities for data processing, validation, and manipulation in financial applications.
-
This utility does NOT use any external APIs. All data is managed locally for learning and experimentation.
-
A Node.js script that fetches historical bars (OHLCV data) for stocks or crypto from the Alpaca Market Data API. It prompts interactively for the symbol type, symbol, timeframe, and date range, then prints the results as JSON.
-
A pair of minimal, dependency-light logging utilities implemented in both Python and JavaScript. Each supports adding, reading, editing, and deleting log entries through an interactive command-line menu. All entries are persisted to a plain-text
log.txtfile in the working directory.