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 eachremaptransform in a Vector config, YAML, TOML or JSON, and reports each by name. A transform reading its VRL fromfile:is listed as skipped, and one calling functions only Vector registers is listed as unchecked.validate_config_with_vector, which runsvector validateonce 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_lookupand 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
Vectorbatch 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.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| vector_vrl-1.0.14-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.14-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| vector_vrl-1.0.14-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl | CPython 3.12 | abi3 | Linux glibc 2.17+ ARM64 | Details for vector_vrl-1.0.14-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
| vector_vrl-1.0.14-cp312-abi3-macosx_11_0_arm64.whl | CPython 3.12 | abi3 | macOS 11.0+ ARM64 | Details for vector_vrl-1.0.14-cp312-abi3-macosx_11_0_arm64.whl |
| vector_vrl-1.0.14-cp312-abi3-macosx_10_12_x86_64.whl | CPython 3.12 | abi3 | macOS 10.12+ x86-64 | Details for vector_vrl-1.0.14-cp312-abi3-macosx_10_12_x86_64.whl |
Total release size: 20.9 MB
Release files / vector_vrl-1.0.14-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | vector_vrl-1.0.14-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 |
913806a93c89d4b3e9bf4f9f8f281ff8c8196f63f326c743626a0c2d73cdd1f8
|
|
BLAKE2b-256 checksum How to use checksums |
83f7481baf32c2f42b6e852ce336d0ecee9db6f8bcf9aa20299ff1eec7c4a5a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.14-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | vector_vrl-1.0.14-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 |
4528b9a48398573780cbb33cff3b4f686987b8a2b820f749a5b29bcab538b532
|
|
BLAKE2b-256 checksum How to use checksums |
246822c1aada37a3eccada2e0fd803d049edce3801e270f7ddba9ed10beaa079
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.14-cp312-abi3-macosx_11_0_arm64.whl
| Download URL | vector_vrl-1.0.14-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 |
c523ea4755d99e609a6a79d74457e5ec1b4422dc242f6ea2c4b3d570504066b4
|
|
BLAKE2b-256 checksum How to use checksums |
15a538664ade43921ec6bd2b5240d55140616abb6d42e719eae50ae86b8f761e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.14-cp312-abi3-macosx_10_12_x86_64.whl
| Download URL | vector_vrl-1.0.14-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 |
306ed95b8175bcae3cf224e70c249c4cd20824edbb49e87961b52b70b1dae234
|
|
BLAKE2b-256 checksum How to use checksums |
dd31934a1dfbfe17002ae7d30756632cb0e27dfc7f3577ac6f1176b3be8dba4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.14
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.