Skip to main content

WoWState

WoWState (wow-state) is a lightweight, zero-UI World of Warcraft addon and stdlib-only Python toolkit that exports your full character state to SavedVariables (WoWStateDB) so external tools, scripts, and AI assistants can inspect and archive it outside the game.

Downloads & Directories: PyPI · CurseForge · Wago Addons · WoWInterface · GitHub Releases

Quick Start

  1. Install the WoW addon (via CurseForge / Wago / WoWInterface, or sh scripts/install.sh).
  2. Type /wowstate in-game (or log out / /reload) to write your fresh character snapshot to SavedVariables/WoWState.lua.
  3. Run uvx wow-state from any terminal or AI assistant to output a compact, auto-discovered JSON digest (no installation required).

Features

  • Full character snapshot: identity, /played time, location/coordinates/instance, item level, secondary/tertiary/ranged/resistance/weapon/movement stats, combat ratings, weapon & profession skills, spellbook, talents & Retail spec/loadouts, action bars, equipped gear (with per-slot iLvl), carried bags, bank/Reagent/Warband contents, active & completed quests, reputations, currencies, buffs/debuffs, macros, mounts/achievements, PvP stats/ratings, instance lockouts/Mythic+/Great Vault, and active pet state.
  • Self-healing, combat-safe & resilient: every collector section runs inside xpcall; Collect() is pcall-guarded with re-entrancy protection, burst coalescing (trailing collect on rapid loot/bag events), combat deferral (PLAYER_REGEN_ENABLED catch-up), scheduled timers, a 30s/180s OnUpdate watchdog, and native ADDON_LOADED SavedVariables sync across sessions.
  • One-command disk flush: running /wowstate (or /wstate) refreshes your snapshot and reloads the UI to flush SavedVariables/WoWState.lua to disk immediately.
  • Keep-last-good merge: torn-down logout or early-login collects never overwrite populated character sections with empty/zeroed state, and restricted/secret client values are safely ignored.
  • Multi-flavor TOC support: ships with a multi-flavor ## Interface: manifest for Retail (Mainline), Mists of Pandaria Classic (Mists), Cataclysm Classic (Cata), TBC Classic (TBC), Classic Era (Vanilla), and custom 16001 builds.
  • Zero-dependency Python CLI & archiver: parses WoW's Lua SavedVariables (including \ddd UTF-8 byte escapes and long strings) using only Python's standard library, with auto-discovery, compact AI JSON (--only), --summary, --section, --raw, and idempotent snapshot archiving with JSON sidecars.
  • Project-local AI skill: includes .agents/skills/wow-state/ so coding assistants in this repo know how to discover, query, and interpret character snapshots.

Installation

1. Install the WoW Addon

Option A: Addon Manager / Directory

Install WoWState directly from:

Option B: Release ZIP (manual install)

Download WoWState-<version>.zip from GitHub Releases and extract the WoWState/ folder into your Interface/AddOns/ directory.

Option C: Install from source

sh scripts/install.sh

Or specify your AddOns directory explicitly:

sh scripts/install.sh --addons "/path/to/World of Warcraft/_retail_/Interface/AddOns"

2. Run or Install the Python CLI

wow-state uses only the Python 3.10+ standard library. Run it directly with uvx (zero install):

uvx wow-state
uvx wow-state --only character,stats,equipment

Or install wow-state and wow-state-archive from PyPI:

pip install wow-state
# or: uv tool install wow-state / pipx install wow-state

Or run directly from a source checkout:

PYTHONPATH=src python3 -m wow_state

In-Game Slash Commands

  • /wowstate or /wstate (also /wowstate save) — refresh the snapshot and immediately reload the UI to flush SavedVariables/WoWState.lua to disk
  • /wowstate collect — refresh the snapshot in memory only (without reloading the UI)
  • /wowstate status — print addon version, load count, collect counts, and last collect status
  • /wowstate help — show slash command usage

Python CLI Usage

