{ "info": { "author": "Renato de Pontes Pereira", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: MacOS X", "Environment :: Win32 (MS Windows)", "Environment :: X11 Applications", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Topic :: Games/Entertainment", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "==========\nPGN Parser\n==========\n\nA simple python PGN parser.\n\nPGN (Portable Game Notation) is computer-processible format for recording chess\ngames, both the moves and related data. \n\nThis module is based on features of others python parser modules (such json and \nyaml). The basic usage::\n\n import pgn\n\n pgn_text = open('morphy.pgn).read()\n pgn_game = pgn.PGNGame()\n\n print pgn.loads(pgn_text) # Returns a list of PGNGame\n print pgn.dumps(pgn_game) # Returns a string with a pgn game\n\n\n**Features**:\n\n- Required tags: \"Event\", \"Site\", \"Date\", \"Round\", \"White\", \"Black\", and\n \"Result\".\n- Optional tags: \"Annotator\", \"PlyCount\", \"TimeControl\", \"Time\", \"Termination\", \n \"Mode\", and \"FEN\".\n- Commentaries: \"**;**\" (a comment that continues to the end of the line) and \n \"**{**\" (which continues until a matching \"**}**\"). The last one just in \n moves list.\n\n\n**PGN example**::\n\n [Event \"F/S Return Match\"]\n [Site \"Belgrade, Serbia Yugoslavia|JUG\"]\n [Date \"1992.11.04\"]\n [Round \"29\"]\n [White \"Fischer, Robert J.\"]\n [Black \"Spassky, Boris V.\"]\n [Result \"1/2-1/2\"]\n \n 1. e4 e5 2. Nf3 Nc6 3. Bb5 {This opening is called the Ruy Lopez.} 3... a6\n 4. Ba4 Nf6 5. O-O Be7 6. Re1 b5 7. Bb3 d6 8. c3 O-O 9. h3 Nb8 10. d4 Nbd7\n 11. c4 c6 12. cxb5 axb5 13. Nc3 Bb7 14. Bg5 b4 15. Nb1 h6 16. Bh4 c5 17. dxe5\n Nxe4 18. Bxe7 Qxe7 19. exd6 Qf6 20. Nbd2 Nxd6 21. Nc4 Nxc4 22. Bxc4 Nb6\n 23. Ne5 Rae8 24. Bxf7+ Rxf7 25. Nxf7 Rxe1+ 26. Qxe1 Kxf7 27. Qe3 Qg5 28. Qxg5\n hxg5 29. b3 Ke6 30. a3 Kd6 31. axb4 cxb4 32. Ra5 Nd5 33. f3 Bc8 34. Kf2 Bf5\n 35. Ra7 g6 36. Ra6+ Kc5 37. Ke1 Nf4 38. g3 Nxh3 39. Kd2 Kb5 40. Rd6 Kc5 41. Ra6\n Nf2 42. g4 Bd3 43. Re6 1/2-1/2", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/renatopp/pgnparser", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://renatopp.com/pgnparser", "keywords": "chess game pgn parser python", "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "pgnparser", "package_url": "https://pypi.org/project/pgnparser/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pgnparser/", "project_urls": { "Download": "https://github.com/renatopp/pgnparser", "Homepage": "http://renatopp.com/pgnparser" }, "release_url": "https://pypi.org/project/pgnparser/1.0/", "requires_dist": null, "requires_python": null, "summary": "A python PGN parser", "version": "1.0" }, "last_serial": 796198, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "16be9268251acbb4b61b9c7a6642087b", "sha256": "1d70e665bf4702fc8bb1f087515ad104df1d0e6008e2459325f6486b7bd33911" }, "downloads": -1, "filename": "pgnparser-1.0.zip", "has_sig": false, "md5_digest": "16be9268251acbb4b61b9c7a6642087b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7310, "upload_time": "2012-07-26T04:43:54", "url": "https://files.pythonhosted.org/packages/ef/70/427a456b842325c8e59bea2c41d724ad297824e17431efeaa1074fd330bf/pgnparser-1.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "16be9268251acbb4b61b9c7a6642087b", "sha256": "1d70e665bf4702fc8bb1f087515ad104df1d0e6008e2459325f6486b7bd33911" }, "downloads": -1, "filename": "pgnparser-1.0.zip", "has_sig": false, "md5_digest": "16be9268251acbb4b61b9c7a6642087b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7310, "upload_time": "2012-07-26T04:43:54", "url": "https://files.pythonhosted.org/packages/ef/70/427a456b842325c8e59bea2c41d724ad297824e17431efeaa1074fd330bf/pgnparser-1.0.zip" } ] }