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.2.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.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zoe-utils-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 d98567d24084e91b669c13b9a257243411d2cd0a17aa4363b594be5801184623
MD5 883027538af38b494c8b9d4d482f6797
BLAKE2b-256 79cfa235de376fc30a42b5dd22a9934a67d29473d58f9f60beb3eb0f214898b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zoe_utils-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2c5e414ff71447526fecf1d4c601c99a4104ac6055bd2bfef34a28606a21341a
MD5 d0ad76333e80a814be81f1a72de8bf12
BLAKE2b-256 67ef9038f2b294bd09af61d58c2ec2f064754fa29e7be354d3ec84c6debf883c

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