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

Uploaded Source

Built Distribution

pldag_solver_sdk-0.1.4-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pldag_solver_sdk-0.1.4.tar.gz
  • Upload date:
  • Size: 2.0 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.4.tar.gz
Algorithm Hash digest
SHA256 2da80a755fc02e7a2dc95fc3d0a72b23ef34d20c1ab6c3b58237da08264ab0e2
MD5 a56e161ac9f4c64af17d3808e9516196
BLAKE2b-256 fd76e3c676e1d84765c7bc9e61b5225326e09fadf055ca6acb5dc4732a9c49b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pldag_solver_sdk-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5352e8fe9e25620898af06249b50bf919f70a0c06c47ce4d5950ddbccfd7dca3
MD5 a1063493afc2cd561212e5d326712261
BLAKE2b-256 f1ef51b98ad743e36703f924602beef4a30ab5240e41889c077758908f0caff9

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