Chess library to import your PGN games in a local database
Project description
[![](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'])
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pawnstore-0.2.2.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for pawnstore-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f54da6f303ff03a16e5f4e1ab639eca49b37f577a3f2dab79fc6ecb910729cf |
|
MD5 | 2a57ab1d39ff1a84e47cbc5835919051 |
|
BLAKE2b-256 | a985a03c0570fb3aefbfe51becdd9264ced18f5946b3907a51ee639343e390cd |