Skip to main content

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.

Release files for imaged 2026.7.4

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.7.4
File Size Uploaded
imaged-2026.7.4.tar.gz 43.9 kB Details

Built distribution (wheel)

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

Total release size: 61.1 kB

Release files / imaged-2026.7.4.tar.gz

Download URL imaged-2026.7.4.tar.gz
Size 43.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a2422229132718252a622dcfa233cbe23d22fde02300fdcec82b71ff7dc57760
BLAKE2b-256 checksum
How to use checksums
908751bc47e3d700f8c7dd5163fe34846602865e5df77454947636b52fe1b131
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.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 Jul 25, 2026.

Transparency log

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

Download URL imaged-2026.7.4-py3-none-any.whl
Size 17.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ab4cde8d0f2e0e55b502557183687833f7e1f8b15b695cb1665a82b719e970a
BLAKE2b-256 checksum
How to use checksums
c2363f3fc2d685a93672ee443998b5bf5c2ccd80ef5f39d5cd407c89851864c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.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 Jul 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2026.7.4 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