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.2.0.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.2.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pldag_solver_sdk-0.2.0.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.2.0.tar.gz
Algorithm Hash digest
SHA256 5804709606b75b7ef3d1cdc4a17f86e8f69fbae803b31227a7b81cac11525cbd
MD5 ae7779b1f4f506522b1e1e1f0c2a9cf3
BLAKE2b-256 414b02e9735dee8fc7d59013737b707f4c0f860e443c16b9cb8b3f2eea7c51d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pldag_solver_sdk-0.2.0-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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6027940a5c73e9bb730b9c2d330a062fc64a961b659bebaa9cb307926ee88b24
MD5 3834e5a79fa558febb8ae16e39ac4a16
BLAKE2b-256 e13ab609796d33093b595eb4cd5030f9ae9ae66549fe9594de57023734b1b836

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