Chess Query Language (cql) parser.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chessql-3.0.2.tar.gz.
File metadata
- Download URL: chessql-3.0.2.tar.gz
- Upload date:
- Size: 94.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d752ba7a68cb004b92cbfa8d1d92d7835c4d1e97da4a110d8cde1c713db8fbb5
|
|
| MD5 |
fe1913d229232ddd4b5dd85691de1578
|
|
| BLAKE2b-256 |
cdb37c05b28ea6ae3afdec0aa94ef792e70912b5567e12f9c773ce448435948d
|
File details
Details for the file chessql-3.0.2-py3-none-any.whl.
File metadata
- Download URL: chessql-3.0.2-py3-none-any.whl
- Upload date:
- Size: 101.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95910cbf5f8d1a2e1c7cc8092691e8ee895027cc17019cf1718c2868da95ba00
|
|
| MD5 |
80e73864f3eae45d2bb2e1fab8f7b300
|
|
| BLAKE2b-256 |
9274abfec4d936de59254e2c221dc3422ae0b44e5c3642d507588f05a92115b6
|