Skip to main content

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.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

pawnstore-0.2.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file pawnstore-0.2.0.tar.gz.

File metadata

  • Download URL: pawnstore-0.2.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.1 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.12.0 keyring/23.9.1 rfc3986/2.0.0 colorama/0.4.5 CPython/3.9.13

File hashes

Hashes for pawnstore-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3cbaf315a87a9601817a8dac9f914e8dde010ab877c7d646f5d1b302631266eb
MD5 2d34baf382edaa6811e13b0a7b9687ba
BLAKE2b-256 6c7a97d0029d6d114bd2268fc895885d5e7d572f0ada0e3cd455d0ffac3cea9f

See more details on using hashes here.

File details

Details for the file pawnstore-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pawnstore-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.1 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.12.0 keyring/23.9.1 rfc3986/2.0.0 colorama/0.4.5 CPython/3.9.13

File hashes

Hashes for pawnstore-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 88733f49f0dbb963a3b23e7032b829de09e02ebc5b01b253661c62e61e1cb2c9
MD5 848bb4d8960d741eed7ad911e5471e9b
BLAKE2b-256 903c3a8db52c55f7f1d4cece4eaf114902b34f3da7ea35f409bd4a932c135e2b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page