Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

dockpy-sdk

Pure Python Docker SDK with async operations and direct Docker Engine API access.

Installation

pip install dockpy-sdk

Features

  • Async/Await: Built on asyncio and httpx
  • Direct API: No subprocess calls, pure HTTP/Unix socket
  • Container Management: Create, start, stop, logs, inspect, and more
  • Image Management: Pull, push, build, tag, remove, and more
  • Type Safe: 100% type hints with mypy support
  • Well Tested: Comprehensive test coverage

Quick Start

from dockpysdk.client import AsyncDockerClient

async def main():
    async with AsyncDockerClient() as client:
        # List containers
        containers = await client.containers.list()
        for container in containers:
            print(f"{container.id}: {container.name}")

import asyncio
asyncio.run(main())

Container Operations

# Create and run a container
container = await client.containers.create(
    "nginx:latest",
    name="my-web-server"
)
await container.start()

# Get logs
logs = await client.containers.logs(container.id)

# Stop and remove
await container.stop()
await container.remove()

Image Operations

# Pull image
image = await client.images.pull("python:3.10")

# List images
images = await client.images.list()

# Build image
async for line in await client.images.build(dockerfile="Dockerfile"):
    print(line)

Documentation

See the main repository for full documentation.

License

Apache License 2.0 - See LICENSE file for details.

Metadata

Release files for dockpy-sdk 0.0.1rc5

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

Source distribution (sdist)

Source distribution for dockpy-sdk 0.0.1rc5
File Size Uploaded Provenance Actions
dockpy_sdk-0.0.1rc5.tar.gz 39.5 kB Without provenance Details for dockpy_sdk-0.0.1rc5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dockpy-sdk 0.0.1rc5
File Interpreter ABI Platform Actions
dockpy_sdk-0.0.1rc5-py3-none-any.whl Python 3 none any Details for dockpy_sdk-0.0.1rc5-py3-none-any.whl

Total release size: 86.8 kB

Release files / dockpy_sdk-0.0.1rc5.tar.gz

Download URL dockpy_sdk-0.0.1rc5.tar.gz
Size 39.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ad19c325b048a76960a4295925c7867559c24b78761ca245c38108021c0a6e51
BLAKE2b-256 checksum
How to use checksums
2d656dec3989c364381530021cdc77f9c6480a62b8aaf5e4a6ad4a8d65bbabc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / dockpy_sdk-0.0.1rc5-py3-none-any.whl

Download URL dockpy_sdk-0.0.1rc5-py3-none-any.whl
Size 47.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2d6022efb1902e52612cc0a1466248eaaf576124049d1bdbe61714b5600db7e
BLAKE2b-256 checksum
How to use checksums
18af067c2f2772e5481a251bba524c23d7196483db15d5286e2bbc973c32cb5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for dockpy-sdk 0.0.1rc5

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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