
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Counter-Strike 2 Demo Parsing, Analytics and Visualization in Python
To install Awpy, you can run
pip install awpy
[!NOTE] Awpy requires Python >= 3.11. To update the library, just run
pip install --upgrade awpy
. To check your current Awpy version, runpip show awpy
. If you want to see what data is available for download, runawpy get --help
.
[!TIP] Don't worry if you get stuck, visit our Discord for help.
Using Awpy is easy. Just find a demo you want to analyze and use the example below to get started. You can easily find demos on HLTV, FACEIT or CS2Stats.
from awpy import Demo
# Create and parse demo
dem = Demo("g2-vs-navi.dem")
dem.parse()
# Access various dictionaries & dataframes
dem.header
dem.rounds
dem.grenades
dem.kills
dem.damages
dem.bomb
dem.smokes
dem.infernos
dem.shots
dem.footsteps
dem.ticks
# The dataframes are Polars dataframes
# to transform to Pandas, just do .to_pandas()
dem.ticks.to_pandas()
[!TIP] Want to learn more about the parser output? Visit the parser primer in our documentation!
Counter-Strike demos can be a bit troublesome. It is likely you'll see increased error rates in POV demos. To help us address parsing issues, please open a bug report in our Github issues. Additionally, you can reach out in our Discord. We're appreciate any help in identifying bugs. We use LaihoE's demoparser as a backend, so you may also check there for any open issues.
Take a look at the following Jupyter notebooks provided in our examples/
directory. These will help you get started parsing and analyzing Counter-Strike data.
.nav
filesIf you use the parser for any public analysis, we kindly ask you to link to the Awpy repository, so that others may know how you parsed, analyzed or visualized your data. If you have a paper or project that uses the parser, please let us know in Discord so we can add it to our growing list!
[!IMPORTANT] If you use Awpy, we'd love if you could link back to our repo!
We welcome any contributions from the community, no matter the skill-level. You can visit our issue page to see what issues are still open, the Awpy project for a different view of project priorities, or you can message us on Discord. Some examples of where you can make a difference are in documentation, quality assurance, developing new features, or creating unique content with Awpy. You can see more examples of community content here. If you are interested in contributing to Awpy, learn more here.
[!TIP] We are happy to walk through those that want to contribute, no matter your skill level. There are a diverse set of ways one can contribute to Awpy. We welcome first-time contributors!
The name "Awpy" is due to Nick Wan -- we recommend his stream for sports data analytics enthusiasts.
Awpy was first built on the amazing work done in the demoinfocs-golang Golang library. We now rely on demoparser2 for parsing, which is another fantastic parsing project, built specifically for Python.
Awpy's team includes JanEric, adi and hojlund, who you can find in the Awpy Discord. Their work, among others, is crucial to Awpy's continued success! To contribute to Awpy, please visit CONTRIBUTING.
FAQs
Counter-Strike 2 demo parsing, analysis and visualization
We found that awpy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.