Also, I mentioned in an earlier announcement that I wasn't accepting patches and contributions yet. I'm comfortable enough with the library design for now that if you find bugs, have feature ideas, optimizations, etc. be sure to send them my way!
pyreplib - Python library to read .rep files - Page 3
| Forum Index > BW General |
|
gnuvince
Canada73 Posts
Also, I mentioned in an earlier announcement that I wasn't accepting patches and contributions yet. I'm comfortable enough with the library design for now that if you find bugs, have feature ideas, optimizations, etc. be sure to send them my way! | ||
|
prOxi.swAMi
Australia3091 Posts
...Not that I have a problem with python. Great job! | ||
|
gnuvince
Canada73 Posts
On July 15 2008 08:33 prOxi.swAMi wrote: A .NET lib would be sick. ...Not that I have a problem with python. Great job! The thing I am working on now is a small command line util to dump a replay file in data formats such as JSON, XML and YAML. If no one is interested in doing the low-level bit-fiddling for .NET, this could be a not-so-bad way to get started; those formats are *way* easier to manipulate and toy around with that binary, that's for sure. I'll keep you informed! | ||
|
gnuvince
Canada73 Posts
It dumps in JSON, YAML and XML. I don't recommend YAML, the PyYAML library is pretty slow, doing a dump takes about 50 seconds! JSON is the fastest if you have the cjson module installed, JSON dumping with simplejson and XML dumping take approximatively the same time. Check it out and give me some feedback! | ||
|
RekcaH
United States190 Posts
>>> from pyreplib import replay Traceback (most recent call last): File "<stdin>", line 1, in <module> File "pyreplib/replay.py", line 5, in <module> from pyreplib import _unpack ImportError: cannot import name _unpack What do I have to do to get it to work? Do I have to run setup.py first? | ||
|
gnuvince
Canada73 Posts
$ sudo python setup.py install You will need a C compiler, because the unpacker is written in C. | ||
|
RekcaH
United States190 Posts
sudo python setup.py | ||
|
zdd
1463 Posts
| ||
|
gnuvince
Canada73 Posts
It's not necessary to get pyreplib working, however it's damn useful to check some things that aren't clear from replay_format.txt (or not mentioned at all.) | ||
| ||
It's not necessary to get pyreplib working, however it's damn useful to check some things that aren't clear from replay_format.txt (or not mentioned at all.)