Description
This package provides a parser for Chess Query Language (CQL).
The documentation for CQL version 6.0.4 as found in first half of 2020, plus CQL version 6.1 and CQL version 6.2 as found in mid-2024, was used as a reference.
CQLi provides an alternative implementation of CQL-6.1 and a ‘-parse’ option which gives output more easily compared with ChessQL output.
This package does not implement an evaluator to find games in a PGN file which match a query.
Installation Instructions
This package is available on PyPI so can be installed by typing
python -m pip install –user chessql
at the command prompt.
See Python and pip documentation for alternatives and platform-specific points.
Use
Function core.parser.parse(<string>) returns a QueryContainer instance with the result of parsing a string usually read from a <*>.cql file.
Function core.parser.parse_command_line_query() returns a QueryContainer instance with the result of parsing a command line usually passed to the CQL executable.
Notes
Version 3.0 of Chessql is incompatible with earlier versions.
An evaluator for some CQL constructs is implemented in ChessTab.
Release files for chessql 3.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chessql-3.0.3.tar.gz | 94.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chessql-3.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 195.1 kB
Release files / chessql-3.0.3.tar.gz
| Download URL | chessql-3.0.3.tar.gz |
|---|---|
| Size | 94.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea9c460c2d15713df106d95e5de891140b2af28763de6d1d06837af24e9e8ab2
|
|
BLAKE2b-256 checksum How to use checksums |
65c72cd7a33df359ff2f2f0ff9b1ca53914002176edbfbcb36c09a5e9108efff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / chessql-3.0.3-py3-none-any.whl
| Download URL | chessql-3.0.3-py3-none-any.whl |
|---|---|
| Size | 101.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c43ef1ea238806e10301c4b8a7101dbffee3976ac8999d9728c37e6a30db4c3
|
|
BLAKE2b-256 checksum How to use checksums |
78e53d930b8545887caa308e8c429db2db1b0cb6e1822b2da9d5e23653c40404
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|