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.15.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

nodestream_plugin_shell-0.15.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file nodestream_plugin_shell-0.15.0.tar.gz.

File metadata

File hashes

Hashes for nodestream_plugin_shell-0.15.0.tar.gz
Algorithm Hash digest
SHA256 f5f113baa8a1f43958d892d07fda83b64086d7875268eb9810baa88e0ade4409
MD5 4d301be9ed7cb971cbc6ceb57b426192
BLAKE2b-256 3cf51fb0656461e0ca2f570e3051031d12c30e280760bf9caa2acfd2cd87d4a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for nodestream_plugin_shell-0.15.0.tar.gz:

Publisher: release.yaml on nodestream-proj/nodestream-plugin-shell

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nodestream_plugin_shell-0.15.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nodestream_plugin_shell-0.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f59fbe373be1e1d5ba46890d6472308b20fd19378e7110a6cc07eb7c667dac8
MD5 839da88e289eeaf37e23f7574dd872c6
BLAKE2b-256 99ca270747ec6f23593888cdfc6d1e50cc98593f3bc0e234d2e3d3967c818e6f

See more details on using hashes here.

Provenance

The following attestation bundles were made for nodestream_plugin_shell-0.15.0-py3-none-any.whl:

Publisher: release.yaml on nodestream-proj/nodestream-plugin-shell

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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