Skip to main content

Official Python SDK for the Parmana Execution Trust Infrastructure.

Project description

# Parmana

**Proof of Human Authority in AI Systems**

[![PyPI](https://img.shields.io/pypi/v/parmana)](https://pypi.org/project/parmana/)

[![Python](https://img.shields.io/pypi/pyversions/parmana)](https://pypi.org/project/parmana/)

[![License](https://img.shields.io/pypi/l/parmana)](LICENSE)

The official Python SDK for the **Parmana Execution Trust Infrastructure**.

Parmana enables organizations to confidently deploy AI in high-impact workflows by ensuring that **only authorized actions are executed** and every execution is accompanied by cryptographically verifiable evidence.

---

# Why Parmana?

Modern AI systems can:

- plan

- reason

- call tools

- invoke APIs

- execute business workflows

But most AI systems cannot answer fundamental governance questions:

- Who authorized this execution?

- Which policy approved it?

- Was the execution verified?

- Can it be replayed?

- Can it be independently audited?

- Can compliance teams prove what happened?

Parmana solves this problem.

---

# Core Principle

**AI can propose actions.**

**Parmana authorizes execution.**

Only Parmana-approved actions are executed.

---

# Features

- Human Authority

- Execution Authorization

- Policy Validation

- Business Transactions

- Verification

- Execution Trust Records

- Cryptographic Receipts

- Deterministic Replay

- Audit Evidence

- Python SDK

- REST API

- TypeScript SDK

---

# Installation

pip install parmana

---

# Requirements

- Python 3.10+

- Parmana Runtime

---

# Quick Start

from parmana import ParmanaClient



client = ParmanaClient(

    endpoint="http://localhost:3000",

)



print(client.version)

---

# Runtime Health

status = client.health()



print(status)

---

# Execute a Business Transaction

from parmana import ParmanaClient

from parmana.models import \*



client = ParmanaClient(

    endpoint="http://localhost:3000",

)



transaction = BusinessTransaction(

    ...

)



trust\_record = client.execute(transaction)



print(trust\_record.trust\_record\_id)

---

# Verify an Execution

verification = client.verify(

    business\_transaction\_id,

)



print(verification.status)

---

# Replay an Execution

result = client.replay(

    business\_transaction\_id,

)



print(result.success)

---

# Generate a Receipt

receipt = client.receipt(

    business\_transaction\_id,

)



print(receipt.receipt\_hash)

---

# Retrieve a Business Transaction

transaction = client.transaction(

    business\_transaction\_id,

)

---

# Retrieve an Execution Trust Record

trust\_record = client.trust\_record(

    business\_transaction\_id,

)

---

# Execution Lifecycle

Business Transaction

        │

        ▼

Execution

        │

        ▼

Verification

        │

        ▼

Receipt

        │

        ▼

Execution Trust Record

---

# Core Concepts

## Authority

Represents the human or system authority responsible for authorizing execution.

---

## Authorization

Represents permission granted by an Authority.

---

## Intent

Represents the requested business action.

---

## Policy

Represents the versioned policy evaluated by the Runtime.

---

## Business Transaction

The canonical execution request submitted to the Runtime.

---

## Decision

Policy evaluation result.

---

## Execution

Represents the performed execution.

---

## Verification

Independent verification produced by the Runtime.

---

## Receipt

Cryptographic proof of execution.

---

## Execution Trust Record

The canonical execution artifact containing:

- Business Transaction

- Executions

- Verifications

- Receipts

- Trust Hash

---

# Architecture

Application

      │

      ▼

 Python SDK

      │

 REST API

      │

 Parmana Runtime

      │

 ├── Policy Engine

 ├── Verification

 ├── Replay

 ├── Receipt

 ├── Storage

 └── Crypto

---

# Public APIs

The SDK provides:

| API | Purpose |

|------|----------|

| Health | Runtime health |

| Execute | Execute Business Transactions |

| Verify | Verify executions |

| Replay | Deterministic replay |

| Receipt | Generate receipts |

| Transaction | Retrieve Business Transactions |

| Trust Record | Retrieve Execution Trust Records |

| Policy | Validate policies |

---

# Error Handling

Example:

from parmana.errors import NetworkError



try:

    client.health()



except NetworkError:

    print("Runtime unavailable")

---

# Deterministic Replay

Replay enables independent verification that an execution can be reproduced using the recorded execution evidence.

Replay never changes execution history.

---

# Security

Parmana provides:

- Human authorization

- Versioned policies

- Cryptographic receipts

- Replayable execution

- Tamper-evident trust records

- Audit evidence

---

# Documentation

Documentation:

https://docs.parmana.ai

---

# Repository

GitHub:

https://github.com/pavancharak/parmana

---

# Issues

https://github.com/pavancharak/parmana/issues

---

# Contributing

Issues and pull requests are welcome.

Please ensure:

- Tests pass

- Documentation is updated

- Public APIs remain backward compatible

---

# License

Apache License 2.0

---

# Learn More

- Documentation

- Runtime

- REST API

- Python SDK

- TypeScript SDK

- Examples

- Architecture

- Verification

- Replay

- Execution Trust Records

---

**Parmana**

**Proof of Human Authority in AI Systems**

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

parmana-1.0.2.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

parmana-1.0.2-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file parmana-1.0.2.tar.gz.

File metadata

  • Download URL: parmana-1.0.2.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for parmana-1.0.2.tar.gz
Algorithm Hash digest
SHA256 95738cc0f8cd8602aa60324a6af4b83ca30c930ce348d53a40c90796e06f72cb
MD5 07917b12490b7d1bdeb8940c823f42f1
BLAKE2b-256 e99bb0b45a4132d4e7410486a69d0334ae01972db276d8219ba2bb0c6cb34a83

See more details on using hashes here.

File details

Details for the file parmana-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: parmana-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for parmana-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d97d103acdfa4a1b454f3112dd2977340c7a05d3c44259c83eff2797b0fe6ab3
MD5 94b19268738841a7dce369e952c78508
BLAKE2b-256 cf89f9fefc2c6cae8a399fc0154848199c9ae07feafe7b288df0ee9e35ba01be

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