Skip to main content

The official SDK for the OpenTrust Protocol, the open standard for auditable trust.

Project description

OpenTrust Protocol (OTP) SDK

The Open Standard for Auditable Trust. This is the official Python SDK for the OpenTrust Protocol (OTP). It enables developers to create, manipulate, and fuse Neutrosophic Judgments to build more transparent, robust, and auditable systems.

OTP transforms uncertainty from a "black box" into a measurable metric (T, I, F) with a complete audit trail (provenance_chain).

Official Website & Full Documentation: https://opentrustprotocol.com

Scientific Foundation: https://neutrosofia.com

Installationpip install opentrustprotocol

Quick StartStart using OTP in just a few lines of code.from otp import NeutrosophicJudgment, fuse

1. Create Neutrosophic Judgments from your evidence

Source 1: An AI model's confidence score

judgment_from_model = NeutrosophicJudgment( T=0.85, I=0.15, F=0.0, provenance_chain=[{ "source_id": "model-text-bison-v1.2", "timestamp": "2025-09-20T20:30:00Z" }] )

Source 2: A human expert's verdict

judgment_from_expert = NeutrosophicJudgment( T=0.7, I=0.1, F=0.2, provenance_chain=[{ "source_id": "expert-auditor-jane-doe", "timestamp": "2025-09-20T20:32:15Z" }] )

2. Fuse the evidence to get an auditable conclusion

We use the standard, conflict-aware operator.

We give more weight to the human expert (60%) than the model (40%).

fused_judgment = fuse.conflict_aware_weighted_average( judgments=[judgment_from_model, judgment_from_expert], weights=[0.4, 0.6] )

3. Analyze the result and its audit trail

print(f"Fused Judgment: {fused_judgment}")

Fused Judgment: NeutrosophicJudgment(T=0.76, I=0.12, F=0.12)

The provenance_chain now contains the full history

print("\nComplete Audit Trail:") for entry in fused_judgment.provenance_chain: print(f"- {entry}")

- {'source_id': 'model-text-bison-v1.2', ...}

- {'source_id': 'expert-auditor-jane-doe', ...}

- {'operator_id': 'otp-cawa-v1.1', ...}

What's Next?Visit the Technical Guide to learn about all available fusion operators.Explore the Practical Guide for advanced examples of data mapping.Contribute to the project on GitHub.

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

opentrustprotocol-1.0.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

opentrustprotocol-1.0.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file opentrustprotocol-1.0.1.tar.gz.

File metadata

  • Download URL: opentrustprotocol-1.0.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for opentrustprotocol-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a127cf276cadee0717778aa44954028e32d648e2418a48de3b1441f54c0b3399
MD5 0f87755123367b0822ccde377d7e5622
BLAKE2b-256 65d65d654c0e0efc6d4875cf483a588aa39ddeb442b8a2392737ade0af8693ad

See more details on using hashes here.

File details

Details for the file opentrustprotocol-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for opentrustprotocol-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 424fb0d47936a964fcb3ab053833009d4077edfbf99d4e89f6314749e9d4c19c
MD5 b25c4b99a9bcd3a3780f72167a441383
BLAKE2b-256 3e0ab7feb4a9f3dbaf35186a32bb3f028654ff1f4cb94051e79c8ab844b4b5e5

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