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.6.tar.gz (167.7 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.6-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

solverforge-0.2.6-cp310-abi3-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.10+Windows x86-64

solverforge-0.2.6-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

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

solverforge-0.2.6-cp310-abi3-macosx_11_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: solverforge-0.2.6.tar.gz
  • Upload date:
  • Size: 167.7 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.6.tar.gz
Algorithm Hash digest
SHA256 a1d23e906b2f55969251728fd24d3feebde505e47163b415cd1fb6e9cdb97313
MD5 f95284d77f46ebe5cad61b7ada65459b
BLAKE2b-256 84154d275b48d7700ded60f68cd392991f145254ebc65ac239282114b33c3c53

See more details on using hashes here.

Provenance

The following attestation bundles were made for solverforge-0.2.6.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.6-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for solverforge-0.2.6-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7cd360ad2d8ea4ea6a50967c0d7f568e43d949ce4c56754b340bc1bf3558589c
MD5 309bc979fdb33dbdd6c58597678eedf1
BLAKE2b-256 7263fc130f89bd37c514fb313c7b95e2d6ac93f5566d00b50308a5be601d0c61

See more details on using hashes here.

Provenance

The following attestation bundles were made for solverforge-0.2.6-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.6-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: solverforge-0.2.6-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 2.3 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.6-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 8f1f7202e8c9b39a6d4665298deca2b62c24991cd71e2d86e53cea07355576e4
MD5 747b78f86e0500ad5b3d618e9defcaf1
BLAKE2b-256 363e0a828a49a8a9ee686dfcaeee84a4405cc9db39456fd4c64d22c67afaefb6

See more details on using hashes here.

Provenance

The following attestation bundles were made for solverforge-0.2.6-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.6-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for solverforge-0.2.6-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e4c43496a9ddf476693bbeca1f6f67a25bdca96468eb3b9c50522296f795e8a8
MD5 5bf9125acaa8c5af72005871dc00f7b9
BLAKE2b-256 b3dd6c794354128d9f00f531f26e99ea6332483997d5d57e82903d7781443ce5

See more details on using hashes here.

Provenance

The following attestation bundles were made for solverforge-0.2.6-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.6-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for solverforge-0.2.6-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d37f0f445c4426667504e9745d34e23c3233dc981303864e39161acc20eba008
MD5 449a6f8d1b3141ff9ed5fde3db9d69f9
BLAKE2b-256 7eaab074721e81e995c709dcec68f90a0afabbeded9099ae41c962744c6066a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for solverforge-0.2.6-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