Spaces:
Running
Running
Commit ·
89ac8da
1
Parent(s): 8af1beb
lets go
Browse files- app/core/banner.py +2 -0
- requirements.txt +3 -0
- start.sh +8 -0
app/core/banner.py
CHANGED
|
@@ -21,4 +21,6 @@ def get_banner() -> str:
|
|
| 21 |
lines.append(" Redis: connected")
|
| 22 |
else:
|
| 23 |
lines.append(" Redis: not configured (degraded mode)")
|
|
|
|
|
|
|
| 24 |
return "\n".join(lines)
|
|
|
|
| 21 |
lines.append(" Redis: connected")
|
| 22 |
else:
|
| 23 |
lines.append(" Redis: not configured (degraded mode)")
|
| 24 |
+
lines.append("")
|
| 25 |
+
lines.append("=" * 78)
|
| 26 |
return "\n".join(lines)
|
requirements.txt
CHANGED
|
@@ -40,6 +40,9 @@ aiomysql>=0.3.2
|
|
| 40 |
asyncpg>=0.31.0
|
| 41 |
motor>=3.7.1
|
| 42 |
|
|
|
|
|
|
|
|
|
|
| 43 |
# Web scraping
|
| 44 |
scrapling[all]>=0.4.0
|
| 45 |
|
|
|
|
| 40 |
asyncpg>=0.31.0
|
| 41 |
motor>=3.7.1
|
| 42 |
|
| 43 |
+
# ASCII banner for startup
|
| 44 |
+
pyfiglet>=1.0.2
|
| 45 |
+
|
| 46 |
# Web scraping
|
| 47 |
scrapling[all]>=0.4.0
|
| 48 |
|
start.sh
CHANGED
|
@@ -5,6 +5,14 @@ log() {
|
|
| 5 |
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $*"
|
| 6 |
}
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
log "=== Starting up ==="
|
| 9 |
log "Python: $(python --version 2>&1)"
|
| 10 |
log "Working dir: $(pwd)"
|
|
|
|
| 5 |
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $*"
|
| 6 |
}
|
| 7 |
|
| 8 |
+
# Display startup banner
|
| 9 |
+
python -c "
|
| 10 |
+
import pyfiglet
|
| 11 |
+
banner = pyfiglet.figlet_format('AgentDeck', font='slant')
|
| 12 |
+
print(banner)
|
| 13 |
+
" 2>/dev/null || true
|
| 14 |
+
echo "=============================================================================="
|
| 15 |
+
|
| 16 |
log "=== Starting up ==="
|
| 17 |
log "Python: $(python --version 2>&1)"
|
| 18 |
log "Working dir: $(pwd)"
|