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

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

Total release size: 20.8 MB

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

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

Download URL vector_vrl-1.0.15-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
c73025ab4fb2792e72cf35ed51fb56c3443de7bf6c7c9f80ac0ff3b32cf757f5
BLAKE2b-256 checksum
How to use checksums
1772c2bcf06be6eaf45580f52d7787bf959522e74f9dc953d1fc20ada3076dbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.15-cp312-abi3-macosx_11_0_arm64.whl

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

Download URL vector_vrl-1.0.15-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
57bbe03d3ca5eb0c26f5958400779dab9f92f047a6f2c4bcb957aa152a816ec7
BLAKE2b-256 checksum
How to use checksums
4d4249e2a4926d6a94b48ab58802c54a17253b5ee2271c653a14659171bde550
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.15

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