PgnParse
This is a simple library capable of parsing chess PGNs, following the standard
definition. It includes classes that form an Abstract Syntax Tree, fully
representing the parsed PGN with code. These classes also include __str__
implementations that allow seamless conversion back to regular (normalized) PGN
strings.
A unique feature of this library is the flatten function for a list of moves.
This function allows for the flattening of a list of moves, recursively
stripping away all of the variations in a chess game and returning full
standalone lists for each variation.
The parsing is handled using the
Lark library,
which is therefore a dependecy of this library. Lark allows specifying a formal
EBNF-like grammar definition, which it then uses to tokenize the given input.
This token tree is then used to produce the AST.
Metadata
Release files for pgnparse 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pgnparse-0.4.0.tar.gz | 28.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pgnparse-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.7 kB
Release files / pgnparse-0.4.0.tar.gz
| Download URL | pgnparse-0.4.0.tar.gz |
|---|---|
| Size | 28.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5022ac911948f05689ea171d98638a401b525fc94b3823f560f0440d7546a5d0
|
|
BLAKE2b-256 checksum How to use checksums |
380cf8aadfebf55c12301f6561d57d1c989d371b75b164543121ba6230ae2562
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 16, 2025.
Transparency logRelease files / pgnparse-0.4.0-py3-none-any.whl
| Download URL | pgnparse-0.4.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
65363eb65fa6b153e753993c10e45a640af14a75ca1bc81b99f44ae3697f4b62
|
|
BLAKE2b-256 checksum How to use checksums |
669c96809798499ef59594286250be23416dc78e5091d843ce12a55ff90cd9e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 16, 2025.
Transparency log