Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chessql-3.0.2.tar.gz (94.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chessql-3.0.2-py3-none-any.whl (101.0 kB view details)

Uploaded Python 3

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

Hashes for chessql-3.0.2.tar.gz
Algorithm Hash digest
SHA256 d752ba7a68cb004b92cbfa8d1d92d7835c4d1e97da4a110d8cde1c713db8fbb5
MD5 fe1913d229232ddd4b5dd85691de1578
BLAKE2b-256 cdb37c05b28ea6ae3afdec0aa94ef792e70912b5567e12f9c773ce448435948d

See more details on using hashes here.

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

Hashes for chessql-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 95910cbf5f8d1a2e1c7cc8092691e8ee895027cc17019cf1718c2868da95ba00
MD5 80e73864f3eae45d2bb2e1fab8f7b300
BLAKE2b-256 9274abfec4d936de59254e2c221dc3422ae0b44e5c3642d507588f05a92115b6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page