Nodestream

Latest version: v0.13.2

Safety actively analyzes 663899 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 8 of 13

0.10.2

What's Changed

0.10.1

What's Changed

`SwitchTransformer` by angelosantos4 in https://github.com/nodestream-proj/nodestream/pull/202

Switch transformers allow for the manipulation of records that do not arrive in the same format but can be distinguished by a consistent value.

Example:

yaml
- implementation: nodestream.transformers:SwitchTransformer
arguments:
switch_on: !jmespath "type"
cases:
multiple:
implementation: nodestream.transformers:ValueProjection
arguments:
projection: !jmespath "values[*]"
additional_values:
type: !jmespath "type"


Given these inputs:

json
{"type": "single", "value": "1"}
{"type": "multiple", "values": {"value": "2", "value": "3", "value": "4"}}


Produces these output records:

json
{"type": "single", "value": "1"}
{"type": "multiple", "value": "2"}
{"type": "multiple", "value": "3"}
{"type": "multiple", "value": "4"}


Normalize `ValueProvider` by zprobst in https://github.com/nodestream-proj/nodestream/pull/201

Connects Normalizers through so they can be conditionally executed on a per-field basis with a `ValueProvider`.

For example, if you wanted to normalize the `city` field of the record but not the `state` field:

json
{
"city": "New York ",
"state": "NY"
}


The following interpretation would create a `Locality` node with the keys of `New York` and `NY`:

yaml
- implementation: nodestream.interpreting:Interpreter
arguments:
interpretations:
- type: source_node
node_type: Locality
key:
city: !normalize
using: trim_whitespace
data: !jmespath city
state: !jmespath state


**Full Changelog**: https://github.com/nodestream-proj/nodestream/compare/0.10.0...0.10.1

0.10.0

What's Changed

Delay Evaluation of Arguments zprobst

Argument Resolvers such as `!env` and `!config` now are no longer evaluated as soon as the file is loaded. Instead, Files are loaded and the values of these resolvers are not loaded until they are need. In the case of Project files, that is when the configuration is required in order to initialize a pipeline by referencing a `config` or`target`. For pipeline files, the arguments will only be resolved if the step that references the argument is actually required to be loaded. For example, a step that is excluded due to the provided annotations at run time will not resolve arguments.

See https://github.com/nodestream-proj/nodestream/pull/178 and https://github.com/nodestream-proj/nodestream/pull/182 for details

New Hooks in `ProjectPlugin`s by zprobst

In addition to the `activate` method previously supported by project plugins can optionally implement the following lifecycle methods:

* `def before_project_load(self, file_path: Path) -> None`
* `def after_project_load(self, project: Project) -> None`

See https://github.com/nodestream-proj/nodestream/pull/178 for more details

Redesigned Plugin Configuration by grantleehoffman

Plugins are now configured like so:

yaml
nodestream.yaml
plugins:
- name: myPlugin
config:
service_base_url: "https://mytestpluginapi.com"
service_username: !env MY_TEST_PLUGIN_USERNAME
service_password: !env MY_TEST_PLUGIN_PASSWORD
targets:
- target1
- target2
- name: otherPlugin
config:
service_base_url: "https://otherurl.com"
targets:
- target1
- target2


This change allows plugins to be scoped to targets directly through configuration as well as provide the previously supported configuration in a more ergonomic manner.

See https://github.com/nodestream-proj/nodestream/pull/179 for more details

Fixes
* Don't Destroy Users Project When Using `nodestream scaffold` and `nodestream remove` by zprobst in https://github.com/nodestream-proj/nodestream/pull/189
* Increase Interpreting Performance by Decreasing dict Allocations by zprobst in https://github.com/nodestream-proj/nodestream/pull/195

**Full Changelog**: https://github.com/nodestream-proj/nodestream/compare/0.9.5...0.10.0

0.9.1

What's Changed

0.9.0

What's Changed
* Add the ability to CREATE relationships by zprobst in https://github.com/nodestream-proj/nodestream/pull/141
* Add regex filter by grantleehoffman in https://github.com/nodestream-proj/nodestream/pull/163
* Implement Copy Command And Associated Internals. by zprobst in https://github.com/nodestream-proj/nodestream/pull/162
* Copy feature development by zprobst in https://github.com/nodestream-proj/nodestream/pull/164


**Full Changelog**: https://github.com/nodestream-proj/nodestream/compare/0.8.20...0.9.0

0.8.20

What's Changed

Page 8 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.