Skip to main content

League of Solvers Client CLI

Project description

About

The League of Solvers (LoS) is a SAT solver competition with matches every hour. (In the future we also hope to provide other kinds of competitions.) Everyone is welcome to participate, either with an existing solver or with their own. This program (los_client) is a client to easily participate at the competition.

Getting Started

Step 1. Installation

It is recommended to install via pipx so that the client can run in a seperate environment.

sudo apt install pipx

Once pipx is installed you can install the client via

pipx install los-client

Step 2. Register a Solver

Register a solver and copy the token at los.npify.com.

Step 3. Compete

If you have a solver that produces output compatible with the SAT competition and accepts a cnf file as its only parameter, you just need to run

los_client run --solver [path_to_solver] --token [token]

and wait for the next match to start.

If your solver is not compatible, you either need to write a script to adapt or you can adjust the los_client code itself, see under Development.

You can also save a configuration using

los_client --config los.json set --solver [path_to_solver] --token [token]

which creates a new file in the current working directory, so the next time you only need to run

los_client --config los.json run

Development

Setup and run through the environment:

pipx install uv
git clone https://github.com/NPify/los_client.git
cd los_client
uv run los_client --help

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

los_client-0.2.0.tar.gz (51.1 kB view details)

Uploaded Source

Built Distribution

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

los_client-0.2.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file los_client-0.2.0.tar.gz.

File metadata

  • Download URL: los_client-0.2.0.tar.gz
  • Upload date:
  • Size: 51.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.30

File hashes

Hashes for los_client-0.2.0.tar.gz
Algorithm Hash digest
SHA256 62afc695229c4bcfc15fda3e906b67d2c1bb8d2b4263013de0760c4cc9de6d1a
MD5 94f7f5c103ac42f3ffabb2d84a7ef59a
BLAKE2b-256 a3a6a159bc4908ea5e2419e0ee34a6d38d3cf9b2bced3844fc489a4198499222

See more details on using hashes here.

File details

Details for the file los_client-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: los_client-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.30

File hashes

Hashes for los_client-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d943a249f5a48e13133a121abc77b173770524f1579f157a8bad496f25dcf1b6
MD5 d9d0518be1eca5f67f3678f7a0153a0d
BLAKE2b-256 0ba55a9f05ee78d67102e78d8a6b3701100b13d5c3a5ea2ad061238cc938d3c6

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