Skip to main content

Simple package that splits a chess pgn file into a folder of pgns - each one containing one variation of the original pgn.

Project description

pgnsplit

pgnsplit is a simple command-line application that takes a single pgn file (e.g. from a Lichess Study) and extracts all the variations in the pgn, putting each of them in their own individual pgn files in a folder ./pgn/, which can then be stored in some sort of database (e.g. in SCID or ChessX).

This solves the problem in various chess software, where importing pgns only stores the mainline variation.

This is presented as a lightweight and easy-to-use alternative to David J. Barnes' pgn-extract, which is still more appropriate for the intricate manipulation of pgn files.

Requirements

  • Python (>3.8)
  • pip (which normally comes with Python)

Installation

$ pip install pgnsplit

Usage

$ pgnsplit <filepath>

<filepath> must be the path to a properly formatted pgn file. The individual pgn files will be stored in a local folder.

Improvements

Further improvements/functionality could be made as requested/needed.

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

pgnsplit-0.1.2.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

pgnsplit-0.1.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file pgnsplit-0.1.2.tar.gz.

File metadata

  • Download URL: pgnsplit-0.1.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.8.2 Darwin/19.4.0

File hashes

Hashes for pgnsplit-0.1.2.tar.gz
Algorithm Hash digest
SHA256 08ef324954497922f14b21be44205f7fca4d35dfaacdef4d1a93e0c06ecf93bf
MD5 e29cb6206493c6610023803207ad08bc
BLAKE2b-256 4c791d756de6c95f586d290223120d3b352957cf09dea24442cc00480a6050f6

See more details on using hashes here.

File details

Details for the file pgnsplit-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pgnsplit-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.8.2 Darwin/19.4.0

File hashes

Hashes for pgnsplit-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 99d4e59249533117cf7c30fc4847bd2093026f477d7b1450ab5310a7f974fd35
MD5 6ec0249c660a86e47256810259dfec4b
BLAKE2b-256 d66dd10281972c77b6fca1034a2dcfbdd4157678bb8587e9a13651d221d3d739

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