[![](https://pepy.tech/badge/pawnstore)](https://pepy.tech/project/pawnstore)
# pawnstore ♟
> **/pɔːnstɔʁ/** :
>
> *n.* chess library to import your PGN games in a local database
>
> Portmanteau word from :
> 1. *pawns*: defined by Philidor as *\"The soul of chess\"*
> 2. *datastore*: repository for persistently storing and managing collections of data
## Features
- centralized access to your online and OTB chess games
- chess.com and lichess.org importers
- user-centric data representation to facilitate extraction of your
own statistics
## Example
>>> import pawnstore as ps
>>> from pawnstore.models import Panwstore
>>>
>>> store = Pawnstore(chesscom=("neTinquietePas", "xxx"),
lichess=("kraymer", "xxx"))
>>> for game in store.filter(white=True).limit(3):
print(game)
neTinquietePas x rms1952
neTinquietePas x AnselmoBarrena
neTinquietePas x samisamuel
>>> print(game.as_dict().keys())
dict_keys(['id', 'slug', 'analysis', 'eco', 'eco_name', 'elo', 'moves', 'num_moves', 'opp_elo', 'opp_name', 'pgn', 'result', 'termination', 'speed', 'term', 'timestamp', 'user', 'accuracy', 'time_control', 'website', 'white'])
Raw data
{
"_id": null,
"home_page": "https://github.com/KraYmer/pawnstore",
"name": "pawnstore",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "chess",
"author": "Fabrice Laporte",
"author_email": "kraymer@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/0e/59/6ab2ad6d722d1d422e6cbdf512d3485299b89022815124ffbd2e5e25c2d7/pawnstore-0.2.2.tar.gz",
"platform": "ALL",
"description": "[![](https://pepy.tech/badge/pawnstore)](https://pepy.tech/project/pawnstore)\n\n\n# pawnstore \u265f\n\n> **/p\u0254\u02d0nst\u0254\u0281/** :\n>\n> *n.* chess library to import your PGN games in a local database\n> \n> Portmanteau word from :\n> 1. *pawns*: defined by Philidor as *\\\"The soul of chess\\\"*\n> 2. *datastore*: repository for persistently storing and managing collections of data\n\n## Features\n\n- centralized access to your online and OTB chess games\n- chess.com and lichess.org importers\n- user-centric data representation to facilitate extraction of your\n own statistics\n\n## Example\n\n >>> import pawnstore as ps\n >>> from pawnstore.models import Panwstore\n >>>\n >>> store = Pawnstore(chesscom=(\"neTinquietePas\", \"xxx\"),\n lichess=(\"kraymer\", \"xxx\"))\n >>> for game in store.filter(white=True).limit(3):\n print(game)\n neTinquietePas x rms1952\n neTinquietePas x AnselmoBarrena\n neTinquietePas x samisamuel\n >>> print(game.as_dict().keys())\n dict_keys(['id', 'slug', 'analysis', 'eco', 'eco_name', 'elo', 'moves', 'num_moves', 'opp_elo', 'opp_name', 'pgn', 'result', 'termination', 'speed', 'term', 'timestamp', 'user', 'accuracy', 'time_control', 'website', 'white'])\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Chess library to import your PGN games in a local database",
"version": "0.2.2",
"project_urls": {
"Homepage": "https://github.com/KraYmer/pawnstore"
},
"split_keywords": [
"chess"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a985a03c0570fb3aefbfe51becdd9264ced18f5946b3907a51ee639343e390cd",
"md5": "2a57ab1d39ff1a84e47cbc5835919051",
"sha256": "2f54da6f303ff03a16e5f4e1ab639eca49b37f577a3f2dab79fc6ecb910729cf"
},
"downloads": -1,
"filename": "pawnstore-0.2.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2a57ab1d39ff1a84e47cbc5835919051",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 6522,
"upload_time": "2023-08-31T12:36:11",
"upload_time_iso_8601": "2023-08-31T12:36:11.638038Z",
"url": "https://files.pythonhosted.org/packages/a9/85/a03c0570fb3aefbfe51becdd9264ced18f5946b3907a51ee639343e390cd/pawnstore-0.2.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0e596ab2ad6d722d1d422e6cbdf512d3485299b89022815124ffbd2e5e25c2d7",
"md5": "8b589c0a173478dde34fd4b241bcffee",
"sha256": "26ace46d7258d515c555e15ee4b37a42a17b606a1c023aaad0def8ab75fcbcaa"
},
"downloads": -1,
"filename": "pawnstore-0.2.2.tar.gz",
"has_sig": false,
"md5_digest": "8b589c0a173478dde34fd4b241bcffee",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 6098,
"upload_time": "2023-08-31T12:36:13",
"upload_time_iso_8601": "2023-08-31T12:36:13.622534Z",
"url": "https://files.pythonhosted.org/packages/0e/59/6ab2ad6d722d1d422e6cbdf512d3485299b89022815124ffbd2e5e25c2d7/pawnstore-0.2.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-31 12:36:13",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "KraYmer",
"github_project": "pawnstore",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "pawnstore"
}