This is a production-ready, clean-architecture Python FastAPI backend for the Autonomous Market Intelligence Platform.
- Python 3.11
- FastAPI
- Pydantic v2
- Uvicorn (Dev server)
- Pytest & HTTPX (Testing)
backend/
├── app/
│ ├── __init__.py
│ ├── main.py
│ ├── routes/
│ │ ├── __init__.py
│ │ ├── analyze.py
│ │ └── collect.py
│ ├── collectors/
│ │ ├── __init__.py
│ │ ├── ddgs_collector.py
│ │ ├── news_collector.py
│ │ └── competitor_collector.py
│ ├── intelligence/
│ │ ├── __init__.py
│ │ ├── signals.py
│ │ └── opportunities.py
│ ├── models/
│ │ ├── __init__.py
│ │ ├── evidence.py
│ │ ├── signal.py
│ │ ├── opportunity.py
│ │ ├── threat.py
│ │ ├── market_pulse.py
│ │ └── analysis.py
│ └── services/
│ ├── __init__.py
│ └── analysis_service.py
├── requirements.txt
└── README.md
-
Install dependencies:
pip install -r requirements.txt
-
Start the FastAPI server:
python -m uvicorn app.main:app --reload
-
Access OpenAPI documentation: Open http://localhost:8000/docs in your browser.
Execute tests from the backend/ directory:
python -m pytest