Metadata-Version: 2.1
Name: pypgn
Version: 0.3.2
Summary: Library for parsing and manipulating PGN format files.
Home-page: https://github.com/DaniruKun/pypgn
Author: Daniils Petrovs
Author-email: thedanpetrov@gmail.com
License: MPL-2.0
Description: [![PyPI version](https://badge.fury.io/py/pypgn.svg)](https://badge.fury.io/py/pypgn)
        [![Python 3.5](https://img.shields.io/badge/python-3.5-blue.svg)](https://www.python.org/downloads/release/python-360/)
        [![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/DaniruKun/pypgn.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/DaniruKun/pypgn/context:python)
        [![Documentation Status](https://readthedocs.org/projects/pypgn/badge/?version=latest)](https://pypgn.readthedocs.io/en/latest/?badge=latest)
        # PyPGN
        A pure Python 3 library to simplify parsing and manipulation of [PGN](http://portablegamenotation.com/FIDE.html) (Portable Game Notation) format files, which are often used for serializing games such as chess.
        
        ## Prerequisites
        
        Python version `3.x` > `3.4` and `Pip`
        
        ## Install
        
        Install or upgrade with `PiP`
        
        ```shell script
        $ pip install pypgn 
        ```
        
        You can also install from source:
        
        ```shell script
        git clone https://github.com/DaniruKun/pypgn.git
        cd pypgn
        python setup.py install
        ```
        
        ## Examples
        
        ```python
        from pypgn.game import Game
        
        chess_game = Game('test.pgn')
        
        print(chess_game.get_tag_value('Event'))
        print(chess_game.get_result())
        # Print opening ply for white
        print(chess_game.get_ply(1, 'w'))
        ```
        
        Output:
        ```shell script
        >> Rated Blitz game
        >> 0-1
        >> e4
        ```
        
        ## Authors
        
        [@DaniruKun](https://github.com/DaniruKun) aka Daniils Petrovs
        
        ## License
        [Mozilla Public License 2.0](https://opensource.org/licenses/MPL-2.0) see [LICENSE](LICENSE) for more details.
Keywords: pgn,chess,game,notation
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Text Processing
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown
