Skip to main content

Python SDK package for Solver API

Project description

How to use

from solver import Solver, SolverType
from pldag import PLDAG

# Setup solver api
solver = Solver(url="http://localhost:9000")

# Setup a pldag model
model = PLDAG()
primitives = ["x", "y", "z"]
root = model.set_and(model.set_primitives(primitives))
solutions = solver.solve(model, [{}], {root: 0j}, SolverType.DEFAULT)

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

pldag_solver_sdk-0.1.5.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

pldag_solver_sdk-0.1.5-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file pldag_solver_sdk-0.1.5.tar.gz.

File metadata

  • Download URL: pldag_solver_sdk-0.1.5.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.15 Darwin/23.1.0

File hashes

Hashes for pldag_solver_sdk-0.1.5.tar.gz
Algorithm Hash digest
SHA256 ec00c30e72227d1729dea66c43bebe4f5f8141485adf1c5c959a92fa25265509
MD5 ce7e4bf5499c0f22aff3c26e05fd4336
BLAKE2b-256 d8491fa49675d839a83b1d82b0a5f1d158b5d3c2839500cc3a21308f09049a09

See more details on using hashes here.

File details

Details for the file pldag_solver_sdk-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for pldag_solver_sdk-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bb85dfc6187bd042308d36ddfe3d57c9880fcb2ee2721e82c3e01fb222af6b80
MD5 d9b7157f3141353e9c7bbf3874c1e127
BLAKE2b-256 1843a8e5221e952b2d48eb2611af1daf2e96233891a3fa87d72f71a88084b476

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page