Skip to main content

imaged

PyPI version Supported Python versions Build status ReadTheDocs status

imaged gives you one interface to docker, podman and Apple’s container. Start a container, speak to its standard streams, and be told what went wrong in terms you can branch on.

from imaged import Engine

engine = Engine.detect()

id = await engine.create_pulling_if_needed("alpine", "cat")
async with engine.start(id) as session:
    await session.send("hello")
    assert await session.receive() == "hello"

Why

Every engine reports the same failure differently, and none of them do so machine readably – not even over their HTTP APIs. Working out that an image simply doesn’t exist otherwise means matching on substrings of prose, separately for each engine. imaged does that once, and raises NoSuchImage.

Each engine is driven via its command line interface, which is the only mechanism all three have in common, as Apple’s container has no HTTP API at all. Doing so also leaves the engine to demultiplex container stdio onto real pipes, rather than leaving you to unpick its framing.

Containers get no networking unless you ask for it, on the theory that something you are running should have to say so before it can phone home.

anyio is the only async dependency, so this runs unmodified on both asyncio and trio. Its own test suite runs on both, against all three engines.

Metadata

Release files for imaged 2026.10.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 imaged 2026.10.1
File Size Uploaded
imaged-2026.10.1.tar.gz 44.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for imaged 2026.10.1
File Interpreter ABI Platform
imaged-2026.10.1-py3-none-any.whl Python 3 none any Details

Total release size: 63.0 kB

Release files / imaged-2026.10.1.tar.gz

Download URL imaged-2026.10.1.tar.gz
Size 44.9 kB
Tags Source
SHA-256 checksum
How to use checksums
be8c8eebac7e42be6ba65276e34b0956d949ce56571066645ac6651e0922323e
BLAKE2b-256 checksum
How to use checksums
3d4d93f2fb8a956414b5244ff12791d0280d1268058d212d17313ea6c0f67dca
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 10, 2026.

Transparency log

Release files / imaged-2026.10.1-py3-none-any.whl

Download URL imaged-2026.10.1-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b488da134880806db3de1fd2cce2b099bcca37a84bfec92423410666b9f8489
BLAKE2b-256 checksum
How to use checksums
94ecc7694c991f21583e7707adfaae26b35756fe209a5e161a82636e48debfdf
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 10, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2026.10.1 This release

2 release files

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