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

Uploaded Source

Built Distribution

pldag_solver_sdk-0.1.3-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pldag_solver_sdk-0.1.3.tar.gz
  • Upload date:
  • Size: 2.0 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.3.tar.gz
Algorithm Hash digest
SHA256 a8287ca9f6ab0aabe4d83251345d707c150a841232a0e9575df355dc5e258c87
MD5 b9c5c7e49b55fa714af1c0a2fc80c668
BLAKE2b-256 b7bc567405f4a57e55af73c5186e100170aa1d0c607a7c15af26626090afb4d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pldag_solver_sdk-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8241d323eb8d03890d9d62f802282939d29de8173de4921803ebb19f95623735
MD5 27e9fb06546e79da786246ac4ac5f37a
BLAKE2b-256 344c48f46e310f7fe729d6eee440677cf9d9f8575464904e64e44f87fc236dcf

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