Skip to main content

Podman integration for Styx compiled wrappers.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

styxpodman-0.2.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

styxpodman-0.2.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file styxpodman-0.2.0.tar.gz.

File metadata

  • Download URL: styxpodman-0.2.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for styxpodman-0.2.0.tar.gz
Algorithm Hash digest
SHA256 695d0f0f2f0596608f2e06f30e73aa886e7a3305c33d4de99be27f6abc4b2dbb
MD5 8d62f3a8d6249f2865f5dcb08de6c276
BLAKE2b-256 1b9b35eaefc71f7be7920e61b7e598003d4c5e12625205a27db72094938cf7f1

See more details on using hashes here.

File details

Details for the file styxpodman-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: styxpodman-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for styxpodman-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2a7cf174c4d78ed5848e7ffe75ad5b50564e73b569f443bc4a9d5db61c96959
MD5 b4c1b9201ae1bf006a5c667539f5d937
BLAKE2b-256 df15d9c3fcba8185c76e92093a0d8c4b08175f4e2021314981fbf165e309acff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page