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

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pldag_solver_sdk-0.1.7.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.7.tar.gz
Algorithm Hash digest
SHA256 a6b45e2d9b48a172ca49486bdb5abd7919db34cd137eeb61c2f6cc5a1c89943c
MD5 2bac83436c2faed969f1cda2fd104666
BLAKE2b-256 aeb8e4f4c73ac0a1c7ba941ae4ddb00fd9f7e2957e5a301a177ff7147872ca7f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pldag_solver_sdk-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 33f2d978fd47c9e47e89ed183902d7f8e7f65bfd5824390e37f46a607eb80f7e
MD5 6394bed018566fbdca1266a2f313492e
BLAKE2b-256 5c5f11820521979a1ad8016f751c70efce5f92b7d2f7e46b7823eeafa82ac663

See more details on using hashes here.

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