Skip to main content

vector-vrl

Vector's own VRL compiler and runtime, compiled into a Python extension. Compile, check and run VRL, the language Vector transforms events with, in your Python process, with no Vector binary to install and nothing to shell out to.

It is the same VRL compiler and runtime Vector uses. Two things differ from a Vector deployment: the host and network functions are not compiled in, and nested objects and arrays in an event come back as JSON strings.

What it gives you

  • validate_vrl, which compiles without running and returns a result rather than raising, so a broken transform fails your test suite instead of your pipeline.
  • execute_vrl, which compiles once and runs over a batch of events.
  • validate_config, which compiles the inline VRL of each remap transform in a Vector config, YAML, TOML or JSON, and reports each by name. A transform reading its VRL from file: is listed as skipped, and one calling functions only Vector registers is listed as unchecked.
  • validate_config_with_vector, which runs vector validate once for the full check of sources, sinks and wiring, where Vector is installed.
  • No host or network functions in the published wheel: get_env_var, get_hostname, http_request, dns_lookup and six more fail to compile.
  • VRL that nests brackets past 64 levels is refused before the parser sees it, so it cannot overflow the parser's stack and kill your process.
  • A Vector batch runner that keeps state and stats across calls, for VRL tooling, playgrounds and agent loops.

Example

uv add vector-vrl
from vector_vrl import execute_vrl, validate_vrl

vrl = """
parsed, err = parse_json(.message)
if err == null {
    .level = parsed.level
}
"""

execute_vrl(vrl, ['{"message": "{\\"level\\": \\"info\\"}"}'])
# [{'level': 'info', 'message': '{"level": "info"}'}]

validate_vrl(vrl).success
# True

Reading a YAML config needs vector-vrl[yaml]. TOML and JSON need nothing more.

The function and nesting guards do not bound memory. Where the VRL comes from someone who may be hostile, run it in a child process under a memory and a time limit, and treat a dead child as a refused program. The reasoning is at https://github.com/hyperi-io/vector-vrl/blob/main/docs/architecture.md.

Docs and source are at https://github.com/hyperi-io/vector-vrl, the API reference at https://github.com/hyperi-io/vector-vrl/blob/main/docs/reference-python-api.md. Requires Python 3.14 or later. Licensed Apache-2.0: https://github.com/hyperi-io/vector-vrl/blob/main/LICENSE.

Metadata

Release files for vector-vrl 1.0.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for vector-vrl 1.0.13
File Actions
vector_vrl-1.0.13-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.12 abi3 Linux glibc 2.17+ x86-64 Details for vector_vrl-1.0.13-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
vector_vrl-1.0.13-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.12 abi3 Linux glibc 2.17+ ARM64 Details for vector_vrl-1.0.13-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
vector_vrl-1.0.13-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for vector_vrl-1.0.13-cp312-abi3-macosx_11_0_arm64.whl
vector_vrl-1.0.13-cp312-abi3-macosx_10_12_x86_64.whl CPython 3.12 abi3 macOS 10.12+ x86-64 Details for vector_vrl-1.0.13-cp312-abi3-macosx_10_12_x86_64.whl

Total release size: 20.9 MB

Release files / vector_vrl-1.0.13-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL vector_vrl-1.0.13-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 5.5 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
e0a9d87c84a0e2558a91379d44dafe0a1bcb7486cb4fba157236f8356f98e2f7
BLAKE2b-256 checksum
How to use checksums
718fbf237d866afbe873f97bf4ba2f099f70e073126d392e1727492567b815c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / vector_vrl-1.0.13-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL vector_vrl-1.0.13-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 5.5 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
47bbf1cea609abd6158f4efa4262f349c62e49c73de1fdd4f6ad9f5149642375
BLAKE2b-256 checksum
How to use checksums
438c0f71e19774b48856e2332d8bbe1967c98d3fed520dacaa8c1c0b295cbdcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / vector_vrl-1.0.13-cp312-abi3-macosx_11_0_arm64.whl

Download URL vector_vrl-1.0.13-cp312-abi3-macosx_11_0_arm64.whl
Size 4.8 MB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
046c7e605787ff0cd7ce7a8b9a32fd4fe4ee2a4560bf856846c770cd85e25ec3
BLAKE2b-256 checksum
How to use checksums
91117bb4fd4268ba8ee52163fb4f013ee88bc29836ba4d1bf54d5266f26341d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / vector_vrl-1.0.13-cp312-abi3-macosx_10_12_x86_64.whl

Download URL vector_vrl-1.0.13-cp312-abi3-macosx_10_12_x86_64.whl
Size 5.1 MB
Tags CPython 3.12 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
ee21f3a80ca4daa9e19c553cd90338938f9a26a31b344fa2d38ed55b12f2256f
BLAKE2b-256 checksum
How to use checksums
2974f3481bcd5e9ba5715cc5f9c7532ceded68dfba8df873dbfb20bfe4a97451
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for vector-vrl 1.0.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page