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

Uploaded Source

Built Distribution

pldag_solver_sdk-0.1.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pldag_solver_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.9.20 Darwin/23.1.0

File hashes

Hashes for pldag_solver_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 841d0c5a2a47541646794705838b2ea05b5c07c6b8bb9ba98a6e53282cc8baa6
MD5 ad656a3a5dcc24b6e83d81c830f61b69
BLAKE2b-256 bddad3d29717664b4d9dcd80e4ca69a7d942c871476957bee0fefd72086ad517

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pldag_solver_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a41b6ff672d2e7aec8152eb567077b22f2bb3b27f2a6c1a7a98368ea7de30482
MD5 2327d6d7048184eed1dc6703dd2021b2
BLAKE2b-256 6939ae95d82aa7f83d149fed8299da7cf5aadf6973a5d923245f0162be391f74

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