arx.native_packages

arx.native_packages

Source: packages/arx/src/arx/native_packages.py

title: Resolve native package metadata at the Arx host boundary.

Functions

package_path(root: Path, value: str, *, directory: bool=False) -> Path

title: Resolve a contained package file or directory, including symlinks.
parameters:
  root:
    type: Path
  value:
    type: str
  directory:
    type: bool
returns:
  type: Path

resolve_feature(name: str, config: NativeFeatureConfig, root: Path) -> NativeFeature

title: Convert validated configuration to resolved IRx native inputs.
parameters:
  name:
    type: str
  config:
    type: NativeFeatureConfig
  root:
    type: Path
returns:
  type: NativeFeature

native_project(manifest: Path) -> settings.ArxProject | None

title: Load native settings without changing legacy source-only manifests.
parameters:
  manifest:
    type: Path
returns:
  type: settings.ArxProject | None

prepare_module(module: astx.Module, key: str, origin: Path, *, manifest: Path | None=None, owner: str | None=None, package_name: str | None=None, source_root: Path | None=None) -> ParsedModule

title: Attach native capabilities only to a module's actual package origin.
parameters:
  module:
    type: astx.Module
  key:
    type: str
  origin:
    type: Path
  manifest:
    type: Path | None
  owner:
    type: str | None
  package_name:
    type: str | None
  source_root:
    type: Path | None
returns:
  type: ParsedModule
Back to top