python-dxf is a Python module and command-line tool for storing and retrieving data in a Docker v2 registry. It functions as a Docker registry v2 client, enabling tasks like transferring Docker images between registries, especially useful for disconnected environments. The library creates payloads directly from the registry, which can be faster than `docker save` and `docker load`, and can compute diffs to reduce transfer size. The current version is 12.1.1 and it appears to be actively maintained.
pip install python-dxfVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize the `Dxf` client for a Docker registry, using environment variables for configuration. It shows the basic connection pattern. Actual registry operations (like listing repositories, pushing/pulling blobs or manifests) require specific API calls which might vary depending on the exact version and intended functionality. Ensure environment variables like `DXF_HOST`, `DXF_USERNAME`, and `DXF_PASSWORD` are set for authentication and host connection.
Be aware of this limitation and plan to generate Docker image configurations separately if `docker pull` compatibility is required. This library is primarily for raw registry interaction (blobs, manifests).
Always ensure the necessary `DXF_*` environment variables are correctly set for your target registry, or pass the corresponding arguments directly to the `Dxf` constructor if the API supports it in your version. For production, consider using a secure secrets management system.
No dependency data recorded yet.