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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pldag_solver_sdk-0.1.9.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.9.tar.gz
Algorithm Hash digest
SHA256 66e2b0390b6d731a9a97b058dae19454f4afb542e0a9f86d4d39e59fb1302b5d
MD5 a870d876b71151cb0c1241f4b748fcdf
BLAKE2b-256 8728f7fd136a3e97bb4594387e08ffdf6d17cb4d8c01fdb8ccd588b199fd0843

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pldag_solver_sdk-0.1.9-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.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 0c1d44d2a8d504852ca61357364ce3a7c157594d2d725d8bb366344501f8cd52
MD5 504e2798bf3a91cafc5225a8070820fe
BLAKE2b-256 f2ee8fd3cbd4ea82cc3c29fe77244996f840d73800e4cde61913687dae0797f7

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