* fix dependencies uv.lock * refactor test markers for clarity * refactor: clean up imports and remove unused files * refactor: remove unused agent files and clean up market API instructions * refactor: enhance wrapper initialization with keyword arguments and clean up tests * refactor: remove PublicBinanceAgent * refactor: aggregator - simplified MarketDataAggregator and related models to functions * refactor: update README and .env.example to reflect the latest changes to the project * refactor: simplify product info and price creation in YFinanceWrapper * refactor: remove get_all_products method from market API wrappers and update documentation * fix: environment variable assertions * refactor: remove status attribute from ProductInfo and update related methods to use timestamp_ms * feat: implement aggregate_history_prices function to calculate hourly price averages * refactor: update docker-compose and app.py for improved environment variable handling and compatibility * feat: add detailed market instructions and improve error handling in price aggregation methods * feat: add aggregated news retrieval methods for top headlines and latest news * refactor: improve error messages in WrapperHandler for better clarity * fix: correct quote currency extraction in create_product_info and remove debug prints from tests
43 lines
1.4 KiB
TOML
43 lines
1.4 KiB
TOML
[project]
|
|
name = "upo-app-ai"
|
|
version = "0.1.0"
|
|
description = "Agente di analisi e consulenza crypto"
|
|
requires-python = "==3.12.*"
|
|
|
|
# Qui ho messo alcune librerie utili utilizzate durante il corso.
|
|
# Se si nota che alcune non sono necessarie, si potrebbero rimuovere
|
|
# in modo da evitare conflitti o problemi futuri.
|
|
# Per ogni roba ho fatto un commento per evitare di dimenticarmi cosa fa chi.
|
|
# Inoltre ho messo una emoji per indicare se è raccomandato o meno.
|
|
dependencies = [
|
|
"pytest", # Test
|
|
"dotenv", # Gestire variabili d'ambiente (generalmente API keys od opzioni)
|
|
"gradio", # UI web semplice con user_input e output
|
|
|
|
# Per costruire agenti (ovvero modelli che possono fare più cose tramite tool) https://github.com/agno-agi/agno
|
|
# altamente consigliata dato che ha anche tools integrati per fare scraping, calcoli e molto altro
|
|
# oltre a questa è necessario installare anche le librerie specifiche per i modelli che si vogliono usare
|
|
"agno",
|
|
|
|
# Modelli supportati e installati (aggiungere qui sotto quelli che si vogliono usare)
|
|
"google-genai",
|
|
"ollama",
|
|
|
|
# API di exchange di criptovalute
|
|
"coinbase-advanced-py",
|
|
"python-binance",
|
|
"yfinance",
|
|
|
|
# API di notizie
|
|
"newsapi-python",
|
|
"gnews",
|
|
"ddgs",
|
|
|
|
# API di social media
|
|
"praw", # Reddit
|
|
]
|
|
|
|
[tool.pytest.ini_options]
|
|
pythonpath = ["src"]
|
|
testpaths = ["tests"]
|