Inspect SavedVariables (wow-state)

# Print a compact AI-ready JSON digest for the latest character (default; --only names are case-insensitive)
wow-state
wow-state --only character,stats,equipment
wow-state --character "Lyra" --indent 2
wow-state --all

# Discover SavedVariables files or list characters
wow-state --discover
wow-state --list

# Print a compact human-readable summary
wow-state --summary
wow-state --summary --character "Lyra"
wow-state --summary --all

# Query a single raw section as JSON (Lua sequences become arrays; --no-arrays keeps raw keys)
wow-state --section inventory
wow-state --section equipment
wow-state --section questLog
wow-state --section recipes

# Dump the entire raw parsed SavedVariables file as JSON
wow-state --raw path/to/SavedVariables/WoWState.lua

# The path may also be a WoW install, flavor, account, or SavedVariables folder
wow-state "/Applications/World of Warcraft"

Environment variables:

  • WOW_STATE_SV: explicit path to WoWState.lua
  • WOW_DIR: additional World of Warcraft root directory to scan during --discover

Archive Snapshot History (wow-state-archive)

World of Warcraft overwrites SavedVariables/WoWState.lua on every /reload or logout. Archive changed snapshots along with validated .json sidecars:

wow-state-archive --dest ./history

The archiver hashes only the Lua data portion (ignoring any optional bootstrap carrier), writes atomically, and skips unchanged files.

AI Skill

This repository includes a project-local AI skill at .agents/skills/wow-state/SKILL.md with schema documentation at .agents/skills/wow-state/references/schema.md.

Packaging & Extras

  • Package addon ZIP: sh scripts/package.sh writes dist/WoWState-<version>.zip (with WoWState*.toc, WoWState.lua, and LICENSE) and prints its SHA-256 checksum. Also includes .pkgmeta and BigWigsMods/packager automation in .github/workflows/release.yml (set optional CF_API_KEY, WAGO_API_TOKEN, and WOWI_API_TOKEN repository secrets to publish to CurseForge, Wago Addons, and WoWInterface on v* tag pushes).
  • macOS launchd templates: see extras/launchd/README.md for scheduled background archiving.
  • Custom-client SavedVariables carrier: see extras/sv-carrier/README.md (only needed for private/custom clients that pin addon files after first load).

Development & Testing

# Run the Lua test harness under both LuaJIT (Lua 5.1) and Lua 5.4
luajit tests/lua/harness.lua
lua tests/lua/harness.lua

# Run the Python test suite
python3 -m pytest -v

# Lint shell scripts
shellcheck scripts/*.sh extras/sv-carrier/*.sh extras/launchd/*.sh

License

MIT License — see LICENSE.

Metadata

Release files for wow-state 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wow-state 1.1.1
File Size Uploaded Provenance Actions
wow_state-1.1.1.tar.gz 54.0 kB With provenance Details for wow_state-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wow-state 1.1.1
File Interpreter ABI Platform Actions
wow_state-1.1.1-py3-none-any.whl Python 3 none any Details for wow_state-1.1.1-py3-none-any.whl

Total release size: 81.0 kB

Release files / wow_state-1.1.1.tar.gz

Download URL wow_state-1.1.1.tar.gz
Size 54.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2c32aa9d4353a4c5f7d1164309843fc31a50946afe8b650b48ad0f1fd281ede2
BLAKE2b-256 checksum
How to use checksums
f7cb7334a0e1384963933d0077e4b4a38b662422f5c2cc15ea41888f2576f252
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Release files / wow_state-1.1.1-py3-none-any.whl

Download URL wow_state-1.1.1-py3-none-any.whl
Size 27.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55863fec640b472638e2f876e86f98856c9f263473775b2efc23744c07d68dc9
BLAKE2b-256 checksum
How to use checksums
26f133ca9c7247c79e2594a0c3d8e96f38f79a9a0892f9450420fb3ee5900959
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Security for wow-state 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for wow_state-1.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page