Skip to main content

Code Craft AI Interop - Hyper-V

The codecraftai-interop-hyperv package is the venue-specific client for Microsoft Hyper-V. The native automation surface for Hyper-V is PowerShell — the Hyper-V module cmdlets plus a small set of related modules — invoked remotely over WinRM. To stay aligned with the suite-wide “one transport per package” rule, this client speaks PowerShell exclusively, executed through an ICommandRunner from codecraftai-foundations; RestClientBase does not apply.

Highlights

  • HypervClient — the venue client driving Hyper-V PowerShell cmdlets; host capability and node enumeration.

  • Switch and disk management — virtual switch management (External / Internal / Private) and virtual disk (VHDX) management.

  • VM lifecycle — New/Start/Stop/Restart/Shutdown/Remove, hardware configuration (processors, memory, generation, secure boot), and virtual NIC/disk attach-detach. (Template / sysprep-from-VHDX provisioning is out of scope here and lives in codecraftai-provisioning/venues/hyperv.)

  • Checkpoints — checkpoint (snapshot) management. (Long-running background-job task handles such as import/export are not yet implemented; the current operations are synchronous.)

  • Aspects-driven transport — transport is ICommandRunner.run(["pwsh", ...]) over WinRM or SSH; the injected ICommandRunner carries the transport authentication, while HypervWinrmCredential describes the WinRM endpoint and auth material for callers that configure the runner; every behaviour-bearing call accepts aspects: AspectsRunner = DEFAULT_HYPERV_ASPECTS. Bounded waits delegate to codecraftai-foundations.

Repository Structure

  • development/ - Runtime environment scripts.

  • repository-setup/ - Repository homing and setup scripts.

  • source/packages/ccai/interop/hyperv/ - Package source code.

  • source/testroots/testbase/ccai/tests/interop/hyperv/ - TestBase test roots.

  • specs/ - Requirements, design, and task documentation (Kiro-style).

  • userguide/ - Standards, conventions, and documentation.

Environment Setup

When working in a Codex container:

./development/setup-agent-container

For local development:

./repository-setup/rehome-repository
./development/setup-environment

Running Tests

source .venv/bin/activate
testbase testing run --root ./source/testroots/testbase --includes=testbase.ccai.tests

Standards and Conventions

  • Naming conventions: userguide/10-02-naming-conventions.rst

  • Code organization: userguide/10-01-code-organization.rst

  • Coding standards: userguide/10-00-coding-standards.rst

Additional Resources

  • User guide entry point: userguide/userguide.rst

Metadata

Release files for codecraftai-interop-hyperv 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codecraftai-interop-hyperv 1.2.1
File Size Uploaded Provenance
codecraftai_interop_hyperv-1.2.1.tar.gz 26.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for codecraftai-interop-hyperv 1.2.1
File Interpreter ABI Platform
codecraftai_interop_hyperv-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 72.7 kB

Release files / codecraftai_interop_hyperv-1.2.1.tar.gz

Download URL codecraftai_interop_hyperv-1.2.1.tar.gz
Size 26.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bb7c3e039fad510b28bb644cb3be5008513124330255e18cad441333b312693a
BLAKE2b-256 checksum
How to use checksums
a6c7c44759880e880c48df709b7f11c0abe9ffb3fa18cf9acd25e9aa7a85b968
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Release files / codecraftai_interop_hyperv-1.2.1-py3-none-any.whl

Download URL codecraftai_interop_hyperv-1.2.1-py3-none-any.whl
Size 46.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
85c292f7255ec9c91eede1e2b6819ba6d7be6d5d717e54a2bbd085921f7b0e18
BLAKE2b-256 checksum
How to use checksums
8b1b9271fe87370cd4e12ea3b204731595fec7c3a2396c3f58fff02c6782610a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Security for codecraftai-interop-hyperv 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for codecraftai_interop_hyperv-1.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page