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
Built Distribution
File details
Details for the file pldag_solver_sdk-0.1.3.tar.gz
.
File metadata
- Download URL: pldag_solver_sdk-0.1.3.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8287ca9f6ab0aabe4d83251345d707c150a841232a0e9575df355dc5e258c87 |
|
MD5 | b9c5c7e49b55fa714af1c0a2fc80c668 |
|
BLAKE2b-256 | b7bc567405f4a57e55af73c5186e100170aa1d0c607a7c15af26626090afb4d4 |
File details
Details for the file pldag_solver_sdk-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: pldag_solver_sdk-0.1.3-py3-none-any.whl
- Upload date:
- Size: 2.3 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8241d323eb8d03890d9d62f802282939d29de8173de4921803ebb19f95623735 |
|
MD5 | 27e9fb06546e79da786246ac4ac5f37a |
|
BLAKE2b-256 | 344c48f46e310f7fe729d6eee440677cf9d9f8575464904e64e44f87fc236dcf |