Coder Social home page Coder Social logo

demoparser's Introduction

csgo-demoparser is a library for parsing CS:GO demo files. This is a forked verison of Ryan Moe's original demoparser, it has a few additional events that the user can subscribe to as well as some additional player properties. This is being maintained as a library for automated demo parsing and analysis.

Quick start

  1. Install:

    git clone https://github.com/kpei/demoparser.git
    python setup.py install
    
  2. Parse a demo:

    >>> from demoparser.demofile import DemoFile
    >>> data = open('/path/to/demofile', 'rb').read()
    >>> df = DemoFile(data)
    >>> df.parse()
    

demoparser's People

Contributors

rmoe avatar kpei avatar

demoparser's Issues

Error installing

Hi, I'm trying to write my own demo analyser and this package is really my lifesaver!
However, I have trouble installing this package.
I did what's suggested

git clone https://github.com/kpei/demoparser.git
python setup.py install

And I got

Compiling demoparser/util.pyx because it changed.
Compiling demoparser/props.pyx because it changed.
Compiling demoparser/bitbuffer.pyx because it changed.
Compiling demoparser/demofile.pyx because it changed.
[1/4] Cythonizing demoparser/bitbuffer.pyx
[2/4] Cythonizing demoparser/demofile.pyx
[3/4] Cythonizing demoparser/props.pyx
[4/4] Cythonizing demoparser/util.pyx
running install
[pbr] Writing ChangeLog
[pbr] Generating ChangeLog
[pbr] ChangeLog complete (0.0s)
[pbr] Generating AUTHORS
[pbr] AUTHORS complete (0.0s)
running build
running build_py
**FileNotFoundError**: [WinError 2]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.