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.2.tar.gz (122.5 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.2-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.2-cp310-abi3-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.10+Windows x86-64

solverforge-0.2.2-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.2-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.2.tar.gz.

File metadata

  • Download URL: solverforge-0.2.2.tar.gz
  • Upload date:
  • Size: 122.5 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.2.tar.gz
Algorithm Hash digest
SHA256 437e0b2d30a530cbff7965fc751a9e0b407152b94e70b0f6e33a6d98e1084107
MD5 8c5d124f9438b04ca0159d81d970f09d
BLAKE2b-256 54e1581cecf6e591d4f5276a87c2f892035d39d75b65d79927d32fc52114bacc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for solverforge-0.2.2-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 74289857208458ef010c1f4e2e1428e291344bffa1b9a2e7c6bd535320168809
MD5 2e77ebaeb19900847b0a55fd581054e3
BLAKE2b-256 85c20c54a8b0ecd427b8ac88fac31455fae084cc3cb5ede41337487cf5bdae1d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: solverforge-0.2.2-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.2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 191a9b91c5ee55c20b593c7eb33344aa2aae884994bbd863b4b987aad1f3bee6
MD5 c91ac06c6ed4741af7689b185029ca5c
BLAKE2b-256 8db5bbbc74a0df40de216cafa0f2912efd8cc6ef8a47076ca2c5032b37f9ae6d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for solverforge-0.2.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 169169051ef8bc410506198497ac12d0dc19cd7407fc117fee931ed851afddef
MD5 c10ba6be8197a45a67a5c1c95319e145
BLAKE2b-256 725eb244881da82a3e508926541a533c0e5c9bae63b312565bfbe9412baeddd7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for solverforge-0.2.2-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d6dd8b52efadb71bfb56db9cde28c338b0f48593f569947c4e4aeb08a256e376
MD5 6c27cd39cd4a3feb5052edad4af5d02f
BLAKE2b-256 76c6a5aae7f6908b9129d8934ab8547c241b23814e541cc7d26881f189d7f385

See more details on using hashes here.

Provenance

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