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

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 & resilient: every collector section runs inside xpcall; Collect() is pcall-guarded with re-entrancy protection, scheduled timers, and a 30s/180s OnUpdate watchdog.
  • 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, --summary, --section, --arrays, 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 — refresh the character snapshot immediately (flushes to disk on /reload or logout)
  • /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)
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 clean JSON arrays
wow-state --section inventory
wow-state --section equipment
wow-state --section questLog

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

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.0

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.0
File Size Uploaded Provenance Actions
wow_state-1.1.0.tar.gz 49.5 kB With provenance Details for wow_state-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 75.1 kB

Release files / wow_state-1.1.0.tar.gz

Download URL wow_state-1.1.0.tar.gz
Size 49.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b0e976f59432e22afd2e1d97c38b9106cb8401fbd5827170e7e85bf8597ed817
BLAKE2b-256 checksum
How to use checksums
b4a5d096ae930623d6f54af69d71f6655965cce7aff73ac4178a733ac325ccf0
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.0-py3-none-any.whl

Download URL wow_state-1.1.0-py3-none-any.whl
Size 25.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3186ee299bdc256cd3b30ea13b3f92963a360029cb83eeb6e54ec6035e41ec1
BLAKE2b-256 checksum
How to use checksums
7541dd05f38fbb1cf1722c90315e4e6c3d56095a0ce5a922ec33c4c28f77768e
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.0

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.0.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