Skip to main content
All Python modules · Import and compatibility guidance

Exports

ActivatedExtension

One validated namespace module and its authored singleton.
Fields (— means no declared default):

Extension

Application-owned extension with task-local invocation context.

Extension.start

Initialize application-scoped resources after dependencies start.

Extension.stop

Release application-scoped resources before dependencies stop.

Extension.create_context

Adapt the managed invocation base to an extension-specific context.

Extension.context

Return the task-local extension context for the active invocation.

ExtensionContext

Revocable invocation base that extension-specific contexts may extend.

ExtensionContext.extension_name

Return the extension whose invocation authority this context carries.

ExtensionContext.active

Report whether the owning managed invocation is still active.

ExtensionContext.continuations

Return provider-bound suspension authority for this invocation.

ExtensionContextUnavailableError

An extension context was used outside its managed invocation.

ExtensionImportError

An authored extension module violates its export contract.

ExtensionNamespaceError

An extension namespace cannot be activated or safely released.

ExtensionStartContext

Application facts available while one same-process extension starts. The context deliberately excludes invocation credentials and framework storage authorities. Extensions may reuse only explicitly named application storage whose lifecycle Harnest has already started. Obtain this object from the owning Harnest API; its constructor includes runtime bindings. Fields (— means no declared default):

ExtensionStartContext.storage

Return one named custom store without exposing the registry.

ExtensionStartContext.continuations

Return provider-bound completion authority when explicitly declared.

activate_extensions

Activate a dependency-ordered extension set as one namespace transaction.

extension_mutation

Audit one exact durable operation after commit or on correlated failure.

extension_namespaces

Activate extensions for one bounded compiler or test operation.

release_extensions

Release one acquisition without disturbing a competing extension set.