PythonGPTStock is an Azure Functions-based application that generates investment recommendations and portfolio analysis using AI models.
- Loads investment portfolio from a local file or Azure Blob Storage.
- Generates recommendations (buy, sell, hold) and company analysis in JSON format.
- Sends email reports.
- Integrates with Application Insights for monitoring and logging.
- Supports both development and production environments.
- Python 3.10+
- Azure Functions Core Tools (for local development)
- Azure account with configured resources: Blob Storage, Application Insights, Azure Communication Services (Email)
- Required environment variables for credentials and configuration
-
Clone the repository:
git clone https://github.com/ChrisPolewiak/PythonGPTStock.git cd PythonGPTStock -
Install dependencies:
pip install -r requirements.txt -
Set environment variables (e.g., in a
.envfile):AZURE_FUNCTIONS_ENVIRONMENTAZURE_STORAGE_ACCOUNT_NAMEAPPLICATIONINSIGHTS_CONNECTION_STRINGorAPPINSIGHTS_INSTRUMENTATIONKEY- Other variables as required by the app
-
Run locally:
func start
function_app.py– main Azure Function logicportfolio.tsv– sample investment portfolio (TSV)requirements.txt– Python dependenciesREADME.MD– project documentationSECURITY.md– security policyLICENSE– MIT license
The app automatically loads the portfolio, generates recommendations and analysis, and can send a report via email. Configuration details are managed via environment variables.
This project is licensed under the MIT License. See LICENSE for details.