Skip to main content

Fetch your games from chess.com and lichess.org and add them to a sqlite database

Project description

PGN to Sqlite

PyPI version GitHub Black

A cli application for pulling pgn files from Chess.com and Lichess.org and putting your games into a sqlite database.

Install

Requires Python 3.6 and above.

MacOS / Linux:

python3 -m pip install pgn_to_sqlite

Windows:

python -m pip install pgn_to_sqlite

Usage

The cli expects three arguments: site, username, and output.

site: can be with chess or lichess, for chess.com and lichess.org, respectively.

-u username: The username of the user you wish to download games of.

-o output: should be a path to the sqlite3 database.

Example

pgn-to-sqlite lichess -u myusername -o data.db

If you've played a lot of games, be patient, it could take a minute or two.

Feedback and Contribution

If you find a bug, please file an issue.

If you have feature requests, please file an issue and use the appropriate label.

Please raise an issue before making a PR, so that the issue and implementation can be discussed before you write any code. This will save you time, and increase the chances of your PR being merged without significant changes.

Please format you code with Black.

Please include tests for any PR's that include code (unless current tests cover your code contribution).

Support

If you would like to show your support for the project, I would be very grateful if you would donate to a charity close to my heart, Walk AS One.

And if you would prefer to donate to me personally instead, you can sponsor me on Github? 🤓

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

pgn_to_sqlite-1.1.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pgn_to_sqlite-1.1.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file pgn_to_sqlite-1.1.1.tar.gz.

File metadata

  • Download URL: pgn_to_sqlite-1.1.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for pgn_to_sqlite-1.1.1.tar.gz
Algorithm Hash digest
SHA256 f20eb895d54631409d5387d6a078d69b3443c496ce5ad02600f0c10c3841ee52
MD5 b9b01245e8f0f0bf83732505427c4325
BLAKE2b-256 0a22f911efa3af3ce40455dc7f1ffdc7f6f3a58a55ca372f41382d0f09b2c53a

See more details on using hashes here.

File details

Details for the file pgn_to_sqlite-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: pgn_to_sqlite-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for pgn_to_sqlite-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fcd1344446082fddaa67940e3cad5ee4ff443d8dc003985a8f9a56f4439323be
MD5 497578e4ac18522da4bb9e5e05e9246b
BLAKE2b-256 b35172801fbcd9df6a6062f0987ce6a9dff41267f12b5d1676c92babaa826ef9

See more details on using hashes here.

Supported by

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