Skip to main content

A Zeo utility library for working with Prefect

Project description

Overview

This library provides a utility class ShellTask to execute shell commands in a subprocess. It captures the output and errors, logs the output line by line, and raises an exception if the command fails.

Installation

To use this utility, you need to have Python installed on your system. And install it via Pip.

Usage

ShellTask Class

The ShellTask class is designed to run shell commands and handle their output and errors.

Initialization

To create an instance of ShellTask, you need to pass the shell command as a string to the constructor and execute method 'run()'

from shell_utils import ShellTask

command = "ls -la"
task = ShellTask(command).run()

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request with your changes.

Contact

For any questions or suggestions, please open an issue on the GitHub repository.

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

zoe-utils-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

zoe_utils-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file zoe-utils-0.1.0.tar.gz.

File metadata

  • Download URL: zoe-utils-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for zoe-utils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 09591770260b32fed299632521fdbe125a2aecb19012f969850f38ac649c8124
MD5 d903dde48b5aafec070116d135ea4c61
BLAKE2b-256 a229f157fde6a6f52c6d491ff30c776aad7fc8df4ae1ee1be1a5a0ef58517b08

See more details on using hashes here.

File details

Details for the file zoe_utils-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: zoe_utils-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for zoe_utils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75722d5390c4a3498fe7329667e0d516ebbd911c067605b7e14f4ea46cfe5668
MD5 4cb77e4f8be450cd03629df94977c423
BLAKE2b-256 8d8a89681a4ca4ea5548894f84b662aae1bbcae622fb83113c56be5cc5f836d8

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