Skip to main content

A plugin for nodestream providing pipeline shell execution.

Project description

Nodestream Shell Plugin

This plugin provides a Nodestream shell extractor.

NOTE: This plugin is currently in development and is not yet ready for production use.

Installation

pip install nodestream-plugin-shell

For commands that return output in json format

# pipeline.yaml
- implementation: nodestream_plugin_shell:Shell
  arguments:
    command: curl
    arguments:
      - https://example.com/api/data/json
    options: 
      X: GET
      header: "Accept: application/json"
    ignore_stdout: false #Provide json output from command to next step in pipeline.

This would be equivalent to running:

curl https://example.com/api/data.json -X GET --header "Accept: application/json"

For commands that create files that you would like to read into the pipeline

Terminal command

# pipeline.yaml
- implementation: nodestream_plugin_shell:Shell
  arguments:
    command: curl
    arguments:
      - https://example.com/api/data.json
    options: 
      X: GET
      header: "Accept: application/json"
    flags: 
      - O
    ignore_stdout: true #Do not provide output from command to next step in pipeline.

- implementation: nodestream.pipeline.extractors:FileExtractor
  arguments:
    globs:
    - data.json

This would be equivalent to running:

curl https://example.com/api/data.json -X GET --header "Accept: application/json" -O
cat data.json

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

nodestream_plugin_shell-0.12.0rc1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file nodestream_plugin_shell-0.12.0rc1.tar.gz.

File metadata

File hashes

Hashes for nodestream_plugin_shell-0.12.0rc1.tar.gz
Algorithm Hash digest
SHA256 a3089e57e975e472eddabf9f9f9ed6d3edd6d810cb4777bd288d37930c779fd1
MD5 760e89ab744caec94d40986b3945af15
BLAKE2b-256 6be7e7ef698716337c256e9263527187b61924ec7c67bf1fcef7261c040e7b8c

See more details on using hashes here.

File details

Details for the file nodestream_plugin_shell-0.12.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for nodestream_plugin_shell-0.12.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 16434cbf8dc85d4a21c428c7d72e0c870dd25030683f407948693259f9298722
MD5 95364fd44d56df895bf22117c829c0b6
BLAKE2b-256 b6da3360b24b9f00af775c5700d632d9ce9704083381237a315230a71dcbbfc9

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