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.2.tar.gz (2.6 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.2-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pldag_solver_sdk-0.2.2.tar.gz
  • Upload date:
  • Size: 2.6 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.2.tar.gz
Algorithm Hash digest
SHA256 c3b4661b6d555187ef9622309f39b4ae1f3d57397fb7702f3e3651c6a4fa2e32
MD5 6e94c555d96886d87672d730aaa717bd
BLAKE2b-256 3c0cd1683fc4b450faebcbb424336bdc1692920bc9cf5b1aa4b8e67191730acc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pldag_solver_sdk-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 3.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 41a4c22ad04a056ccffcd6c2c7c2d64d514d8eb4635ccec8570d67f9a0c10d9d
MD5 451bad3300dd13142ff0f606d4eb1dfe
BLAKE2b-256 681861f7a107a262645e2736fc794741dd92a532313edf7592cfa428d0a27087

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