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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pldag_solver_sdk-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 6cb9747abba11e674481c71047a5a39e355347db582173d4acee3fb18062e732
MD5 fb0fbd700389f57fc1ee297add98ad7b
BLAKE2b-256 19ad5893a13b4b334eae933b1c3fa805456ea8ac3fed9e2b6ce33a0131132307

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pldag_solver_sdk-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4b45650dd9e9d536d96888a1386292a29f713b414473fa4174f8698370a2593b
MD5 dcde5c2f0b5b5a06f46fa0b80f5eb107
BLAKE2b-256 23753881979c17e6eea0cfffb031d9d4da5eca379355da1adc47f877f219fe6e

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