Skip to main content

Prefect tasks and subflows for interacting with shell commands.

Project description

prefect-shell

Welcome!

prefect-shell is a collection of prebuilt Prefect tasks that can be used to quickly construct Prefect flows.

Getting Started

Python setup

Requires an installation of Python 3.7+.

We recommend using a Python virtual environment manager such as pipenv, conda or virtualenv.

These tasks are designed to work with Prefect 2.0. For more information about how to use Prefect, please refer to the Prefect documentation.

Installation

Install prefect-shell with pip:

pip install prefect-shell

Write and run a flow

from prefect import flow
from prefect_shell import shell_run_command

@flow
def example_shell_run_command_flow():
    return shell_run_command(command="ls .", return_all=True)

example_shell_run_command_flow()

Resources

If you encounter and bugs while using prefect-shell, feel free to open an issue in the prefect-shell repository.

If you have any questions or issues while using prefect-shell, you can find help in either the Prefect Discourse forum or the Prefect Slack community.

Development

If you'd like to install a version of prefect-shell for development, clone the repository and perform an editable install with pip:

git clone https://github.com/PrefectHQ/prefect-shell.git

cd prefect-shell/

pip install -e ".[dev]"

# Install linting pre-commit hooks
pre-commit install

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

prefect-shell-0.1.1.tar.gz (25.1 kB view details)

Uploaded Source

Built Distribution

prefect_shell-0.1.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file prefect-shell-0.1.1.tar.gz.

File metadata

  • Download URL: prefect-shell-0.1.1.tar.gz
  • Upload date:
  • Size: 25.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for prefect-shell-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c0efba8701ebcb8c7f0817de6025c31f0cf1291f61d150faaf31fe8e10ce3d8f
MD5 63a5b8d6c9548d33701ea90a224cae9f
BLAKE2b-256 23049ebb97ca10d780a79c4f00c1ff70f5451129262d427bd2a55ffc3fedd059

See more details on using hashes here.

File details

Details for the file prefect_shell-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for prefect_shell-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 08ba5833a0486c92eb8cd374bd5081afd8ae67d961b0f571ea53a107b4105987
MD5 614eccf422e2256ebbc8d77e5e028dbd
BLAKE2b-256 3f12ed3d83e1f9ff4431c373024682998870402851fe867302721f5a447070c0

See more details on using hashes here.

Supported by

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