Skip to main content

Python bindings for SolverForge constraint solver

Project description

SolverForge

Python bindings for the SolverForge constraint solver.

Installation

pip install solverforge

Quick Start

from solverforge import (
    planning_entity,
    planning_solution,
    PlanningId,
    PlanningVariable,
    HardSoftScore,
)

@planning_entity
class Lesson:
    id: str
    subject: str
    timeslot: str | None = None
    room: str | None = None

@planning_solution
class Timetable:
    timeslots: list[str]
    rooms: list[str]
    lessons: list[Lesson]
    score: HardSoftScore | None = None

Features

  • Declarative domain modeling with decorators
  • Constraint streams for defining optimization rules
  • Multiple score types (Simple, HardSoft, HardMediumSoft)
  • Automatic WASM constraint compilation

Requirements

  • Python 3.10+
  • Java 24+ (for solver service)

Documentation

License

Apache-2.0

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

solverforge-0.2.3.tar.gz (123.4 kB view details)

Uploaded Source

Built Distributions

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

solverforge-0.2.3-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

solverforge-0.2.3-cp310-abi3-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.10+Windows x86-64

solverforge-0.2.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

solverforge-0.2.3-cp310-abi3-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file solverforge-0.2.3.tar.gz.

File metadata

  • Download URL: solverforge-0.2.3.tar.gz
  • Upload date:
  • Size: 123.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for solverforge-0.2.3.tar.gz
Algorithm Hash digest
SHA256 10fd96882b38769e32cced8a10ce399b3e43d9360f0604361b42c66dc02eb4bf
MD5 a22688dbeea72c16eb6970712ceb378f
BLAKE2b-256 3e04dce0a3d3abb89d4dd9d137e927fa5916eac7e4d86b8d12b8fe087ac271cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for solverforge-0.2.3.tar.gz:

Publisher: python-publish.yml on SolverForge/solverforge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file solverforge-0.2.3-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for solverforge-0.2.3-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6ed40cd31a9b16c5df8bc14f4b6e2f15db82b416f9d525e9aa0b1c4d62c80fcd
MD5 c73e756f139945b5bac455eedb03d39e
BLAKE2b-256 734125173c956a764f59f0c41477afc6f42e34520409e48fefc23d58fc478758

See more details on using hashes here.

Provenance

The following attestation bundles were made for solverforge-0.2.3-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: python-publish.yml on SolverForge/solverforge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file solverforge-0.2.3-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: solverforge-0.2.3-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for solverforge-0.2.3-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 526a420f67bdea87b45b303ea9061e8116ec7833dd6ef8d1cdccdac88affcc8b
MD5 13b2a5ac4e21b78be770fa47d0c72fbc
BLAKE2b-256 1dceda51643e3be4fea1e94c7448161a8347d1d0ef54fb982b4d0d61bece191f

See more details on using hashes here.

Provenance

The following attestation bundles were made for solverforge-0.2.3-cp310-abi3-win_amd64.whl:

Publisher: python-publish.yml on SolverForge/solverforge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file solverforge-0.2.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for solverforge-0.2.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c4879ee611883b9f4bab866996cbab610a37a45c770869ffe7a063cd116ba969
MD5 22598d96830a432a64a3583df7541ffc
BLAKE2b-256 ce446c2a42fd7530d89a8de596a2647184f20adf8b7549b34d40ecc04d4a1a04

See more details on using hashes here.

Provenance

The following attestation bundles were made for solverforge-0.2.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: python-publish.yml on SolverForge/solverforge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file solverforge-0.2.3-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for solverforge-0.2.3-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f9640aa93ef2fedfcc87ae22396061dac0b80aba8a3af65c01b0677e6d8194ed
MD5 b71c453c4a8d152cd1c05e36cdabfc2b
BLAKE2b-256 a897e53e3f4d92ec449e9fe1d0ee15ed495e487d12b8082e20ca6734db1bcb23

See more details on using hashes here.

Provenance

The following attestation bundles were made for solverforge-0.2.3-cp310-abi3-macosx_11_0_arm64.whl:

Publisher: python-publish.yml on SolverForge/solverforge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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