Metadata-Version: 2.1
Name: puan-pv-sdk-python
Version: 0.1.1
Summary: 
Author: Rikard Olsson
Author-email: znittzel@gmail.com
Requires-Python: >=3.9,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: requests (>=2.31.0,<3.0.0)
Description-Content-Type: text/markdown

# Puan PV SDK Python
An SDK for connecting to a Puan PV backend.

# Example
```python
from puan_pv_sdk_python import PropKey, And, Or, Variable, evaluation_composer

evaluate = evaluation_composer("http://localhost:8080")

keys = evaluate(
    prop_keys=[
        PropKey(
            prop=And(
                variables=[
                    Or(
                        variables=[
                            Variable(id='a'),
                            Variable(id='b')
                        ]
                    ),
                    Variable(id='c')
                ]
            ),
            key="abc"
        ),
    ], 
    interpretations=[
        {"a": 1, "b": 1, "c": 1},
        {"a": 1, "b": 1, "c": 0},
        {"a": 1, "b": 0, "c": 1},
    ],
)
```
