Skip to main content

Library to process 2 players' games recordings (only chess now)

Project description

**gamerec** is Python package intended to help process game recordings for 2 payers' games.
File with game records can be loaded to Python collection object, be manipulated by user Python code,
and then be saved back to file. Current very limited version of package only supports Chess game
and only .pgn file meta-data.

Below is an example of package use to save games from .pgn file to SQLite database:
```python
from gamerec.storage.pgnfile.chess import ChessGameCollection as PGNChessGC
from gamerec.storage.sqlite.chess import ChessGameCollection as SQLiteChessGC

PGNFile = sys.argv[1]
SQLFile = sys.argv[2]

pgngc = PGNChessGC()
pgngc.load(PGNFile)
sqlgc = SQLiteChessGC()
sqlgc.data = pgngc.data
sqlgc.coding = "utf_8"
sqlgc.save(SQLFile)
```

Consider installing [normalizePGN](https://pypi.python.org/pypi/normalizePGN) which is an example of
how this package may be used.

For more information see files README.md and Changelog.md included in source-ball or
in typical installation using pip deployed to folders:
- /usr/local/share/doc/gamerec (Linux)
- C:\Python35\doc\gamerec (Windows) or
- <USER>\AppData\Local\Programs\Python\Python35-32\Doc\gamerec

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

gamerec-0.0.2.tar.gz (11.0 kB view details)

Uploaded Source

File details

Details for the file gamerec-0.0.2.tar.gz.

File metadata

  • Download URL: gamerec-0.0.2.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gamerec-0.0.2.tar.gz
Algorithm Hash digest
SHA256 bb2e90145a82f710d670242661af0c7f413dc05a6137550211c2e2b50559e2eb
MD5 4814127a09abd6cc58632d3958ca01ce
BLAKE2b-256 0c1df95040a2b6e5389fb5cf7402ddd2eeb072d7750c71cd8a8de25fb4f27910

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