Puan Client DB
A small tool for calling a running puan-server-db http service.
Install
pip install puan-client-db
Quickstart
import puan.logic.plog as pg
from puan_client_db import PropositionClient
# create a client
client = PropositionClient("http://localhost:8000") # we run a service on our local machine on port 8000
# create a puan model (pip install puan)
model = pg.All(
pg.Xor(*"xyz"),
pg.Imply(
pg.Any(*"AB"),
pg.All(*"ijk")
)
)
# store the model by commiting it into the service
# This will commit to a new model with default branch name (usually "main" but depends on backend config)
# (second parameter returned is an error)
sha_first, _ = client.commit(model)
# ... and we later made some changes
model = model.assume({"i": 1}) # this fixes `i` to always be set to 1/True
# then made another commit
client.commit(model)
# some time later we want to checkout the first commit
# (second parameter returned is an error)
model_first, _ = client.checkout(sha_first)
Metadata
Release files for puan-client-db 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| puan-client-db-0.0.4.tar.gz | 7.0 kB | Without provenance | Details for puan-client-db-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| puan_client_db-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for puan_client_db-0.0.4-py3-none-any.whl |
Total release size: 14.3 kB
Release files / puan-client-db-0.0.4.tar.gz
| Download URL | puan-client-db-0.0.4.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cac23572112b8a5097859e428c09c4b131e15fbc60732845b00f1b028b567aab
|
|
BLAKE2b-256 checksum How to use checksums |
aea2f830ec279f68f1184cb28ef38787334509813e4f687e9926ed5ec86acfb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.1
|
Release files / puan_client_db-0.0.4-py3-none-any.whl
| Download URL | puan_client_db-0.0.4-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
88191431add3eae3edb7742530fad31e05573ff843832f1f5ee5b399e687e0c4
|
|
BLAKE2b-256 checksum How to use checksums |
918fc34d2b2a721d226272620090746fab0490ca60b0f66e25d1fbd2ae9c47b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.1
|
Security for puan-client-db 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.