An AI-powered tool for analyzing SEC 10-K filings, providing financial metrics and insights for S&P 500 companies.
- Download and analyze 10-K filings from SEC EDGAR
- Extract key financial metrics
- Generate AI-powered summaries using GPT-4
- Compare multiple years of data
- Modern web interface with responsive design
- Python 3.8 or higher
- Redis server (optional, for caching)
- SEC EDGAR access credentials
- OpenAI API key
- Clone the repository:
git clone https://github.com/yourusername/10K_AI_Reader.git
cd 10K_AI_Reader- Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Set up environment variables:
Create a
.envfile in the project root with:
SEC_EMAIL=your.email@example.com
OPENAI_API_KEY=your_openai_api_key
- Start the Flask application:
python app.py-
Open your browser and navigate to
http://localhost:8080 -
Enter a stock ticker (e.g., AAPL) and click "Analyze"
app.py- Main Flask applicationanalyze_10k.py- 10-K analysis enginedownload_10k.py- SEC EDGAR filing downloadertemplates/- Frontend templatesstatic/- Static assetsconfig.py- Configuration settings
- Flask - Web framework
- OpenAI - AI analysis
- BeautifulSoup4 - HTML parsing
- Redis - Caching (optional)
- Bootstrap - Frontend styling
- Marked.js - Markdown rendering
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- SEC EDGAR for providing filing data
- OpenAI for GPT-4 API
- S&P 500 companies data