Skip to main content

Analyze your StarCraft II replays with filtering, stats, and beautiful terminal output

Project description

SC2 Replay Analyzer

Analyze your StarCraft II replays with filtering, stats, and beautiful terminal output.

Features

  • Auto-detect SC2 replay folders on Mac, Windows, and Linux
  • Parse replays and extract worker counts, army value, APM, MMR, and more
  • Interactive filtering - dynamically filter by matchup, result, length, workers
  • Win/loss statistics with averages and matchup breakdowns
  • SQLite caching - parse each replay only once

Installation

pip install sc2-replay-analyzer

Quick Start

# First run - auto-detects your replay folder and player name
sc2

# Scan for new replays
sc2 scan

# Interactive filtering mode
sc2 live

# Show statistics
sc2 stats

Commands

Command Description
sc2 First run: setup wizard. After: auto-scan + interactive mode
sc2 scan Scan replay folder for new games
sc2 live Interactive filtering mode
sc2 stats Show aggregate statistics
sc2 config Re-run setup / change player name
sc2 show Show games with filters
sc2 export Export to CSV
sc2 latest Show detailed stats for most recent game

Interactive Mode

The sc2 live command opens an interactive filtering mode:

SC2 Replay Analyzer - Interactive Mode
Type commands to filter. 'help' for options, 'q' to quit.

> -m TvZ          # Filter by matchup
> -r W            # Show only wins
> -l >10:00       # Games longer than 10 minutes
> -w <40          # Games with <40 workers at 8min
> clear           # Reset all filters
> q               # Quit

Filter Commands

Command Description Example
-n <num> Limit to N games -n 50
-m <matchup> Filter by matchup -m TvZ
-r <result> Filter by result -r W, -r L
-l <op><time> Filter by length -l >=8:00, -l <5:00
-w <op><num> Filter by workers @8m -w <=40, -w >50
--map <name> Filter by map name --map Pylon
-d <days> Games from last N days -d 7
clear Reset all filters
help Show help
q Quit

Configuration

Config is stored in ~/.sc2analyzer/config.toml:

player_name = "YourName"
replay_folder = "~/Library/Application Support/Blizzard/StarCraft II/Accounts/.../Replays/Multiplayer"

[benchmarks]
workers_6m = 40
workers_8m = 55

[display]
columns = ["date", "map", "matchup", "result", "mmr", "apm", "workers_8m", "army", "length"]

Available Columns

date, map, matchup, result, mmr, opponent_mmr, apm, opponent_apm, workers_6m, workers_8m, workers_10m, army, length, bases_6m, bases_8m, worker_kills, worker_losses

Requirements

  • Python 3.8+
  • StarCraft II replays (.SC2Replay files)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sc2_replay_analyzer-0.4.0.tar.gz (31.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sc2_replay_analyzer-0.4.0-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file sc2_replay_analyzer-0.4.0.tar.gz.

File metadata

  • Download URL: sc2_replay_analyzer-0.4.0.tar.gz
  • Upload date:
  • Size: 31.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.14

File hashes

Hashes for sc2_replay_analyzer-0.4.0.tar.gz
Algorithm Hash digest
SHA256 633d23a6fc1a0b52505e2d103f725c5ef1d158c5204f6b10f19636a11b5281b4
MD5 4ec5feeddaf5d59ba544d6eb7aa977cb
BLAKE2b-256 2a039445735d463039945af46ed855412a260225bd7c1d36413608ae7583c304

See more details on using hashes here.

File details

Details for the file sc2_replay_analyzer-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sc2_replay_analyzer-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 17c681ac43c561d5043eeb55a5c11e3082c02abb567d79e834f5d12fc82f3013
MD5 6b16552ec9f4f24ac4f27a2b970baa49
BLAKE2b-256 369771e8967b0c13b3730cca41c5a61f7d0d5e81a4ff80d74101f23c420b08c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page