Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2.0.0a3 #332

Merged
merged 2 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
name: build

on:
push:
branches: [main, dev]
paths:
- "awpy/**"
- "tests/**"
- "pyproject.toml"
pull_request:
branches: [main]
paths:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Build and commit
uses: sphinx-notes/pages@v2
- name: Build Sphinx docs
uses: ammaraskar/sphinx-action@master
with:
docs-folder: "docs/"
- name: Push changes
uses: ad-m/github-push-action@master
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
poetry config repositories.testpypi https://test.pypi.org/simple/
poetry config repositories.testpypi https://test.pypi.org/legacy/

- name: Install awpy
run: |
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# The short X.Y version
version = ""
# The full version, including alpha/beta/rc tags
release = "2.0.0-alpha"
release = "2.0.0a3"


# -- General configuration ---------------------------------------------------
Expand Down
45 changes: 21 additions & 24 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,47 +16,44 @@ awpy
.. |Build| image:: https://github.com/pnxenopoulos/awpy/actions/workflows/build.yml/badge.svg
:target: https://github.com/pnxenopoulos/awpy/actions/workflows/build.yml

.. |Licence| image:: https://img.shields.io/badge/license-MIT-lightgrey
.. |License| image:: https://img.shields.io/badge/license-MIT-lightgrey
:target: https://github.com/pnxenopoulos/awpy/blob/main/LICENSE

`awpy` allows a user to parse, analyze and visualize Counter-Strike demo files. You can visit the repository_ to view the source code, examples and data. Please join the Discord_ server if you would like to join our esports analytics community or to receive help with the library. To install the library, run ``pip install awpy`` (Python >= 3.11).
`awpy` allows a user to parse, analyze and visualize Counter-Strike 2 demo files. You can visit the repository_ to view the source code, examples and data. Please join the Discord_ server if you would like to join our esports analytics community or to receive help. To install the library, run ``pip install awpy`` (Python >= 3.9).

.. _repository: https://github.com/pnxenopoulos/awpy
.. _Discord: https://discord.gg/W34XjsSs2H

Using Awpy to parse Counter-Strike demos is as easy as the few lines of code shown below. To see what output looks like, check out :doc:`parser_output`.
Using Awpy to parse Counter-Strike 2 demos is as easy as the few lines of code shown below. To see what output looks like, check out :doc:`parser_output`.

.. code-block:: python

from awpy import parse_demo
from awpy import Demo

# Parse a demo file in one line!
demo = parse_demo(file="og-vs-natus-vincere-m1-dust2.dem")
# Simply call `Demo(path="...")` to parse a demo
dem = Demo("natus-vincere-vs-virtus-pro-m1-overpass.dem")

# The `demo` object contains a variety of keys
demo.header # Header information like the map, tick rate, etc.
demo.rounds # A list of rounds and their start/end ticks
demo.kills # Kills and their details
demo.damages # Damage dealt by each player
demo.grenades # Grenade throws and their trajectories
demo.effects # Smokes & mollies
demo.flashes # When a player is flashed
demo.weapon_fires # Shots fired by each player
demo.bomb_events # Include plants, defuses, plant_start, defuse_start, etc.
demo.ticks # A list of each player's info at each tick
# Access various dictionaries & dataframes
dem.header
dem.rounds
dem.grenades
dem.kills
dem.damages
dem.bomb
dem.smokes
dem.infernos
dem.weapon_fires
dem.ticks


Using awpy
Using Awpy
----------
:doc:`installation`
How to install `awpy`.

:doc:`examples`
Examples code and Jupyter notebooks to help get you started.

:doc:`projects`
Projects that use `awpy`.

:doc:`faq`
Need help? Check the FAQs first.

Expand All @@ -68,13 +65,13 @@ awpy Modules
:doc:`data`
Data module.

:doc:`parser`
Parsing module.
:doc:`parsing`
Parsing modules.

:doc:`stats`
Stats module.

:doc:`visualization`
:doc:`vis`
Visualization module.

.. Hidden TOCs
Expand Down
28 changes: 0 additions & 28 deletions docs/projects.rst

This file was deleted.

3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "awpy"
version = "2.0.0a2"
version = "2.0.0a3"
description = "Counter-Strike 2 demo parsing, analysis and visualization"
readme = "README.md"
authors = [
Expand All @@ -16,7 +16,6 @@ keywords = ["counter-strike 2", "counter-strike", "csgo", "esports", "sports-ana
classifiers = [
"License :: OSI Approved :: MIT License",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down