Home / Market / rez-python-api

rez-python-api

Rez Python API — ResolvedContext construction and inspection, Package/Variant objects, programmatic resolves, .rxt context serialisation and deserialisation, running commands inside a context, and the module entry points (rez.resolved_context, rez.packages, rez.config, rez.pip, rez.suite, rez.bundle_context). Use when the user wants to drive rez from Python instead of the CLI, or asks what a context object actually holds. Covers Rez 3.4.0.

skill★ 00 dlclawhubMIT-0Install in CosmosUpstream Source

Documentation & Preview

Description:

Guides developers using Rez 3.4.0 from Python to resolve packages, inspect contexts, save and load .rxt files, and run commands in resolved environments.

This skill is ready for commercial/non-commercial use.

Publisher:

loonghao

License/Terms of Use:

MIT-0

Use Case:

Developers and engineers use this skill for guidance on embedding Rez in Python, inspecting resolved packages and environments, persisting contexts, and choosing when to execute commands within them.

Deployment Geography for Use:

Global

Known Risks and Mitigations:

Risk: Following examples can execute commands in a resolved Rez environment or write .rxt context files.

Mitigation: Review package requests and output paths before running examples; inspect a context before executing commands.

Reference(s):

Skill Output:

Output Type(s): [Guidance, Code, Shell commands]

Output Format: [Markdown with Python and shell examples]

Output Parameters: [1D]

Other Properties Related to Output: [Guidance covers Rez 3.4.0; pin the Rez version because the Python API has no cross-version compatibility guarantee.]

Skill Version(s):

1.0.0 (source: ClawHub release metadata)

Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.