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

Uploaded Source

Built Distribution

pldag_solver_sdk-0.1.6-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pldag_solver_sdk-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 37968dab993a4af386b1585713169b94ba1cd093c45956b53b62521cea79a409
MD5 4052c041703735ce76b50759e4698655
BLAKE2b-256 64ff07150d323a59458f5c351091866f7642db29077c39cde15876382935baaa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pldag_solver_sdk-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 22dffa6d5c745cc9133181d95bf51a7638b6f1b7d891616098a53e50b581943b
MD5 5a9f31a3204ef6548110886aa1725e60
BLAKE2b-256 76b20cb3cce2a6e6ff7caf89da6bec3e807c2fb268daee26d646145493d47437

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