Metadata-Version: 2.4
Name: bitspark-thesmos
Version: 1.0.0rc8
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Rust
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
License-File: LICENSE
License-File: NOTICE
Summary: The Spaces authority receiver for Python: verify a supplied proof under the frozen law, with Logos's Rust checker.
License-Expression: Apache-2.0
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Repository, https://github.com/Bitspark/thesmos

# thesmos for Python

The Spaces authority receiver: it verifies a supplied proof for a query the receiver
constructs, under the frozen law, revision 3. It is the Rust receiver (`core/rs`)
behind PyO3, so Python decides exactly as Rust, Go and TypeScript do. It runs no
search, network or clock.

```python
import thesmos

verifier = thesmos.Verifier.archon(configured_root)  # or Verifier(root, authenticate)
decision = verifier.verify(thesmos.Query(actor, space, statement), caller_proof)
if not decision.permitted:
    return  # the service performs its operation only after acceptance
```

Values are `thesmos.Value`, canonical Ontos values with `encode()` and
`Value.decode(...)`. See the repository README for the model.

