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.7.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

uci_net-1.2.7-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

Details for the file uci-net-1.2.7.tar.gz.

File metadata

  • Download URL: uci-net-1.2.7.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for uci-net-1.2.7.tar.gz
Algorithm Hash digest
SHA256 e12577a980d6f9c0667ac9925f628e5bc7890835f795faab4bac6cde8ff8d272
MD5 b4cb66b78182e593809d23588ed3b3c0
BLAKE2b-256 b87c891d94e39a43f0d5911cd809468a9f3fc11188dfad169c4399621fffa8d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uci_net-1.2.7-py3-none-any.whl
  • Upload date:
  • Size: 27.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for uci_net-1.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 dd169f8ff4d929a902294aa6b42a4cba17c18b43ec146658d97b582f22aa79aa
MD5 e2c46a0c191cec04fea26ace373e20f6
BLAKE2b-256 d1bec2c470855ed115636c7a6282c0e3a03737ff930060f0cac790c017e02435

See more details on using hashes here.

Supported by

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