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.
Metadata
Release files for pgnsplit 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pgnsplit-0.1.2.tar.gz | 3.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pgnsplit-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.3 kB
Release files / pgnsplit-0.1.2.tar.gz
| Download URL | pgnsplit-0.1.2.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08ef324954497922f14b21be44205f7fca4d35dfaacdef4d1a93e0c06ecf93bf
|
|
BLAKE2b-256 checksum How to use checksums |
4c791d756de6c95f586d290223120d3b352957cf09dea24442cc00480a6050f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.8.2 Darwin/19.4.0
|
Release files / pgnsplit-0.1.2-py3-none-any.whl
| Download URL | pgnsplit-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99d4e59249533117cf7c30fc4847bd2093026f477d7b1450ab5310a7f974fd35
|
|
BLAKE2b-256 checksum How to use checksums |
d66dd10281972c77b6fca1034a2dcfbdd4157678bb8587e9a13651d221d3d739
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.8.2 Darwin/19.4.0
|
Security for pgnsplit 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.