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.12

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

Total release size: 20.8 MB

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

Download URL vector_vrl-1.0.12-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
6f7ab8d880199dbc7ed3ce9c73abdb9030d3004fa4ef41604399e0dc7a7b5777
BLAKE2b-256 checksum
How to use checksums
7433b533cd91d893936defd231af3899d90b0f8163ff5be978e99d7b0a57dd91
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.12-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL vector_vrl-1.0.12-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 5.4 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
ac76696784d797da1dcfbee585b8ed33755e2dfaee106f2c5c6e2f5453309375
BLAKE2b-256 checksum
How to use checksums
bb9066e26be5bd1c8b8ead0c3486984b536d5850ff46092725a29f6fcc55363e
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.12-cp312-abi3-macosx_11_0_arm64.whl

Download URL vector_vrl-1.0.12-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
30061f7e521d63678b95bfe253891444c7126f6197851141aca13a2e5629e896
BLAKE2b-256 checksum
How to use checksums
4bf2ec3c8d892defb94e1f1ee77f69ce8139ad79241eb036aaafc3a71ce5e739
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.12-cp312-abi3-macosx_10_12_x86_64.whl

Download URL vector_vrl-1.0.12-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
a0f0c2e9ca93c8569c38a5a2ace31e685de88294e63c09c3d3e879a0b8dd25a6
BLAKE2b-256 checksum
How to use checksums
9362c14924ccf2b5b225402049c84a16ceb71c55b55684398e7edfc46a8560ab
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.12

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