Skip to main content

Universal Chess Interface client-server conversation.

Project description

Description

This package provides a pure Python client-server Universal Chess Interface to a chess engine intended for analysing positions rather than playing games.

Installation Instructions

This package is available on PyPI so can be installed by typing

python -m pip install –user uci-net

at the command prompt.

See Python and pip documentation for alternatives and platform-specific points.

Run

The command to run the server is:

python -m uci_net.tcp_driver [port] [allowed callers] path [options]

A path to a UCI chess engine must be given.

See chess engine documentation for options.

By default anyone is allowed to use the server, subject to firewall restrictions. A comma separated list of hostnames in <allowed callers> prevents hosts not in the list from using the server.

Conections to the server are made on port ‘port’. The default is 11111.

Assuming a hostname ‘stockfishbox’ with IP address 192.168.0.1 and the default port, suitable engine definition records in ChessTab are:

‘//stockfishbox:11111?name=Stockfish 12’ or ‘//192.168.0.1:11111?name=Stockfish 12’.

The record says ‘name=Stockfish 12’ because ‘Stockfish 12’ is the ‘id name’ value returned by Stockfish 12 in response to the ‘uci’ command.

The client is run by applications such as ChessTab when required.

Notes

Project name and package name changed from ‘uci’ to ‘uci-net’ prior to upload to PyPI.

The version numbers of uci-net continue on from uci.

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

uci_net-1.2.8.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

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

uci_net-1.2.8-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

Details for the file uci_net-1.2.8.tar.gz.

File metadata

  • Download URL: uci_net-1.2.8.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for uci_net-1.2.8.tar.gz
Algorithm Hash digest
SHA256 b474ba684ecfcccb0ba968b57f293a3bfd1f7996df9726e43d62717925974c97
MD5 d76f3c6aacec6a1a5f6fe4a86fbb2418
BLAKE2b-256 15894d8c5bed8b9136c00b5a0f89323cf77fe537321160a93834e8fa8ffe88e0

See more details on using hashes here.

File details

Details for the file uci_net-1.2.8-py3-none-any.whl.

File metadata

  • Download URL: uci_net-1.2.8-py3-none-any.whl
  • Upload date:
  • Size: 26.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for uci_net-1.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 901ef50a0c700d462b8fff6455bdb6ba3ed6b79d96739b294760a2f4084d686d
MD5 0f2b5c3ce0fc7fe52313351697a879a7
BLAKE2b-256 2c007fa4e257d243bacb356c702f85c4a2f91338f416e5147a52fbc5fd43d812

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