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.2.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.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: opentrustprotocol-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 f463c7405d2581850da0f61d8b77e835e4e7e98148b2df05c938af0480a83d4e
MD5 e6da96d306423313bfedad078e65775c
BLAKE2b-256 0b773b109ecc9ca818f042cf585e55f3316b5d0c95421820595d9268f1764e40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentrustprotocol-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c1561838f93b16bf09a0940533b75cef39568825668694bd921f0c29769d31c2
MD5 85e5fa5a7e1a3356158d9a337b53445f
BLAKE2b-256 280c4f65b3b55f9a0fae0606930de344fd0a211dc377f1f74533433aec59e03f

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