Skip to main content

A unified launcher for XCSP solver

Project description

XCSP-Launcher

License: LGPL v3+ Python 3.8+ Documentation Python Tests Release Installer à partir du Snap Store


XCSP-Launcher is a unified tool to install, build, and execute solvers supporting the XCSP3 format.

It provides a streamlined way to manage solvers, automate their compilation, and run constraint programming instances through a standard, extensible interface.


✨ Features

  • 🛠️ Solver installation from GitHub, GitLab, or custom URLs
  • 🧱 Automatic or manual build (Gradle, CMake, Makefile, Cargo, Maven, etc.)
  • 🔖 Solver versioning and multi-version management
  • Unified execution interface for solving XCSP3 instances
  • 📝 Support for solver configuration files (.xsc.yaml) for reproducibility
  • 📄 Detailed logging of build and run processes
  • 🧩 Extensible: Easily add support for new solvers

📦 Installation

You can install xcsp-launcher via PyPI:

pip install xcsp-launcher

Or from source:

git clone https://github.com/CPToolset/xcsp-launcher.git
cd xcsp-launcher
pip install .

Binary packages (DEB, Snap, Chocolatey, Homebrew) will be available soon!


🚀 Quick Start

Install a solver

xcsp install --id ace --name ACE --repo xcsp3team/ace --source github.com

This will:

  • Clone the solver repository,
  • Automatically detect the build system (or use configuration),
  • Build the solver,
  • Register it in your local solver repository.

Solve an instance

xcsp solve --solver ace --instance path/to/instance.xml

🧰 Example Configuration (.xsc.yaml)

name: "ACE"
id: "fr.cril.xcsp.ace"
git: "https://github.com/xcsp3team/ace"
language: "java"
build:
  mode: manual
  build_command: "gradle build -x test"
command:
  prefix: "java -jar"
  template: "{{executable}} {{instance}} {{options}}"
  always_include_options: "-npc=true -ev"
versions:
  - version: "2.4"
    git_tag: "2.4"
    executable: "build/lib/ACE-2.4.jar"

For more information about the format of the solver-configuration please see the documentation of metrics.


🛠 Supported Build Systems (Auto-detection)

  • Gradle (build.gradle)
  • Maven (pom.xml)
  • CMake (CMakeLists.txt)
  • Make (Makefile)
  • Rust Cargo (Cargo.toml)
  • Python setuptools (setup.py, pyproject.toml)

📚 Other Projects

  • xcsp-launcher-homebrew — Homebrew Tap for installing XCSP-Launcher easily on macOS/Linux.
  • xcsp-metadata — A metadata repository for XCSP3 instances (domains, categories, etc.).
  • metrics-solver — Predefined solver configurations available by default with xcsp-launcher for easy installation and experimentation.

🚀 Projects Using XCSP-Launcher

  • metrics — An open-source Python library to automate experimental campaigns and analyze solver performances.

🤝 Contributing

We welcome contributions!
Feel free to open issues, suggest features, or submit pull requests.

Please read CONTRIBUTING.md for guidelines.


⚖️ License

This project is licensed under the LGPL v3+ License.
See LICENSE for details.


🌍 Related Links


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

xcsp-0.1.0a9.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

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

xcsp-0.1.0a9-py3-none-any.whl (28.8 kB view details)

Uploaded Python 3

File details

Details for the file xcsp-0.1.0a9.tar.gz.

File metadata

  • Download URL: xcsp-0.1.0a9.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for xcsp-0.1.0a9.tar.gz
Algorithm Hash digest
SHA256 bd7c54e7a0d08beeb57d902152b1ea9a13710c6d901f5744f44e1632eabf29c9
MD5 aeb31dc20d5da24c16838fa2a451300b
BLAKE2b-256 5dbebfb069941cc3bd7d6d1f6a4c02ebf264df8cf2a50c8e158618c9781fb235

See more details on using hashes here.

File details

Details for the file xcsp-0.1.0a9-py3-none-any.whl.

File metadata

  • Download URL: xcsp-0.1.0a9-py3-none-any.whl
  • Upload date:
  • Size: 28.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for xcsp-0.1.0a9-py3-none-any.whl
Algorithm Hash digest
SHA256 18af765e5bd53f48db5368ccb4f3d4ad158bc369042f5554a817078a6e58dd0a
MD5 ab6a383577a8a55d2bc8f6b877dc6bbc
BLAKE2b-256 b2919716b13efed081401b79f7e92f2adca63e42761297bc2fbfd515cd504d98

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