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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nodestream_plugin_shell-0.13.0b1.tar.gz
.
File metadata
- Download URL: nodestream_plugin_shell-0.13.0b1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c3bd89c27604f13ec23c2e1cd3c1d0ef67db77aa96c08ddad65881f78af19cf |
|
MD5 | fd612740129cddbf4894c2ceb1040da2 |
|
BLAKE2b-256 | 0a6a4d9fe3682bda640ed865cbea49803488d6465c8dfbaff2b4b1f6614ad44e |
File details
Details for the file nodestream_plugin_shell-0.13.0b1-py3-none-any.whl
.
File metadata
- Download URL: nodestream_plugin_shell-0.13.0b1-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5f28d125c8819f74a163397cb79f073fbe031f68923550484085ec0817aebaa |
|
MD5 | 8a9aa8b32b7818bbea08ed067bd9f72d |
|
BLAKE2b-256 | 34cf941ba543c95957e57c3a8e8f5882461fc4030406c1dedd7f03da384e2fff |