pyvrl 0.0.2

Last updated:

0 purchases

pyvrl 0.0.2 Image
pyvrl 0.0.2 Images
Add to Cart

Description:

pyvrl 0.0.2

pyVRL
Exposes Vector VRL to Python for fast, simple & unified transforms
Installation
pip install pyVRL
Use
Create an instance of pyvrl.Transform using the VRL program as the sole argument
Apply the program to data with the object's remap function
>>> from pyvrl import Transform
>>> data: dict = {"x": "foo"}
>>> vrl_program = '''
... .y = "bar"
... .x = upcase!(.x)
... .z = uuid_v7()
... .
... '''
>>> transform = Transform(vrl_program)
>>> output = transform.remap(data)
>>> print(output)
{'x': 'FOO', 'y': 'bar', 'z': '018f79d0-812b-7f90-bc74-85042e23db44'}

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.