untraded
Open, transparent Counter-Strike 2 match metrics.
The metrics engine of Untraded, a self-hostable CS2 demo analyzer and coach. It turns a demo into canonical tables, a round model and 81 versioned metrics: base stats, duels and trades, positioning, utility, economy, HLTV 1.0 and an approximation of HLTV 2.0. Every metric ships with its formula, its parameters, its version and its tests (metric pages), and the shared stats are checked against CS Demo Manager on 30 matches (report).
Alpha. The library and the command line are usable now; the web app comes later. Metric versions follow semver, but the Python API may still change before 1.0.
Command line
untraded analyze match.dem.zst --mode premier # terminal report
untraded analyze match.dem.zst --mode premier --side CT # CT rounds only
untraded analyze match.dem.zst --mode premier --format json > report.json
untraded analyze match.dem.zst --mode premier --out out/ # also writes Parquet
The report lists every player's main stats (K, D, A, ADR, HS %, KAST, opening kills, untraded deaths, HLTV 1.0 and an approximation of HLTV 2.0), the same per side, and the key rounds: multi-kills, won clutches, eco or force rounds won against a full buy. The JSON output holds every metric of the registry, with its version. --out writes the canonical tables, the round model and the metrics as Parquet.
Demos can be .dem, .dem.bz2, .dem.gz or .dem.zst. The modes are premier, faceit, esea, scrim and pro.
Several matches:
untraded parse demos/*.dem.bz2 --mode premier --out parsed/ # in parallel, as the free RAM allows
untraded reference parsed/matches/* --player 7656119... --session <match id>
untraded parse takes many demos at once and adapts to the machine (low priority, a demo starts when the free RAM covers it). untraded reference compares a session with the player's own 30 days before it, recomputed over all the rounds, and shown from 5 matches and 100 rounds. untraded calibrate measures the adjustable thresholds on a corpus (method).
untraded compare-csdm checks our stats against CS Demo Manager's analyzer (see docs/validation-csdm.md).
untraded fixture extract match.dem.zst --mode premier --rounds 11-15 --name my-bug --out my-bug/ writes an anonymized extract of a few rounds: steamids, names, server, teams, date and rank are removed. It is enough to reproduce most metric issues, so you can attach it to a bug report instead of your demo.
Library
from pathlib import Path
from untraded.derive import derive
from untraded.metrics import Dataset, compute
from untraded.parsing import parse_demo
match = parse_demo(Path("match.dem.zst"), source="upload", mode="premier")
tables = match.tables()
ds = Dataset.from_matches([{**tables, **derive(tables).tables()}])
compute(ds) # every value metric, per player
compute(ds.split(side="CT"), ["base.kast"]) # one metric, CT rounds only
compute(ds, params={"trade.window_s": 3.0}) # another trade window
Results record each metric's version and the parameters used. The ratings are also available on match totals:
from untraded import rating_hltv_1
rating_hltv_1(rounds=24, kills=25, deaths=15, multikills={1: 10, 2: 4, 3: 1, 4: 1})
rating_hltv_1 implements HLTV's public Rating 1.0 formula:
(KillRating + 0.7 × SurvivalRating + MultiKillRating) / 2.7
KillRating = (kills / rounds) / 0.679
SurvivalRating = ((rounds − deaths) / rounds) / 0.317
MultiKillRating = ((1K + 4×2K + 9×3K + 16×4K + 25×5K) / rounds) / 1.277
rating_hltv_2_approx is a community approximation of Rating 2.0, whose formula HLTV does not publish: always present it as "approx.".
Untraded is not affiliated with HLTV or Valve.
License
MIT
Metadata
Release files for untraded 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| untraded-0.1.0.tar.gz | 2.5 MB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| untraded-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.6 MB
Release files / untraded-0.1.0.tar.gz
| Download URL | untraded-0.1.0.tar.gz |
|---|---|
| Size | 2.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d49502d347ebde80b64d6e50b5a2a34dba60e9a0e8459588ffa124d26812d088
|
|
BLAKE2b-256 checksum How to use checksums |
4bee84dcbd76c72b37cc29d0b8ad9303fda70fa4ad0747e4789e2180f4e72ba6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 20, 2026.
Transparency logRelease files / untraded-0.1.0-py3-none-any.whl
| Download URL | untraded-0.1.0-py3-none-any.whl |
|---|---|
| Size | 106.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
406517e8958100580dcff537ac391f888ddaa2d2d02755e25c4958d60d0b7493
|
|
BLAKE2b-256 checksum How to use checksums |
c0272631c390f0aa98736c8b538f3ea2b24f8865b4baa6df00561aa88a124610
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 20, 2026.
Transparency logSecurity for untraded 0.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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for untraded-0.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 Oct 20, 2026.
Transparency logA 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.