{"modulePath":"github.com/omry/reploy","version":"v0.0.0-20261126144734-e84d2fa35acf","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package python\n\n## Constants\n\n```go\nconst (\n\tRecipeVersion                = \"python-v3\"\n\tMaterializationRecipeVersion = \"python-materialize-v3\"\n\tInstallRoot                  = \"/opt/reploy/providers/python\"\n\tBundleMount                  = \"/reploy-bundle\"\n)\n```\n\n```go\nconst (\n\tProfileFactsSchemaV2        = \"python-profile-facts-v2\"\n\tConsoleScriptOutputSchemaV1 = \"python-console-script-v1\"\n)\n```\n\n```go\nconst (\n\tResolverInputDirectory        = \"/.reploy-resolver/input\"\n\tResolverOutputDirectory       = \"/.reploy-resolver/output\"\n\tResolverSourceConstraintsPath = ResolverInputDirectory + \"/reploy-source-constraints.txt\"\n)\n```\n\n```go\nconst (\n\tProviderRequestSchemaV1 = \"python-provider-request-v1\"\n\tBundleSchemaV1          = \"python-bundle-v1\"\n)\n```\n\n```go\nconst (\n\tSourceInputManifestSchemaV1 = \"python-source-input-manifest-v1\"\n\tSourceBuilderProfileV1      = \"python-uv-sdist-wheel-v1\"\n\tSourceBuilderProfileV2      = \"python-uv-local-recipe-v2\"\n\tSourceBuilderRequirementV1  = \"uv==0.11.26\"\n\tSourceBuildSettingsSchemaV1 = \"python-sdist-wheel-build-settings-v1\"\n\tSourceBuildSettingsSchemaV2 = \"python-local-recipe-build-settings-v2\"\n\tSourceMetadataSchemaV2      = \"python-source-metadata-v2\"\n\tSourceBuildTypePEP517       = \"pep517\"\n\tSourceBuildTypeLegacy       = \"setuptools-legacy\"\n)\n```\n\n```go\nconst (\n\tInterpreterFactsSchemaV2 = \"python-interpreter-facts-v2\"\n)\n```\n\n```go\nconst PackageRequestSchemaV1 = \"python-package-request-v1\"\n```\n\n```go\nconst PortableToolPythonProjectionSchemaV1 = \"portable-tool-python-projection-v1\"\n```\n\n```go\nconst ProviderName = \"python\"\n```\n\n## Functions\n\n```go\nfunc CanonicalBundleDataV1(component string, bundle PythonBundleV1) (providers.CanonicalProviderData, error)\n```\n\n```go\nfunc CanonicalInterpreterFactsV2(facts InterpreterInspectionFactsV2) providers.CanonicalProviderData\n```\n\n```go\nfunc CanonicalPackageRequestV1(requirement string) (providers.CanonicalPackageRequest, error)\n```\n\n```go\nfunc CanonicalPortableToolPythonProjectionBytesV1(projection PortableToolPythonProjectionV1) ([]byte, error)\n```\nCanonicalPortableToolPythonProjectionBytesV1 validates a projection and returns its deterministic canonical-json-v1 representation.\n\n```go\nfunc CanonicalProfileFactsV2(component string, sources []providers.ResolvedSourceInput) providers.CanonicalProviderData\n```\n\n```go\nfunc CanonicalProviderRequestV1(request PythonProviderRequestV1) (providers.CanonicalProviderRequest, error)\n```\n\n```go\nfunc CanonicalSourceBuildSettingsV1() providers.CanonicalProviderData\n```\n\n```go\nfunc CanonicalSourceBuildSettingsV2(\n\tbuildType string,\n\trecipeDigest canonical.Digest,\n) (providers.CanonicalProviderData, error)\n```\n\n```go\nfunc CanonicalSourceMetadataV2(\n\tmetadata SourceWheelMetadataV1,\n\tsourceArtifact providerstore.ArtifactDescriptor,\n) providers.CanonicalProviderData\n```\n\n```go\nfunc ComparePackageVersionsV1(left string, right string) (int, error)\n```\nComparePackageVersionsV1 compares valid PEP 440 versions.\n\n```go\nfunc FilterProviderRequestOverridesV1(\n\trequest providers.CanonicalProviderRequest,\n\tdistributions []string,\n) (providers.CanonicalProviderRequest, error)\n```\nFilterProviderRequestOverridesV1 returns the same request with override intent restricted to distributions in the completed component closure.\n\n```go\nfunc InspectPreparedWheelDistributionsV1(ctx context.Context, dir string) ([]string, error)\n```\nInspectPreparedWheelDistributionsV1 validates a resolver output directory and returns its unique normalized distributions without publishing it. This is used to discover which optional local overrides are actually part of the resolved closure before any local path is inspected.\n\n```go\nfunc InspectWheelDeclaredDependenciesReaderV1(reader io.ReaderAt, size int64, descriptor providerstore.ArtifactDescriptor, resolvedDistributions []string) ([]string, error)\n```\nInspectWheelDeclaredDependenciesReaderV1 inspects the exact descriptor-bound wheel. The caller owns reader and keeps it open through the call.\n\n```go\nfunc InspectWheelDeclaredDependenciesV1(filename string, resolvedDistributions []string) ([]string, error)\n```\nInspectWheelDeclaredDependenciesV1 reads the shared verified wheel inspection and returns only dependency names present in the resolved distribution set.\n\n```go\nfunc InterpreterInspectionArgv(executable string, testedTags []string, targetArchitecture string) ([]string, error)\n```\nInterpreterInspectionArgv returns the complete fixed V2 invocation used by a Python consumer to inspect the selected absolute interpreter. The tested tags and target architecture are validated argv data, never Python source.\n\n```go\nfunc InterpreterVersionSatisfies(constraint string, version string) (bool, error)\n```\nInterpreterVersionSatisfies evaluates the normalized release specifiers accepted for a Python interpreter requirement against an observed runtime version.\n\n```go\nfunc IntersectSupportedPythonClaimsV1(left, right []string) ([]string, error)\n```\n\n```go\nfunc IsolatedInterpreterCommandPrefixV2(executable string) ([]string, error)\n```\nIsolatedInterpreterCommandPrefixV2 is the one command prefix shared by interpreter inspection and ordinary pip resolution.\n\n```go\nfunc NewResolvedSourceInputV2(\n\tcomponent string,\n\tlogicalPackage string,\n\tsourceInputDigest canonical.Digest,\n\tsourceArtifact providerstore.ArtifactDescriptor,\n\tbuildEnvironmentDigest canonical.Digest,\n\toutputArtifact providerstore.ArtifactDescriptor,\n\tmetadata SourceWheelMetadataV1,\n) (providers.ResolvedSourceInput, error)\n```\nNewResolvedSourceInputV2 creates the path-free source record consumed by the common provider graph after the retained sdist and wheel have been inspected.\n\n```go\nfunc NewResolvedSourceInputWithBuildV2(\n\tcomponent string,\n\tlogicalPackage string,\n\tsourceInputDigest canonical.Digest,\n\tsourceArtifact providerstore.ArtifactDescriptor,\n\tbuildEnvironmentDigest canonical.Digest,\n\toutputArtifact providerstore.ArtifactDescriptor,\n\tmetadata SourceWheelMetadataV1,\n\tbuilderProfile string,\n\tbuildSettings providers.CanonicalProviderData,\n) (providers.ResolvedSourceInput, error)\n```\nNewResolvedSourceInputWithBuildV2 preserves the v2 common source record while allowing a selected project-owned recipe to bind its canonical build protocol and tool requirements into cache and lock identity.\n\n```go\nfunc NormalizeDistributionName(name string) string\n```\n\n```go\nfunc NormalizeSupportedPythonClaimsV1(values []string) ([]string, error)\n```\n\n```go\nfunc PackageRootCompatibilityUnprovenV1(err error) bool\n```\n\n```go\nfunc PackageRootDistributionNameV1(requirement string) (string, error)\n```\n\n```go\nfunc PackageRootRequirementsCompatibleV1(requirements []string) (bool, error)\n```\n\n```go\nfunc ProviderRequestDistributionsV1(request providers.CanonicalProviderRequest) ([]string, error)\n```\nProviderRequestDistributionsV1 returns the normalized direct distribution roots in one canonical Python provider request. It does not evaluate or resolve dependencies.\n\n```go\nfunc PythonRequiresPythonCoversClaimV1(requiresPython, claim string) (bool, error)\n```\nPythonRequiresPythonCoversClaimV1 proves that the canonical constraint admits every release in a series, or admits the exact release of a point claim. Series proofs are interval based and never enumerate patch numbers.\n\n```go\nfunc PythonRequiresPythonIntersectsClaimV1(requiresPython, claim string) (bool, error)\n```\nPythonRequiresPythonIntersectsClaimV1 answers the weaker, nonempty-overlap question used when validating an individual artifact.\n\n```go\nfunc RequirementDistributionName(requirement string) (string, error)\n```\nRequirementDistributionName returns the normalized distribution named by a validated Python requirement. It does not resolve or install the package.\n\n```go\nfunc RequirementProfileSelectedSourcesV2(profile providers.RequirementProfile) ([]providers.ResolvedSourceInput, error)\n```\nRequirementProfileSelectedSourcesV2 returns the selected local sources already bound into a validated Python profile.\n\n```go\nfunc RuntimeRootV1(component string) (string, error)\n```\nRuntimeRootV1 returns the deterministic, application-scoped Python runtime root. Short application identities retain their historical readable path. Long application identities use a full SHA-256 digest segment so the generated interpreter remains usable in a Linux direct shebang while the root remains unique and stable for the owning application identity.\n\n```go\nfunc SourceArtifactDescriptorV2(source providers.ResolvedSourceInput) (providerstore.ArtifactDescriptor, error)\n```\n\n```go\nfunc ValidateBundleV1(component string, bundle PythonBundleV1) error\n```\n\n```go\nfunc ValidateCanonicalPackageRequestV1(request providers.CanonicalPackageRequest) error\n```\n\n```go\nfunc ValidateCanonicalProviderRequestForComponentV1(component string, request providers.CanonicalProviderRequest) error\n```\n\n```go\nfunc ValidateCanonicalProviderRequestV1(request providers.CanonicalProviderRequest) error\n```\n\n```go\nfunc ValidateInterpreterVersionV1(value string) error\n```\nValidateInterpreterVersionV1 accepts the canonical major.minor or major.minor.patch release form used by portable binding compatibility lists.\n\n```go\nfunc ValidatePackageVersionV1(value string) error\n```\nValidatePackageVersionV1 accepts one exact Python distribution version. Parsing it here keeps provider-owned version syntax out of pip's constraint grammar and gives every caller the same PEP 440 contract.\n\n```go\nfunc ValidatePortableToolPythonBindingsV1(\n\tcomponent PortableToolPythonComponentV1,\n\tinterpreter providerapi.ExecutableEvidence,\n\tplatform blueprint.Platform,\n) error\n```\nValidatePortableToolPythonBindingsV1 is the pure pre-acquisition gate for one Python component. It consumes only canonical projection data and facts already observed from the selected interpreter; it performs no I/O and does not reconstruct pip's wheel-compatibility rules.\n\n```go\nfunc ValidatePortableToolWheelTagEnvelopeV1(tag, targetPlatform string) error\n```\nValidatePortableToolWheelTagEnvelopeV1 validates the bounded static tag forms admitted before interpreter inspection. Runtime membership remains owned by the selected interpreter's pip implementation.\n\n```go\nfunc ValidatePythonVersion(output string) error\n```\n\n```go\nfunc ValidateRequirementProfileV1(profile providers.RequirementProfile) error\n```\n\n```go\nfunc ValidateResolvedBundlePayloadV1(payload providers.ResolvedBundleIdentityV1) error\n```\n\n```go\nfunc ValidateResolvedSourceInputV2(source providers.ResolvedSourceInput) error\n```\n\n```go\nfunc ValidateSourceBuildIdentityV2(\n\tbuilderProfile string,\n\tbuildSettings providers.CanonicalProviderData,\n) error\n```\n\n```go\nfunc ValidateWheelConsoleScriptTargetV1(value string) error\n```\nValidateWheelConsoleScriptTargetV1 checks the PyPA module:object \\[extras] grammar without importing or executing the referenced object. Whitespace around the colon and extras delimiters is accepted by the entry-point format.\n\n```go\nfunc WheelFilenameRequirement(filename string) (string, bool)\n```\n\n```go\nfunc WheelResolverArgv(\n\tinterpreter string,\n\trequest providers.CanonicalProviderRequest,\n\tsources []providers.ResolvedSourceInput,\n\treusable []providerstore.ArtifactDescriptor,\n\tselected []PortableToolVerifiedWheelInputV1,\n) ([]string, error)\n```\nWheelResolverArgv returns the fixed one-shot pip recipe for the complete component wheel closure. Reusable wheels are candidates through find-links; local-source constraints make a candidate override the index only when its distribution is part of the requested closure.\n\n```go\nfunc WheelResolverSourceConstraints(\n\trequest providers.CanonicalProviderRequest,\n\tsources []providers.ResolvedSourceInput,\n\treusable []providerstore.ArtifactDescriptor,\n\tselected []PortableToolVerifiedWheelInputV1,\n) ([]byte, error)\n```\nWheelResolverSourceConstraints returns the complete deterministic contents of the resolver-owned constraints file. Each candidate remains optional, but if its distribution is selected pip must use this exact staged wheel.\n\n## Types\n\n```go\ntype ComponentProvider struct{}\n```\n\n```go\nfunc (ComponentProvider) Materialize(input providerapi.MaterializeInput) (providerapi.MaterializationTransaction, error)\n```\nMaterialize closes a verified Python bundle into the typed, offline recipe executed by the image backend. It describes the transaction only; it does not inspect the host store or run a container.\n\n```go\nfunc (ComponentProvider) Plan(input providerapi.PlanInput) ([]providerapi.NodeSpec, error)\n```\n\n```go\nfunc (ComponentProvider) RecipeVersion() string\n```\n\n```go\nfunc (ComponentProvider) Type() blueprint.ComponentType\n```\n\n```go\ntype InterpreterEvidenceResolver func(\n\tcontext.Context,\n\tproviderapi.ExecutableRequirement,\n\t[]providerapi.RealizedOutput,\n\tproviderapi.RealizedImageV1,\n\tblueprint.Platform,\n) (providerapi.ExecutableEvidence, error)\n```\nInterpreterEvidenceResolver validates one Python interpreter candidate against the exact image prefix and returns the consuming Python node's observed evidence. It must determine the runtime version rather than trust supplier metadata.\n\n```go\ntype InterpreterInspectionFactsV2 struct {\n\tVersion        string   `json:\"version\"`\n\tImplementation string   `json:\"implementation\"`\n\tABI            string   `json:\"abi\"`\n\tLibc           string   `json:\"libc\"`\n\tLibcMajor      string   `json:\"libc_major\"`\n\tLibcMinor      string   `json:\"libc_minor\"`\n\tTestedTags     []string `json:\"tested_tags\"`\n\tCompatibleTags []string `json:\"compatible_tags\"`\n}\n```\nInterpreterInspectionFactsV2 is the strict wire representation emitted by the fixed probe. Decimal release components are strings because canonical provider data does not contain numeric values.\n\n```go\nfunc DecodeInterpreterFactsV2(data providers.CanonicalProviderData) (InterpreterInspectionFactsV2, error)\n```\nDecodeInterpreterFactsV2 validates and decodes the complete interpreter evidence carried by Python profiles and bundles.\n\n```go\nfunc ParseInterpreterInspectionOutput(output []byte, expectedTestedTags []string) (InterpreterInspectionFactsV2, error)\n```\nParseInterpreterInspectionOutput strictly parses one complete probe JSON document and requires its tested set to equal the validated request.\n\n```go\ntype OrdinaryRequirementClaimV1 struct {\n\tDistribution string\n\tRoot         string\n\tSourceKind   string\n}\n```\nOrdinaryRequirementClaimV1 projects a canonical ordinary Python requirement into the bounded package-root compatibility model without losing source identity. A source without a provable wheel version has an empty Root; the caller must not treat that as an unconstrained package requirement.\n\n```go\nfunc ProjectOrdinaryRequirementClaimV1(requirement string) (OrdinaryRequirementClaimV1, error)\n```\n\n```go\ntype PortableToolExactWheelConstraintV1 struct {\n\tPlatform         string           `json:\"platform\"`\n\tFilename         string           `json:\"filename\"`\n\tDistribution     string           `json:\"distribution\"`\n\tEcosystemVersion string           `json:\"ecosystem_version\"`\n\tTags             []string         `json:\"tags\"`\n\tSize             string           `json:\"size\"`\n\tSHA256           canonical.Digest `json:\"sha256\"`\n\tRequiresPython   string           `json:\"requires_python\"`\n}\n```\nPortableToolExactWheelConstraintV1 carries identity and compatibility metadata only. It is not an index preference, path, or acquisition result.\n\n```go\ntype PortableToolPythonBindingV1 struct {\n\tScope                 string                                    `json:\"scope\"`\n\tComponent             string                                    `json:\"component\"`\n\tSelectedClosureDigest canonical.Digest                          `json:\"selected_closure_digest\"`\n\tDistribution          string                                    `json:\"distribution\"`\n\tContract              providerapi.PortableToolRecordReferenceV1 `json:\"contract\"`\n\tArtifact              providerapi.PortableToolRecordReferenceV1 `json:\"artifact\"`\n\tRequirements          []string                                  `json:\"requirements\"`\n\tSupportedPython       []string                                  `json:\"supported_python\"`\n\tSupportedTags         []string                                  `json:\"supported_tags\"`\n\tCLI                   portabletool.ToolExportV1                 `json:\"cli\"`\n\tWheel                 PortableToolExactWheelConstraintV1        `json:\"wheel\"`\n}\n```\n\n```go\ntype PortableToolPythonBindingVerificationInputV1 struct {\n\t// SelectedPlanEntry is the authoritative provider-neutral plan value from\n\t// which the projection was derived. Keeping it at this boundary prevents a\n\t// caller from changing all projected copies of scope, closure identity, or\n\t// selected record references together and having the self-consistent copies\n\t// accepted as an independently selected binding.\n\tSelectedPlanEntry providerapi.PortableToolPlanEntryV1\n\tComponent         PortableToolPythonComponentV1\n\tBinding           PortableToolPythonBindingV1\n\tContractRecord    providerapi.PortableToolSelectedRecordV1\n\tArtifactRecord    providerapi.PortableToolSelectedRecordV1\n\tInterpreter       providerapi.ExecutableEvidence\n\tDescriptor        providerstore.ArtifactDescriptor\n\tInspection        WheelInspectionV1\n}\n```\nPortableToolPythonBindingVerificationInputV1 joins the immutable values produced by the portable-tool projection, interpreter inspection, wheel acquisition, and wheel metadata inspection. Verification consumes this value only; it neither opens an artifact nor performs any other I/O.\n\nContractRecord and ArtifactRecord are retained as selected-record envelopes because the provider projection intentionally carries references rather than duplicating bundled-component declarations.\n\n```go\ntype PortableToolPythonBindingVerificationV1 struct {\n\tBinding              PortableToolPythonBindingV1\n\tDescriptor           providerstore.ArtifactDescriptor\n\tInspection           WheelInspectionV1\n\tEligibleFilenameTags []string\n\tConsoleScript        WheelConsoleScriptV1\n}\n```\nPortableToolPythonBindingVerificationV1 is the authenticated result of verifying one selected binding wheel. The selected script target and the eligible filename tags are observations derived from the exact wheel bytes; callers may carry them into resolver or lock inputs without reparsing the wheel or recomputing interpreter compatibility.\n\n```go\nfunc VerifyPortableToolPythonBindingV1(\n\tinput PortableToolPythonBindingVerificationInputV1,\n) (PortableToolPythonBindingVerificationV1, error)\n```\nVerifyPortableToolPythonBindingV1 verifies one selected projected binding against its exact selected records, interpreter evidence, acquired descriptor, and descriptor-authenticated wheel inspection.\n\n```go\ntype PortableToolPythonComponentV1 struct {\n\tComponent  string                        `json:\"component\"`\n\tTestedTags []string                      `json:\"tested_tags\"`\n\tBindings   []PortableToolPythonBindingV1 `json:\"bindings\"`\n}\n```\n\n```go\ntype PortableToolPythonProjectionV1 struct {\n\tSchema     string                          `json:\"schema\"`\n\tComponents []PortableToolPythonComponentV1 `json:\"components\"`\n}\n```\nPortableToolPythonProjectionV1 is the provider-owned sidecar produced before node planning. Exact portable artifacts remain runtime eligibility constraints, not package resolver preferences or acquisition results.\n\n```go\nfunc ProjectPortableToolPythonBindingsV1(\n\tplan providerapi.PortableToolPlanV1,\n\tcomponents []providerapi.ResolvedComponentRequestV1,\n) ([]providerapi.ResolvedComponentRequestV1, PortableToolPythonProjectionV1, error)\n```\nProjectPortableToolPythonBindingsV1 projects selected application-scoped binding records into fresh canonical component requests and a deterministic provider sidecar. Inputs are validated but never normalized in place.\n\n```go\ntype PortableToolPythonSelectedBindingV1 struct {\n\t// contains filtered or unexported fields\n}\n```\nPortableToolPythonSelectedBindingV1 is the construction-controlled join of one projected binding with its exact selected plan entry and records.\n\n```go\nfunc (binding *PortableToolPythonSelectedBindingV1) FreshWheel(\n\tmanifest, source providerapi.PortableToolSelectedRecordV1,\n\tinterpreter providerapi.ExecutableEvidence,\n) (*PortableToolPythonWheelHandoffV1, error)\n```\nFreshWheel derives the exact descriptor and transport source from the selected binding and its authenticated source record.\n\n```go\nfunc (binding *PortableToolPythonSelectedBindingV1) LockedWheel(\n\tmanifest providerapi.PortableToolSelectedRecordV1,\n\tacquisition providerapi.PortableToolArtifactAcquisitionLockV1,\n\tinterpreter providerapi.ExecutableEvidence,\n) (*PortableToolPythonWheelHandoffV1, error)\n```\nLockedWheel derives replay from the validated lock entry. The producer's locked mode only reopens verified store bytes and never acquires a network artifact.\n\n```go\nfunc (binding *PortableToolPythonSelectedBindingV1) PlanEntry() (providerapi.PortableToolPlanEntryV1, error)\n```\nPlanEntry returns a detached selected entry for the existing release and acquisition record lookups. The join itself is not repeated by callers.\n\n```go\ntype PortableToolPythonSelectionV1 struct {\n\t// contains filtered or unexported fields\n}\n```\nPortableToolPythonSelectionV1 owns a validated snapshot of the selected plan. Its projection is derived from that snapshot, not supplied as another independently mutable authority.\n\n```go\nfunc NewPortableToolPythonSelectionV1(plan providerapi.PortableToolPlanV1) (*PortableToolPythonSelectionV1, error)\n```\n\n```go\nfunc (selection *PortableToolPythonSelectionV1) Binding(componentName, distribution string) (*PortableToolPythonSelectedBindingV1, error)\n```\n\n```go\nfunc (selection *PortableToolPythonSelectionV1) Plan() (providerapi.PortableToolPlanV1, error)\n```\nPlan returns a detached view of the validated selected plan.\n\n```go\nfunc (selection *PortableToolPythonSelectionV1) Projection() (PortableToolPythonProjectionV1, error)\n```\nProjection returns a detached provider view. Mutating it cannot change the selected handoff or the bindings later resolved from it.\n\n```go\ntype PortableToolPythonVerifiedWheelHandoffV1 struct {\n\t// contains filtered or unexported fields\n}\n```\nPortableToolPythonVerifiedWheelHandoffV1 owns the wheel observation produced by acquisition, descriptor verification, inspection, and selected-binding verification. Callers only receive detached materialization and lock views.\n\n```go\nfunc ProducePortableToolPythonSelectedWheelsV1(\n\tctx context.Context,\n\tstore providerstore.Store,\n\tselection *PortableToolPythonSelectionV1,\n\tcomponentName string,\n\thandoffs []*PortableToolPythonWheelHandoffV1,\n) ([]PortableToolPythonVerifiedWheelHandoffV1, error)\n```\nProducePortableToolPythonSelectedWheelsV1 verifies complete coverage of one selected component before it lets the store perform any acquisition.\n\n```go\nfunc (verified PortableToolPythonVerifiedWheelHandoffV1) ArtifactAcquisitionInput() (providerapi.PortableToolArtifactAcquisitionInputV1, error)\n```\n\n```go\nfunc (verified PortableToolPythonVerifiedWheelHandoffV1) MaterializationInput() (PortableToolVerifiedWheelInputV1, error)\n```\n\n```go\ntype PortableToolPythonWheelHandoffV1 struct {\n\t// contains filtered or unexported fields\n}\n```\nPortableToolPythonWheelHandoffV1 freezes the selected binding and its authorized acquisition declaration before any store or network operation.\n\n```go\nfunc (handoff *PortableToolPythonWheelHandoffV1) MatchEmbeddedSource(\n\tdescriptor providerstore.ArtifactDescriptor, mirrors []string,\n) error\n```\nMatchEmbeddedSource checks the catalog's detached acquisition view against the authenticated source record without exposing a mutable request copy.\n\n```go\ntype PortableToolVerifiedWheelInputV1 struct {\n\tScope                 string\n\tTool                  string\n\tSelectedClosureDigest canonical.Digest\n\tContract              providerapi.PortableToolRecordReferenceV1\n\tArtifact              providerapi.PortableToolRecordReferenceV1\n\tDescriptor            providerstore.ArtifactDescriptor\n\tInspection            WheelInspectionV1\n\tEligibleFilenameTags  []string\n\tConsoleScript         WheelConsoleScriptV1\n\tSource                providerapi.PortableToolSelectedRecordV1\n\tProvenance            providerstore.AcquisitionProvenance\n}\n```\nPortableToolVerifiedWheelInputV1 is a detached, authenticated wheel input suitable for resolver staging and lock assembly. Its observations came from the exact descriptor-bound store file and are never inferred by executing wheel or bundled component content.\n\n```go\nfunc (input PortableToolVerifiedWheelInputV1) PortableToolArtifactAcquisitionInputV1() (providerapi.PortableToolArtifactAcquisitionInputV1, error)\n```\nPortableToolArtifactAcquisitionInputV1 converts a verified input into the existing lock-construction input. The source envelope must be present when assembling a lock; fresh callers that omitted SourceRecord can still use the verified input for resolver staging.\n\n```go\ntype PortableToolVerifiedWheelModeV1 string\n```\nPortableToolVerifiedWheelModeV1 selects whether the exact acquisition request is allowed to use the acquisition transport or must be satisfied from the deployment-local provider store.\n\n```go\nconst (\n\tPortableToolVerifiedWheelFreshV1        PortableToolVerifiedWheelModeV1 = \"fresh\"\n\tPortableToolVerifiedWheelLockedReplayV1 PortableToolVerifiedWheelModeV1 = \"locked-replay\"\n)\n```\n\n```go\ntype PythonBundleV1 struct {\n\tInterpreter providers.ExecutableEvidence\n\tScript      providerstore.ArtifactDescriptor\n\tWheels      []PythonWheelV1\n\tOutputs     []PythonConsoleScriptV1\n\tSources     []providers.ResolvedSourceInput\n}\n```\n\n```go\nfunc DecodeCanonicalBundleDataV1(component string, data providers.CanonicalProviderData) (PythonBundleV1, error)\n```\n\n```go\ntype PythonConsoleScriptV1 struct {\n\tName         string\n\tDistribution string\n\tEntryPoint   string\n\tPath         string\n}\n```\n\n```go\ntype PythonPackageOverrideV1 struct {\n\tDistribution string\n\tKind         string\n\tVersion      string\n}\n```\n\n```go\ntype PythonProviderRequestV1 struct {\n\tComponent    string\n\tInterpreter  blueprint.CommandRequirement\n\tRequirements []providers.CanonicalPackageRequest\n\tOverrides    []PythonPackageOverrideV1\n}\n```\n\n```go\ntype PythonWheelV1 struct {\n\tDistribution string\n\tVersion      string\n\tTags         []string\n\tArtifact     providerstore.ArtifactDescriptor\n}\n```\n\n```go\ntype SourceDistributionMetadataV1 struct {\n\tDistribution string\n\tVersion      string\n\tRoot         string\n}\n```\n\n```go\nfunc DescribeSourceDistributionFileV1(\n\tfilename string,\n\tlogicalPath string,\n) (providerstore.ArtifactDescriptor, SourceDistributionMetadataV1, error)\n```\nDescribeSourceDistributionFileV1 validates one closed PEP 517 source distribution and binds the same bytes to their provider-store descriptor.\n\n```go\nfunc ExtractSourceDistributionFileV1(filename string, destination string) (SourceDistributionMetadataV1, error)\n```\nExtractSourceDistributionFileV1 securely expands a previously validated sdist into an empty private directory. It never invokes tar from the host.\n\n```go\ntype SourceMetadataV2 struct {\n\tDistribution      string           `json:\"distribution\"`\n\tVersion           string           `json:\"version\"`\n\tTags              []string         `json:\"tags\"`\n\tSourceLogicalPath string           `json:\"source_logical_path\"`\n\tSourceKind        string           `json:\"source_kind\"`\n\tSourceSize        string           `json:\"source_size\"`\n\tSourceSHA256      canonical.Digest `json:\"source_sha256\"`\n}\n```\n\n```go\ntype SourceWheelMetadataV1 struct {\n\tDistribution string   `json:\"distribution\"`\n\tVersion      string   `json:\"version\"`\n\tTags         []string `json:\"tags\"`\n}\n```\n\n```go\nfunc DescribeSourceWheelFileV1(filename string, logicalPath string) (providerstore.ArtifactDescriptor, SourceWheelMetadataV1, error)\n```\nDescribeSourceWheelFileV1 reads normal wheel metadata and computes the descriptor that must be used to publish the same bytes.\n\n```go\nfunc InspectSourceWheelFileV1(filename string, descriptor providerstore.ArtifactDescriptor) (SourceWheelMetadataV1, error)\n```\nInspectSourceWheelFileV1 verifies the supplied descriptor before parsing any metadata from the same open file.\n\n```go\nfunc SourceWheelMetadataV2(source providers.ResolvedSourceInput) (SourceWheelMetadataV1, error)\n```\n\n```go\ntype WheelConsoleScriptV1 struct{ Name, Target string }\n```\n\n```go\ntype WheelInspectionV1 struct {\n\tArtifact                                        providerstore.ArtifactDescriptor\n\tDistribution, Version, RequiresPython, Filename string\n\tFilenameTags, InternalTags                      []string\n\tRootIsPurelib                                   bool\n\tConsoleScripts                                  []WheelConsoleScriptV1\n\tInventory                                       []WheelInventoryPathV1\n\tDeclaredDependencies                            []string\n}\n```\nWheelInspectionV1 contains only descriptor-authenticated observed wheel data. It makes no runtime eligibility or selected binding-contract decision.\n\n```go\nfunc InspectWheelReaderV1(ctx context.Context, reader io.ReaderAt, size int64, filename string, descriptor providerstore.ArtifactDescriptor) (WheelInspectionV1, error)\n```\nInspectWheelReaderV1 verifies the exact descriptor before opening any member. The caller owns the descriptor-stable reader for the duration of inspection.\n\n```go\ntype WheelInventoryPathV1 struct {\n\tPath             string\n\tKind             wheelinventory.Kind\n\tUncompressedSize uint64\n}\n```\n\n```go\ntype WheelNodeResolver struct {\n\tResolveInterpreter     InterpreterEvidenceResolver\n\tPrepareWheels          func(context.Context, providerapi.ResolveInput, providerapi.ExecutableEvidence) (string, error)\n\tSelectedPortableWheels []PortableToolVerifiedWheelInputV1\n}\n```\nWheelNodeResolver validates one interpreter, runs the backend-owned wheel resolver, and ingests its closed output into canonical provider records.\n\n```go\nfunc (resolver WheelNodeResolver) Resolve(\n\tctx context.Context,\n\tinput providerapi.ResolveInput,\n\tsink providerapi.ArtifactSink,\n) (providerapi.ResolveResult, error)\n```\n\n```go\nfunc (WheelNodeResolver) Type() blueprint.ComponentType\n```\n\n","path":"github.com/omry/reploy/internal/providers/python","name":"python","synopsis":"","isRedistributable":true}
