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.1.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

pldag_solver_sdk-0.1.1-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pldag_solver_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 1.6 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.1.tar.gz
Algorithm Hash digest
SHA256 65f010ce233d0bf8488e3f9305548654768fa991f859cff141021adea47af184
MD5 6c5dfbee075526886d990f07731d4748
BLAKE2b-256 004423ad63bcb1477ccf6410b51d433e1cd20c485481bd2dcfc82a713ecefd30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pldag_solver_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c092db5f5705b4671521834705b16b3b8b35ef4445cfe754aee628cb9197ea68
MD5 aeb9ffe3b4fa7ee440bf6a389a035cba
BLAKE2b-256 fc2a23df7f434662d808a19c89a13018f92de76c7787fbd4891747190df48504

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