maxpane 0.3.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- maxpane-0.3.3/.gitignore +36 -0
- maxpane-0.3.3/LICENSE +21 -0
- maxpane-0.3.3/PKG-INFO +81 -0
- maxpane-0.3.3/README.md +57 -0
- maxpane-0.3.3/maxpane_dashboard/__init__.py +3 -0
- maxpane-0.3.3/maxpane_dashboard/__main__.py +99 -0
- maxpane-0.3.3/maxpane_dashboard/abis/cattown/competition.json +1026 -0
- maxpane-0.3.3/maxpane_dashboard/abis/cattown/fishing_game.json +1382 -0
- maxpane-0.3.3/maxpane_dashboard/abis/cattown/kibble_oracle.json +42 -0
- maxpane-0.3.3/maxpane_dashboard/abis/cattown/kibble_token.json +224 -0
- maxpane-0.3.3/maxpane_dashboard/abis/cattown/revenue_share.json +724 -0
- maxpane-0.3.3/maxpane_dashboard/abis/cattown/sushi_v2_pair.json +166 -0
- maxpane-0.3.3/maxpane_dashboard/analytics/__init__.py +0 -0
- maxpane-0.3.3/maxpane_dashboard/analytics/base_overview_signals.py +146 -0
- maxpane-0.3.3/maxpane_dashboard/analytics/base_signals.py +98 -0
- maxpane-0.3.3/maxpane_dashboard/analytics/base_tokens.py +162 -0
- maxpane-0.3.3/maxpane_dashboard/analytics/cattown_conditions.py +237 -0
- maxpane-0.3.3/maxpane_dashboard/analytics/cattown_economy.py +95 -0
- maxpane-0.3.3/maxpane_dashboard/analytics/cattown_signals.py +181 -0
- maxpane-0.3.3/maxpane_dashboard/analytics/dota_signals.py +155 -0
- maxpane-0.3.3/maxpane_dashboard/analytics/ev.py +106 -0
- maxpane-0.3.3/maxpane_dashboard/analytics/frenpet_battle.py +142 -0
- maxpane-0.3.3/maxpane_dashboard/analytics/frenpet_population.py +209 -0
- maxpane-0.3.3/maxpane_dashboard/analytics/frenpet_signals.py +212 -0
- maxpane-0.3.3/maxpane_dashboard/analytics/leaderboard.py +67 -0
- maxpane-0.3.3/maxpane_dashboard/analytics/ocm_signals.py +121 -0
- maxpane-0.3.3/maxpane_dashboard/analytics/production.py +80 -0
- maxpane-0.3.3/maxpane_dashboard/analytics/signals.py +128 -0
- maxpane-0.3.3/maxpane_dashboard/app.py +239 -0
- maxpane-0.3.3/maxpane_dashboard/data/__init__.py +79 -0
- maxpane-0.3.3/maxpane_dashboard/data/base_cache.py +239 -0
- maxpane-0.3.3/maxpane_dashboard/data/base_client.py +945 -0
- maxpane-0.3.3/maxpane_dashboard/data/base_manager.py +406 -0
- maxpane-0.3.3/maxpane_dashboard/data/base_models.py +409 -0
- maxpane-0.3.3/maxpane_dashboard/data/cache.py +173 -0
- maxpane-0.3.3/maxpane_dashboard/data/cattown_cache.py +179 -0
- maxpane-0.3.3/maxpane_dashboard/data/cattown_client.py +847 -0
- maxpane-0.3.3/maxpane_dashboard/data/cattown_manager.py +317 -0
- maxpane-0.3.3/maxpane_dashboard/data/cattown_models.py +122 -0
- maxpane-0.3.3/maxpane_dashboard/data/client.py +356 -0
- maxpane-0.3.3/maxpane_dashboard/data/dota_cache.py +177 -0
- maxpane-0.3.3/maxpane_dashboard/data/dota_client.py +321 -0
- maxpane-0.3.3/maxpane_dashboard/data/dota_manager.py +338 -0
- maxpane-0.3.3/maxpane_dashboard/data/dota_models.py +106 -0
- maxpane-0.3.3/maxpane_dashboard/data/frenpet_cache.py +214 -0
- maxpane-0.3.3/maxpane_dashboard/data/frenpet_client.py +669 -0
- maxpane-0.3.3/maxpane_dashboard/data/frenpet_manager.py +452 -0
- maxpane-0.3.3/maxpane_dashboard/data/frenpet_models.py +189 -0
- maxpane-0.3.3/maxpane_dashboard/data/manager.py +219 -0
- maxpane-0.3.3/maxpane_dashboard/data/models.py +672 -0
- maxpane-0.3.3/maxpane_dashboard/data/ocm_cache.py +215 -0
- maxpane-0.3.3/maxpane_dashboard/data/ocm_client.py +538 -0
- maxpane-0.3.3/maxpane_dashboard/data/ocm_manager.py +248 -0
- maxpane-0.3.3/maxpane_dashboard/data/ocm_models.py +60 -0
- maxpane-0.3.3/maxpane_dashboard/data/price.py +77 -0
- maxpane-0.3.3/maxpane_dashboard/data/snapshot.py +30 -0
- maxpane-0.3.3/maxpane_dashboard/screens/__init__.py +1 -0
- maxpane-0.3.3/maxpane_dashboard/screens/bakery.py +195 -0
- maxpane-0.3.3/maxpane_dashboard/screens/base_terminal.py +179 -0
- maxpane-0.3.3/maxpane_dashboard/screens/cattown.py +178 -0
- maxpane-0.3.3/maxpane_dashboard/screens/dota.py +191 -0
- maxpane-0.3.3/maxpane_dashboard/screens/frenpet.py +192 -0
- maxpane-0.3.3/maxpane_dashboard/screens/game_select.py +80 -0
- maxpane-0.3.3/maxpane_dashboard/screens/ocm.py +182 -0
- maxpane-0.3.3/maxpane_dashboard/screens/splash.py +81 -0
- maxpane-0.3.3/maxpane_dashboard/templates/__init__.py +21 -0
- maxpane-0.3.3/maxpane_dashboard/templates/activity_feed_template.py +105 -0
- maxpane-0.3.3/maxpane_dashboard/templates/hero_metrics_template.py +101 -0
- maxpane-0.3.3/maxpane_dashboard/templates/leaderboard_template.py +95 -0
- maxpane-0.3.3/maxpane_dashboard/templates/screen_template.py +195 -0
- maxpane-0.3.3/maxpane_dashboard/templates/signals_template.py +122 -0
- maxpane-0.3.3/maxpane_dashboard/templates/sparkline_template.py +140 -0
- maxpane-0.3.3/maxpane_dashboard/templates/status_bar_template.py +101 -0
- maxpane-0.3.3/maxpane_dashboard/templates/two_column_table_template.py +101 -0
- maxpane-0.3.3/maxpane_dashboard/themes/__init__.py +131 -0
- maxpane-0.3.3/maxpane_dashboard/themes/minimal.tcss +1405 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/__init__.py +19 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/activity_feed.py +110 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/__init__.py +41 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/fee_claims.py +108 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/fee_leaderboard.py +73 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/fee_stats.py +64 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/gecko_pools.py +64 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/graduated.py +69 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/launch_feed.py +107 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/launch_stats.py +61 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/overview/__init__.py +23 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/overview/_legacy_overview.py +421 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/overview/bt_activity_feed.py +126 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/overview/bt_best_plays.py +111 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/overview/bt_hero_metrics.py +127 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/overview/bt_leaderboard.py +124 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/overview/bt_overview_leaderboard.py +127 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/overview/bt_signals.py +93 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/overview/bt_sparklines.py +118 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/overview.py +421 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/pool_info.py +63 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/price_sparklines.py +105 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/token_chart.py +99 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/token_price.py +82 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/token_signals.py +67 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/top_movers.py +82 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/trade_feed.py +113 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/trending_table.py +89 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/volume_bars.py +70 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/base/volume_sparklines.py +79 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/cattown/__init__.py +17 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/cattown/ct_activity_feed.py +122 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/cattown/ct_best_plays.py +115 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/cattown/ct_hero_metrics.py +159 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/cattown/ct_leaderboard.py +86 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/cattown/ct_signals.py +85 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/cattown/ct_sparklines.py +116 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/cookie_chart.py +113 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/dota/__init__.py +17 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/dota/dota_activity_feed.py +94 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/dota/dota_best_plays.py +97 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/dota/dota_hero_metrics.py +138 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/dota/dota_leaderboard.py +69 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/dota/dota_signals.py +85 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/dota/dota_sparklines.py +112 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/ev_table.py +95 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/__init__.py +47 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/action_queue.py +119 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/aggregate_stats.py +74 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/alerts.py +65 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/battle_feed.py +105 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/battle_log.py +164 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/game_stats.py +47 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/logo.py +21 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/market_conditions.py +91 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/next_actions.py +145 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/overview/__init__.py +18 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/overview/fp_battle_activity.py +121 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/overview/fp_best_plays.py +81 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/overview/fp_game_signals.py +97 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/overview/fp_hero_metrics.py +110 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/overview/fp_overview_leaderboard.py +96 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/overview/fp_score_trends.py +124 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/pet_card.py +124 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/pet_signals.py +150 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/pet_stats.py +104 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/pets_in_context.py +75 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/population.py +46 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/score_dist.py +62 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/score_trend.py +120 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/sniper_queue.py +169 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/target_landscape.py +69 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/top_leaderboard.py +83 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/training_status.py +63 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/frenpet/wallet_activity.py +94 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/hero_metrics.py +102 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/leaderboard.py +83 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/ocm/__init__.py +17 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/ocm/ocm_activity_feed.py +110 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/ocm/ocm_hero_metrics.py +94 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/ocm/ocm_signals.py +85 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/ocm/ocm_sparklines.py +116 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/ocm/ocm_staking_overview.py +92 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/ocm/ocm_supply_breakdown.py +96 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/signals_panel.py +118 -0
- maxpane-0.3.3/maxpane_dashboard/widgets/status_bar.py +101 -0
- maxpane-0.3.3/pyproject.toml +46 -0
maxpane-0.3.3/.gitignore
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
.venv/
|
|
3
|
+
__pycache__/
|
|
4
|
+
*.pyc
|
|
5
|
+
*.egg-info/
|
|
6
|
+
dist/
|
|
7
|
+
build/
|
|
8
|
+
|
|
9
|
+
# Rust
|
|
10
|
+
maxpane/target/
|
|
11
|
+
|
|
12
|
+
# Data & secrets
|
|
13
|
+
/data/
|
|
14
|
+
*.db
|
|
15
|
+
.env
|
|
16
|
+
*.keystore
|
|
17
|
+
|
|
18
|
+
# Internal planning & tooling
|
|
19
|
+
.planning/
|
|
20
|
+
.superpowers/
|
|
21
|
+
.claude/
|
|
22
|
+
.playwright-mcp/
|
|
23
|
+
|
|
24
|
+
# Media (screenshots, videos)
|
|
25
|
+
*.png
|
|
26
|
+
*.jpg
|
|
27
|
+
*.mov
|
|
28
|
+
*.mp4
|
|
29
|
+
|
|
30
|
+
# macOS
|
|
31
|
+
.DS_Store
|
|
32
|
+
|
|
33
|
+
# Docs (internal screenshots & planning - not for public)
|
|
34
|
+
docs/screenshots/
|
|
35
|
+
docs/mockups/
|
|
36
|
+
docs/superpowers/
|
maxpane-0.3.3/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 banse
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
maxpane-0.3.3/PKG-INFO
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: maxpane
|
|
3
|
+
Version: 0.3.3
|
|
4
|
+
Summary: Terminal dashboard for onchain games — RugPull Bakery, FrenPet, Cat Town, OCM, DOTA, and more
|
|
5
|
+
Project-URL: Homepage, https://github.com/banse/maxpane
|
|
6
|
+
Project-URL: Repository, https://github.com/banse/maxpane
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Keywords: blockchain,dashboard,gaming,onchain,terminal,tui
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Environment :: Console
|
|
12
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Topic :: Games/Entertainment
|
|
18
|
+
Requires-Python: >=3.11
|
|
19
|
+
Requires-Dist: httpx>=0.27
|
|
20
|
+
Requires-Dist: pydantic>=2.0
|
|
21
|
+
Requires-Dist: python-dotenv>=1.0
|
|
22
|
+
Requires-Dist: textual>=0.80
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
|
|
25
|
+
# MaxPane
|
|
26
|
+
|
|
27
|
+
Terminal dashboard for blockchain games on Base, Abstract, and Ethereum.
|
|
28
|
+
|
|
29
|
+
Track leaderboards, signals, and analytics for RugPull Bakery, FrenPet, Cat Town, OCM, DOTA, and Base token trading — all from your terminal.
|
|
30
|
+
|
|
31
|
+
## Install
|
|
32
|
+
|
|
33
|
+
### Quick install (dashboard only)
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pip install maxpane
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Requires Python 3.11+
|
|
40
|
+
|
|
41
|
+
### Full install (with Matrix intro sequence)
|
|
42
|
+
|
|
43
|
+
The full experience includes a Rust-powered Matrix-inspired intro animation. This requires [Rust](https://rustup.rs/) in addition to Python.
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
git clone https://github.com/banse/maxpane.git
|
|
47
|
+
cd maxpane
|
|
48
|
+
|
|
49
|
+
# Build the intro binary
|
|
50
|
+
cd maxpane && cargo build --release && cd ..
|
|
51
|
+
|
|
52
|
+
# Install the Python dashboard
|
|
53
|
+
pip install -e .
|
|
54
|
+
|
|
55
|
+
# Run with intro
|
|
56
|
+
./maxpane/target/release/maxpane && maxpane
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Or add an alias to your shell config (`~/.zshrc` or `~/.bashrc`):
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
alias maxpane='~/path/to/maxpane/maxpane/target/release/maxpane && command maxpane'
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Usage
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
maxpane # launch dashboard (default: bakery)
|
|
69
|
+
maxpane --game frenpet # start on FrenPet view
|
|
70
|
+
maxpane --game base # start on Base trading view
|
|
71
|
+
maxpane --theme minimal # use minimal theme
|
|
72
|
+
maxpane --poll-interval 60 # poll every 60s instead of 30s
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Available games
|
|
76
|
+
|
|
77
|
+
`bakery` `frenpet` `base` `cattown` `ocm` `dota`
|
|
78
|
+
|
|
79
|
+
### Available themes
|
|
80
|
+
|
|
81
|
+
`matrix` `minimal` `bloomberg` `htop` `retro` `bakery` `frenpet` `base`
|
maxpane-0.3.3/README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# MaxPane
|
|
2
|
+
|
|
3
|
+
Terminal dashboard for blockchain games on Base, Abstract, and Ethereum.
|
|
4
|
+
|
|
5
|
+
Track leaderboards, signals, and analytics for RugPull Bakery, FrenPet, Cat Town, OCM, DOTA, and Base token trading — all from your terminal.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
### Quick install (dashboard only)
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pip install maxpane
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Requires Python 3.11+
|
|
16
|
+
|
|
17
|
+
### Full install (with Matrix intro sequence)
|
|
18
|
+
|
|
19
|
+
The full experience includes a Rust-powered Matrix-inspired intro animation. This requires [Rust](https://rustup.rs/) in addition to Python.
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
git clone https://github.com/banse/maxpane.git
|
|
23
|
+
cd maxpane
|
|
24
|
+
|
|
25
|
+
# Build the intro binary
|
|
26
|
+
cd maxpane && cargo build --release && cd ..
|
|
27
|
+
|
|
28
|
+
# Install the Python dashboard
|
|
29
|
+
pip install -e .
|
|
30
|
+
|
|
31
|
+
# Run with intro
|
|
32
|
+
./maxpane/target/release/maxpane && maxpane
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Or add an alias to your shell config (`~/.zshrc` or `~/.bashrc`):
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
alias maxpane='~/path/to/maxpane/maxpane/target/release/maxpane && command maxpane'
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Usage
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
maxpane # launch dashboard (default: bakery)
|
|
45
|
+
maxpane --game frenpet # start on FrenPet view
|
|
46
|
+
maxpane --game base # start on Base trading view
|
|
47
|
+
maxpane --theme minimal # use minimal theme
|
|
48
|
+
maxpane --poll-interval 60 # poll every 60s instead of 30s
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Available games
|
|
52
|
+
|
|
53
|
+
`bakery` `frenpet` `base` `cattown` `ocm` `dota`
|
|
54
|
+
|
|
55
|
+
### Available themes
|
|
56
|
+
|
|
57
|
+
`matrix` `minimal` `bloomberg` `htop` `retro` `bakery` `frenpet` `base`
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"""Launch the MaxPane dashboard: python -m maxpane_dashboard"""
|
|
2
|
+
import argparse
|
|
3
|
+
import logging
|
|
4
|
+
import os
|
|
5
|
+
import sys
|
|
6
|
+
import warnings
|
|
7
|
+
|
|
8
|
+
warnings.filterwarnings("ignore")
|
|
9
|
+
|
|
10
|
+
from maxpane_dashboard.app import MaxPaneApp
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
_DEFAULT_FONT_SIZE = 17
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def _maximize_terminal() -> None:
|
|
17
|
+
"""Maximize the terminal window and set font size before launching the TUI."""
|
|
18
|
+
term = os.environ.get("TERM_PROGRAM", "")
|
|
19
|
+
if term == "iTerm.app":
|
|
20
|
+
# Set font size via iTerm2 proprietary escape sequence
|
|
21
|
+
sys.stdout.write(f"\033]1337;SetFontSize={_DEFAULT_FONT_SIZE}\a")
|
|
22
|
+
sys.stdout.write("\033]1337;SetFullscreen=true\a")
|
|
23
|
+
sys.stdout.flush()
|
|
24
|
+
elif term == "Apple_Terminal":
|
|
25
|
+
# Terminal.app: use AppleScript to set font size and maximize
|
|
26
|
+
import subprocess
|
|
27
|
+
subprocess.run(
|
|
28
|
+
["osascript", "-e",
|
|
29
|
+
f'tell application "Terminal" to set font size of front window to {_DEFAULT_FONT_SIZE}'],
|
|
30
|
+
capture_output=True,
|
|
31
|
+
)
|
|
32
|
+
sys.stdout.write("\033[9;1t")
|
|
33
|
+
sys.stdout.flush()
|
|
34
|
+
else:
|
|
35
|
+
# Generic: just maximize
|
|
36
|
+
sys.stdout.write("\033[9;1t")
|
|
37
|
+
sys.stdout.flush()
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def main():
|
|
41
|
+
parser = argparse.ArgumentParser(description="MaxPane Dashboard")
|
|
42
|
+
parser.add_argument(
|
|
43
|
+
"--poll-interval",
|
|
44
|
+
type=int,
|
|
45
|
+
default=30,
|
|
46
|
+
help="Poll interval in seconds (default: 30)",
|
|
47
|
+
)
|
|
48
|
+
parser.add_argument(
|
|
49
|
+
"--theme",
|
|
50
|
+
default="matrix",
|
|
51
|
+
choices=["matrix", "minimal", "bloomberg", "htop", "retro", "bakery", "frenpet", "base"],
|
|
52
|
+
)
|
|
53
|
+
parser.add_argument(
|
|
54
|
+
"--game",
|
|
55
|
+
default="bakery",
|
|
56
|
+
choices=["bakery", "frenpet", "base", "cattown", "ocm", "dota"],
|
|
57
|
+
help="Which game dashboard to show first (default: bakery)",
|
|
58
|
+
)
|
|
59
|
+
parser.add_argument(
|
|
60
|
+
"--wallet",
|
|
61
|
+
default=os.environ.get("MAXPANE_WALLET", ""),
|
|
62
|
+
help="Wallet address for FrenPet pet view",
|
|
63
|
+
# TODO: make configurable via settings screen or config file
|
|
64
|
+
)
|
|
65
|
+
parser.add_argument(
|
|
66
|
+
"--log-level",
|
|
67
|
+
default="WARNING",
|
|
68
|
+
choices=["DEBUG", "INFO", "WARNING", "ERROR"],
|
|
69
|
+
help="Logging verbosity (default: WARNING)",
|
|
70
|
+
)
|
|
71
|
+
args = parser.parse_args()
|
|
72
|
+
|
|
73
|
+
# Log to file to prevent warnings from bleeding into the TUI
|
|
74
|
+
log_file = os.path.join(os.path.expanduser("~"), ".maxpane", "maxpane.log")
|
|
75
|
+
os.makedirs(os.path.dirname(log_file), exist_ok=True)
|
|
76
|
+
logging.basicConfig(
|
|
77
|
+
level=getattr(logging, args.log_level),
|
|
78
|
+
format="%(asctime)s %(name)s %(levelname)s %(message)s",
|
|
79
|
+
filename=log_file,
|
|
80
|
+
filemode="w",
|
|
81
|
+
)
|
|
82
|
+
# Suppress noisy third-party loggers
|
|
83
|
+
logging.getLogger("httpx").setLevel(logging.ERROR)
|
|
84
|
+
logging.getLogger("httpcore").setLevel(logging.ERROR)
|
|
85
|
+
logging.getLogger("pydantic").setLevel(logging.ERROR)
|
|
86
|
+
|
|
87
|
+
_maximize_terminal()
|
|
88
|
+
|
|
89
|
+
app = MaxPaneApp(
|
|
90
|
+
poll_interval=args.poll_interval,
|
|
91
|
+
theme=args.theme,
|
|
92
|
+
initial_game=args.game,
|
|
93
|
+
wallet_address=args.wallet,
|
|
94
|
+
)
|
|
95
|
+
app.run()
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
if __name__ == "__main__":
|
|
99
|
+
main()
|