Skip to main content

Podman Runner for Styx compiled wrappers

Build codecov Ruff stability-stable MIT License pages

styxpodman is a Python package that provides Podman integration for Styx compiled wrappers. It allows you to run Styx functions within Podman containers, offering improved isolation and reproducibility for your workflows.

Installation

You can install styxpodman using pip:

pip install styxpodman

Usage

from styxdefs import set_global_runner
from styxpodman import PodmanRunner

# Initialize the PodmanRunner
runner = PodmanRunner()

# Set the global runner for Styx
set_global_runner(runner)

# Now you can use any Styx functions as usual, and they will run in Podman containers

Advanced Configuration

The PodmanRunner class accepts several parameters for advanced configuration:

  • image_overrides: A dictionary to override container image tags
  • podman_executable: Path to the Podman executable (default: "podman")
  • data_dir: Directory for temporary data storage
  • environ: Environment variables to set in the container

Example:

runner = PodmanRunner(
    image_overrides={"python:3.9": "my-custom-python:3.9"},
    podman_executable="/usr/local/bin/podman",
    data_dir="/tmp/styx_data",
    environ={"PYTHONPATH": "/app/lib"}
)

Error Handling

styxpodman provides a custom error class, StyxPodmanError, which is raised when a Podman execution fails. This error includes details about the return code, command arguments, and Podman arguments for easier debugging.

Contributing

Contributions to styxpodman are welcome! Please refer to the GitHub repository for information on how to contribute, report issues, or submit pull requests.

License

styxpodman is released under the MIT License. See the LICENSE file for details.

Documentation

For detailed API documentation, please visit our API Docs.

Support

If you encounter any issues or have questions, please open an issue on the GitHub repository.

Requirements

  • Python 3.10+
  • Podman installed and running on your system

Comparison with styxdocker

While styxdocker and styxpodman serve similar purposes, they have some key differences:

  • Container Technology: styxdocker uses Docker, while styxpodman uses Podman.

Choose the package that best fits your infrastructure and requirements.

Metadata

Release files for styxpodman 0.3.0

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

Source distribution (sdist)

Source distribution for styxpodman 0.3.0
File Size Uploaded Provenance
styxpodman-0.3.0.tar.gz 3.2 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 7.3 kB

Release files / styxpodman-0.3.0.tar.gz

Download URL styxpodman-0.3.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ea5781fb95f2489bdba22a1cb7abc8b3f6004e41a321e148afd941644506d029
BLAKE2b-256 checksum
How to use checksums
2e5a14d594ee1244e7763cb3ee125aefbada848a56077d6f1033a2d582d68be5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / styxpodman-0.3.0-py3-none-any.whl

Download URL styxpodman-0.3.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad312e4f30ced0916fb80ad32a64064d429e6c61b6d860119d6af012fbcdee9f
BLAKE2b-256 checksum
How to use checksums
5a830b9447de0a6efd86858fed9b9cbaf738c12799ca6b0fd8149b186630cda6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for styxpodman 0.3.0

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