fraudtwin.extensions#
Stable extension protocols and local entry-point discovery.
Status: Stable
Classes#
Port for a deterministic customer-behavior model. |
|
Port for deterministic observable-data mutations. |
|
Identity recorded in manifests for one installed extension. |
|
Explicit, deterministic registry of extension implementations. |
|
Port for a deterministic fraud-scenario implementation. |
|
Port for a chunk-aware output adapter. |
|
Port for a payment rail that preserves FraudTwin lifecycle semantics. |
Functions#
|
Load installed entry points in stable name order. |
Constants and protocols#
Name |
Reference |
|---|---|
|
|
Detailed API#
Stable extension contracts for FraudTwin.
Extensions are deliberately small ports. They describe the boundary between
the deterministic simulator and user-owned behavior; they do not provide a
second configuration system or a plugin runtime. Applications may register
implementations explicitly, while package distributions can expose the same
implementations through the fraudtwin.extensions entry-point group.
- class fraudtwin.extensions.BehaviorModel(*args, **kwargs)[source][source]
Bases:
ProtocolPort for a deterministic customer-behavior model.
- class fraudtwin.extensions.DataFaultInjector(*args, **kwargs)[source][source]
Bases:
ProtocolPort for deterministic observable-data mutations.
- class fraudtwin.extensions.ExtensionMetadata(extension_id, extension_version, distribution='local', distribution_version='local')[source][source]
Bases:
objectIdentity recorded in manifests for one installed extension.
- Parameters:
extension_id (str)
extension_version (str)
distribution (str)
distribution_version (str)
- class fraudtwin.extensions.ExtensionRegistry(extensions=())[source][source]
Bases:
objectExplicit, deterministic registry of extension implementations.
- Parameters:
extensions (Iterable[FraudScenario | PaymentRail | BehaviorModel | DataFaultInjector | OutputSink])
- class fraudtwin.extensions.FraudScenario(*args, **kwargs)[source][source]
Bases:
ProtocolPort for a deterministic fraud-scenario implementation.
- class fraudtwin.extensions.OutputSink(*args, **kwargs)[source][source]
Bases:
ProtocolPort for a chunk-aware output adapter.
- class fraudtwin.extensions.PaymentRail(*args, **kwargs)[source][source]
Bases:
ProtocolPort for a payment rail that preserves FraudTwin lifecycle semantics.
- fraudtwin.extensions.discover_extensions(*, group='fraudtwin.extensions')[source][source]
Load installed entry points in stable name order.
Entry points are loaded from the local environment only. A package must therefore be installed explicitly; configuration never executes an arbitrary import path or downloads code.
- Return type:
- Parameters:
group (str)