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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pldag_solver_sdk-0.1.2.tar.gz
  • Upload date:
  • Size: 1.9 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.2.tar.gz
Algorithm Hash digest
SHA256 b0e3aa2ac766b1475a6b1e2ad81b7325175949013db692d4e7c82ead203ffe11
MD5 36426ec7652aa415d238ce4ebbd5a48e
BLAKE2b-256 bde4e51363ecd413c16a54450c58b48f08aeae59a9b565688d44e06f8329a75b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pldag_solver_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5bffb23fc78b43354437b9fcdd6a79d3113c622119d2c4c7fe2e32cff2087a51
MD5 6962fb0a1edccabdb0c7f0e273e7029a
BLAKE2b-256 77ef64909fbe62ae1b0f5c1ac3516be5a8870fa23f701f60355d764602b3c5a5

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