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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pawnstore-0.2.2.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/41.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.4 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.13

File hashes

Hashes for pawnstore-0.2.2.tar.gz
Algorithm Hash digest
SHA256 26ace46d7258d515c555e15ee4b37a42a17b606a1c023aaad0def8ab75fcbcaa
MD5 8b589c0a173478dde34fd4b241bcffee
BLAKE2b-256 0e596ab2ad6d722d1d422e6cbdf512d3485299b89022815124ffbd2e5e25c2d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pawnstore-0.2.2-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.9.6 readme-renderer/41.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.4 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.13

File hashes

Hashes for pawnstore-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2f54da6f303ff03a16e5f4e1ab639eca49b37f577a3f2dab79fc6ecb910729cf
MD5 2a57ab1d39ff1a84e47cbc5835919051
BLAKE2b-256 a985a03c0570fb3aefbfe51becdd9264ced18f5946b3907a51ee639343e390cd

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