pgnparser
pgnparser copied to clipboard
A simple python PGN parser
Doing read() on a big file containing many PGN games (think hundreds of megabytes and more) takes a very long time and eats up lots of memory. Doing pgn.loads() on...
Added to the test as well. Not sure why git is showing as all the files in pgnparser as newly added ones.
The parser doesn't provide support for getting the ECO tag from a PGN file. See [the spec](https://www.chessclub.com/user/help/PGN-spec), section 9.4.1.
The string isn't quoted properly: ``` pgn_text = open('morphy.pgn).read() ``` should be ``` pgn_text = open('morphy.pgn').read() ```
https://github.com/renatopp/pgnparser/commit/59ee585e1accb34bca280efebd64377d103404f8 line 23 of test_pngparser.py Any reason why the game result is considered a move? This is very confusing and inconsistent.
Can we have a new release on pypi so that the last fixes are available on a package?