Skip to main content

vector-vrl

Vector's own VRL compiler and runtime, in your Python process.

Compile, check and run VRL, the language Vector transforms events with, through a compiled Python extension. There's no Vector binary to install and nothing to shell out to. 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.
  • Enrichment tables (CSV and GeoIP) and event secrets, the VRL functions Vector adds on top of the vrl crate.
  • 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, and the five decompressing functions (decode_gzip and its siblings) expand an event with no limit. Where the VRL or the events come 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 vector binary runners have none of these guards, so give them only VRL you trust. 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. Needs 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.16

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.16
File Actions
vector_vrl-1.0.16-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.16-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
vector_vrl-1.0.16-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.12 abi3 Linux glibc 2.17+ ARM64 Details for vector_vrl-1.0.16-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
vector_vrl-1.0.16-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for vector_vrl-1.0.16-cp312-abi3-macosx_11_0_arm64.whl
vector_vrl-1.0.16-cp312-abi3-macosx_10_12_x86_64.whl CPython 3.12 abi3 macOS 10.12+ x86-64 Details for vector_vrl-1.0.16-cp312-abi3-macosx_10_12_x86_64.whl

Total release size: 20.9 MB

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

Download URL vector_vrl-1.0.16-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
d3906a212bf710480bef28564f61afef89a4b13de4253beeacd173790a06b779
BLAKE2b-256 checksum
How to use checksums
a68237f03486a8690763915dcc0e2a16187d9edaad3806e2db61d9b60980a720
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","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.16-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL vector_vrl-1.0.16-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
c7dedb7f2ab81d8c7ba0fb1448bb07492d24138d36488d8e0ca978a5603bdf9e
BLAKE2b-256 checksum
How to use checksums
270694bdd4b974a3633529198f8ae98f84a860eb3b29bb89d0c51cdb7de99aeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","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.16-cp312-abi3-macosx_11_0_arm64.whl

Download URL vector_vrl-1.0.16-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
51fc0d541f3941da05aa401b38a8f549d9368dfc8e18aeaa20c166184f9cf8b8
BLAKE2b-256 checksum
How to use checksums
a709e9cf84ee84daf4ea8615f97c2541fb5f3841c7a5f8cb47e620cf4280c735
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","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.16-cp312-abi3-macosx_10_12_x86_64.whl

Download URL vector_vrl-1.0.16-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
73f4b4d523f317aa0e80e70f43a6ee5b46f48e83cf83cd60858adc4a9bb64d18
BLAKE2b-256 checksum
How to use checksums
c21654c21264ae312e6aa0dc374d21e450dca8e3b1020b29038fc252b3820083
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","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.16

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