Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document extracting data from text files that unformatted text #20

Open
yasonk opened this issue May 29, 2024 · 0 comments
Open

Document extracting data from text files that unformatted text #20

yasonk opened this issue May 29, 2024 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@yasonk
Copy link
Contributor

yasonk commented May 29, 2024

For the following pipeline:

- implementation: nodestream.pipeline.extractors:FileExtractor
  arguments:
    globs:
    - data/nodes.txt
- implementation: nodestream.interpreting:Interpreter
  arguments:
    interpretations:
    - type: source_node
      node_type: MyNdoe
      key:
        node_name: !regex
          regex: '^(?P<node_name>.*)'
          data: !jmespath 'line'
          group: node_name

Because the file ends with .txt, it will be extracted into an object that has the property named "line".
However, this feature is not documented.

@yasonk yasonk added the documentation Improvements or additions to documentation label May 29, 2024
@zprobst zprobst transferred this issue from nodestream-proj/nodestream Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants