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.10.tar.gz (2.4 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.10-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pldag_solver_sdk-0.1.10.tar.gz
  • Upload date:
  • Size: 2.4 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.10.tar.gz
Algorithm Hash digest
SHA256 b6346a9f2a09de6a125b1dfeb78ae222549cfc2f3cf70950649b3e2b90e3600d
MD5 73dc0a5e88c0b5d1c2222307ddd9a042
BLAKE2b-256 a8635e99dbb677f7a117321b58cf10eedee28d5833ad4352979c47ca85d87714

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pldag_solver_sdk-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 2.8 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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 67d53d574f8a9dfb5b2c474d3f1e25ab6d82a5b5ef9b2ced94ef8c98253d8250
MD5 56a3e7314c9c49314800fa259cfce401
BLAKE2b-256 e4e6b041dc972b49c64e5159ba3fa76e2b50154748991a8d1446dc8beee8f4e6

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