Skip to main content

DataWeave OSS

A DataWeave data transformation runtime with a Rust-native engine package, python and WASM , providing powerful data transformation capabilities without requiring the JVM.

Install from PyPI:

uv add dataweave-py

or

pip install dataweave-py

Install the terminal command with uv:

uv tool install dataweave-py
dw run '%dw 2.0\noutput application/json\n---\n{message: upper(payload.name)}' --payload '{"name":"dw"}'

DataWeave Playground

DataWeave Playground For the best DataWeave Playground a without payload size limits DataWeave Playground, visit: https://dataweavelang.org

Optional extras:

# pandas helpers (DataFrame/Series input normalization)
pip install "dataweave-py[pandas]"

# pydantic helpers
pip install "dataweave-py[pydantic]"

# everything
pip install "dataweave-py[full]"

Overview

DataWeave-Py (dwpy) is a Python-facing interpreter for the DataWeave language, originally developed by MuleSoft for data transformation in the Mule runtime. The runtime is migrating to a Rust core while preserving the existing Python API, enabling:

  • Data transformation: Convert between JSON, XML, CSV and other formats
  • Functional programming: Leverage map, filter, reduce, and other functional operators
  • Pattern matching: Use powerful match expressions with guards and bindings
  • Safe navigation: Handle null values gracefully with null-safe operators
  • Rich built-ins: Access 100+ built-in functions for strings, numbers, dates, arrays, and objects

Requirements

  • Python 3.10 or higher
  • Rust stable toolchain with cargo
  • Node.js, npm, wasm-pack, and the wasm32-unknown-unknown target for the WASM backend
  • Dependencies managed via uv (recommended) or pip

Rust Engine And Python Bridge

The default runtime path is the Rust engine exposed through the Python package as dwpy._dwpy_rust. The legacy Python interpreter is still available as an explicit fallback backend.

Build and install the Rust-backed Python bridge into the local virtual environment:

uv venv --python 3.12
source .venv/bin/activate
UV_CACHE_DIR=.uv-cache uv run maturin develop --release

Run the Python-packaged CLI from the current checkout:

uv tool install .
dw run '%dw 2.0\noutput application/python\n---\n{message: upper(payload.name)}' --payload '{"name":"dw"}'

Or run it without installing globally:

uvx --from . dw run '%dw 2.0\noutput application/json\n---\npayload' --payload '{"name":"dw"}'

Run the standalone native Rust binary:

cargo run -p dwpy-cli -- run '%dw 2.0\noutput application/json\n---\npayload' --payload '{"name":"dw"}'

Rust embedders can compile once and execute repeatedly. Lazy collection pipelines are enabled by default, and materializing a lazy result is limited to 256 MiB unless the caller supplies a different budget:

use dwpy_core::{compile, ExecutionOptions};
use serde_json::Value;

let script = compile(
    "%dw 2.0\noutput application/json\n---\n\
     1 to 1000000 reduce ((item, accum = 0) -> item + accum)",
)?;
let result = script.execute(Value::Null, None, &ExecutionOptions::default())?;
assert_eq!(result, Value::String("500000500000".to_string()));

// Render directly to any std::io::Write sink. Streaming sink failures are
// non-atomic and may leave a valid output prefix in the writer.
let mut bytes = Vec::new();
script.execute_to_writer(
    Value::Null,
    None,
    &ExecutionOptions::default(),
    &mut bytes,
)?;

The native CLI uses the sink API for streaming JSON, NDJSON, and CSV output. Expressions outside the compiled lazy subset continue through the compatible legacy Rust evaluator.

The evaluator uses DwValue throughout execution. Dates, local and zoned date-times, local and zoned times, time zones, and periods have native variants. Use execute_value or CompiledScript::execute_value_with_context to retain these types in a Rust embedding:

use dwpy_core::{execute_value, DwValue};

let value = execute_value(
    r#""2026-10-26" as Date + |P3D|"#,
    DwValue::Null,
    false,
)?;
assert!(matches!(value, DwValue::Date(_)));
assert_eq!(value.temporal_text().as_deref(), Some("2026-10-29"));

The JSON-facing APIs serialize temporal scalars as ISO strings. Only the explicit Python/WASM typed transport uses tagged JSON to preserve host types. Ordinary objects with marker-like keys remain objects. With the Rust or WASM Python backend, render_output=False returns temporal results as Python date, datetime, or time values, including literals, coercions, and now(). Rendered JSON/text output remains text. See native temporal values for migration notes and bridge details.

Homebrew

The Rust-native CLI is distributed through a separate Homebrew tap repository: estebanwasinger/homebrew-tap.

The intended user flow is:

brew tap estebanwasinger/homebrew-tap
brew install dw-cli
dw run "1 to 1"

This repository includes:

  • scripts/build_dw_cli_source_archive.sh to build the deterministic source archive used by the formula
  • .github/workflows/release-dw-cli-source.yml to upload that archive to a GitHub release

The release split is intentional:

  • dataweave-py releases provide the source archive consumed by the formula
  • homebrew-tap releases provide the bottled Homebrew binaries

Run the Rust backend from Python:

from dwpy import DataWeaveRuntime

runtime = DataWeaveRuntime(backend="rust")
result = runtime.execute(
    "%dw 2.0\noutput application/json\n---\n{message: upper(payload.message)}",
    {"message": "hello from rust"},
)
print(result)

Backend selection:

  • DataWeaveRuntime() or backend="auto" uses the Rust bridge first and falls back to the legacy Python backend only for explicitly unsupported migration gaps.
  • DataWeaveRuntime(backend="rust") runs strict Rust mode and fails instead of falling back.
  • DataWeaveRuntime(backend="python") uses the legacy Python interpreter.
  • DataWeaveRuntime(backend="wasm") runs the Rust evaluator compiled to WASM through the Node.js bridge.
  • DWPY_BACKEND=rust forces strict Rust mode for process-wide test runs.

Build a distributable wheel with the Rust extension:

UV_CACHE_DIR=.uv-cache uv run maturin build --release

Run the Rust workspace tests:

cargo test --workspace

Run the WASM crate's Rust tests inside WebAssembly on Node.js:

bash scripts/test_wasm_rust.sh

This requires Node.js, wasm-pack, and the wasm32-unknown-unknown Rust target. It runs the WASM crate's unit tests and integration tests through wasm-bindgen-test, including execution, dependency analysis before execution, NDJSON errors, Unicode text output, and JWT signing. It does not run every core Rust unit test in WASM or validate Deno/browser host integration. Pass a test-name filter after -- to focus a run, for example bash scripts/test_wasm_rust.sh -- infix.

Run the Python suite against the Rust backend:

DWPY_BACKEND=rust UV_CACHE_DIR=.uv-cache uv run --extra dev pytest

Run the default Python package path, which exercises the Python bridge:

UV_CACHE_DIR=.uv-cache uv run --extra dev pytest

Run the Python suite in all three runtime modes—legacy Python, native Rust, and Rust compiled to WASM:

bash scripts/test_backends.sh

The script also runs the Rust tests inside WASM and the Node.js package tests, rebuilds the WASM package before its test pass, and preserves the individual pytest results. It accepts normal pytest arguments for focused runs, for example:

bash scripts/test_backends.sh tests/test_runtime_basic.py -k dynamic

Quick Start

Basic Usage

from dwpy import DataWeaveRuntime

# Create a runtime instance
runtime = DataWeaveRuntime()

# Define a DataWeave script
script = """%dw 2.0
output application/json
---
{
  message: "Hello, " ++ upper(payload.name),
  timestamp: now()
}
"""

# Execute with a payload
payload = {"name": "world"}
result = runtime.execute(script, payload)

print(result)
# Output: {'message': 'Hello, WORLD', 'timestamp': '2025-11-03T...Z'}

Data Transformation Example

from dwpy import DataWeaveRuntime

runtime = DataWeaveRuntime()

# Transform and enrich order data
script = """%dw 2.0
output application/json
---
{
  orderId: payload.id,
  status: upper(payload.status default "pending"),
  total: payload.items reduce ((item, acc = 0) -> 
    acc + (item.price * (item.quantity default 1))
  ),
  itemCount: sizeOf(payload.items)
}
"""

payload = {
    "id": "ORD-123",
    "status": "confirmed",
    "items": [
        {"price": 29.99, "quantity": 2},
        {"price": 15.50, "quantity": 1}
    ]
}

result = runtime.execute(script, payload)
print(result)
# Output: {'orderId': 'ORD-123', 'status': 'CONFIRMED', 'total': 75.48, 'itemCount': 2}

Using Variables

from dwpy import DataWeaveRuntime

runtime = DataWeaveRuntime()

script = """%dw 2.0
output application/json
var requestTime = vars.requestTime default now()
---
{
  user: payload.userId,
  processedAt: requestTime
}
"""

payload = {"userId": "U-456"}
vars = {"requestTime": "2024-05-05T12:00:00Z"}

result = runtime.execute(script, payload, vars=vars)

Pattern Matching

from dwpy import DataWeaveRuntime

runtime = DataWeaveRuntime()

script = """%dw 2.0
output application/json
---
{
  category: payload.price match {
    case var p when p > 100 -> "premium",
    case var p when p > 50 -> "standard",
    else -> "budget"
  }
}
"""

result = runtime.execute(script, {"price": 75})
# Output: {'category': 'standard'}

String Interpolation

from dwpy import DataWeaveRuntime

runtime = DataWeaveRuntime()

# Simple interpolation
script = """%dw 2.0
output application/json
---
{
  greeting: "Hello $(payload.name)!",
  total: "Total: $(payload.price * payload.quantity)",
  status: "Order $(payload.orderId) is $(upper(payload.status))"
}
"""

payload = {
    "name": "Alice",
    "price": 10.5,
    "quantity": 3,
    "orderId": "ORD-123",
    "status": "confirmed"
}

result = runtime.execute(script, payload)
# Output: {
#   'greeting': 'Hello Alice!',
#   'total': 'Total: 31.5',
#   'status': 'Order ORD-123 is CONFIRMED'
# }

String interpolation allows you to embed expressions directly within strings using the $(expression) syntax. The expression can be:

  • Property access: $(payload.name)
  • Nested properties: $(payload.user.email)
  • Expressions: $(payload.price * 1.1)
  • Function calls: $(upper(payload.status))
  • Any valid DataWeave expression

Output Formats

The runtime supports these output directives:

  • application/python (native Python objects)
  • application/json
  • application/x-ndjson (also accepts ndjson and application/x-ldjson)
  • application/csv
  • application/xml
  • text/plain
  • text/markdown

Format-specific notes:

  • JSON readers preserve repeated object keys in source order, so payload.test.*test2 returns every matching value. Pass the original JSON text with payload_format="application/json" (or use read(text, "application/json")); a Python dict or JavaScript object already parsed by a standard JSON decoder has lost repeated entries.
  • XML output renders repeated object keys as repeated sibling elements in source order, including keys preserved from JSON input and object literals. For example, {root: {item: 1, item: 2}} produces <root><item>1</item><item>2</item></root>.
  • The Rust WASM entry points preserve duplicates in raw payload and request JSON. The Node package's execute and analyze functions accept either request objects or serialized request JSON; the stdio bridge forwards the original request text. For example, execute('{"script":"payload.*a","payload":{"a":1,"a":2}}') returns [1, 2]. Pass serialized text directly instead of calling JSON.parse on duplicate-bearing input first. Rebuild the WASM package after checking out source changes with npm --prefix packages/dataweave-wasm run build.
  • application/x-ndjson maps newline-delimited JSON records to an array. Empty lines are ignored by default; use skipInvalid=true to skip malformed records. Writers emit one compact JSON record per line and support skipNullOn and writeAttributes.
  • output text/plain accepts strings and temporal values, rendering dates, times, date-times, and periods as ISO text. text and plain are aliases for text/plain.
  • To return a string field verbatim, including Markdown and newlines, use output text/plain --- {content: "hello\nworld"}.content.
  • output text/markdown expects a tabular value (list or dict) and renders a Markdown table.
  • output text/markdown header=false is rejected because Markdown table rendering requires headers.
  • payload_format="text/markdown" parses Markdown pipe tables into structured rows (Array<Object> by default, or Array<Array<String>> with payload_format_options={"header": False}).

Supported Features

JWT signing (Rust and WASM)

Import JWT from dw::util::jwt::HMAC or dw::util::jwt::RSA to sign tokens:

%dw 2.0
import * from dw::util::jwt::HMAC
output application/json
---
JWT({sub: "example"}, vars.signingKey)

HMAC supports HmacSHA256 (default), HmacSHA384, and HmacSHA512; RSA supports Sha256withRSA (default), Sha384withRSA, and Sha512withRSA. Use JWT(header, payload, signingKey, algorithm) to set a header and algorithm. HMAC keys must contain at least 32, 48, or 64 UTF-8 bytes respectively. RSA keys must be unencrypted PKCS#1 or PKCS#8 PEM private keys of at least 2048 bits. The signing algorithm determines the token's alg header; typ is JWT.

Named input declarations accept already parsed values supplied through vars: for example, input key application/json binds vars={"key": pem_string} as key in the script. Input format declarations describe these native values; parse serialized values explicitly with read when needed. JWT modules are currently available in the native Rust and WASM engines, not the legacy Python interpreter.

DataWeave-Py currently supports a wide range of DataWeave language features:

Core Language Features

  • ✅ Header directives (%dw 2.0, output, var, import)
  • ✅ Payload and variable access
  • ✅ Object and array literals
  • ✅ Field selectors (.field, ?.field, [index])
  • ✅ Comments (line // and block /* */)
  • ✅ Default values (payload.field default "fallback")
  • ✅ String interpolation ("Hello $(payload.name)")

Operators

  • ✅ Concatenation (++)
  • ✅ Difference (--)
  • ✅ Arithmetic (+, -, *, /)
  • ✅ Comparison (==, !=, >, <, >=, <=)
  • ✅ Logical (and, or, not)
  • ✅ Range (to)
  • ✅ Type checks (content is String)
  • ✅ Field updates (item update { case content at .content -> ... }), including conditional branches inside map lambdas

Numeric operands to ++ are converted to strings, so 2 ++ 3 returns "23". For typed user functions, exact overload matches are tried first. If none match, numeric strings can be coerced to Number and numbers to String before the selected function runs; an invalid conversion does not execute the function body.

Control Flow

  • ✅ Conditional expressions (if-else)
  • ✅ Pattern matching (match-case)
  • ✅ Match guards (case var x when condition)

Collection Operations

  • ✅ map - Transform elements
  • ✅ filter - Select elements
  • ✅ reduce - Aggregate values
  • ✅ flatMap - Map and flatten
  • ✅ distinctBy - Remove duplicates
  • ✅ groupBy - Group by criteria
  • ✅ orderBy - Sort elements

Built-in Functions

String Functions

upper, lower, trim, contains, startsWith, endsWith, isBlank, splitBy, joinBy, find, match, matches

Numeric Functions

abs, ceil, floor, round, pow, mod, sum, avg, max, min, random, randomInt, isDecimal, isInteger, isEven, isOdd

Array/Object Functions

sizeOf, isEmpty, flatten, indexOf, lastIndexOf, distinctBy, filterObject, keysOf, valuesOf, entriesOf, pluck, maxBy, minBy

Date Functions

now, isLeapYear, daysBetween

Utility Functions

log, logInfo, logDebug, logWarn, logError, logWith

Injecting loggers

Logging functions return the value they inspect. Inject one or more sinks into the Python runtime to receive LogEntry(level, prefix, message) records:

import logging
from dwpy import DataWeaveRuntime

entries = []
runtime = DataWeaveRuntime(loggers=[entries.append, logging.getLogger("my-app.dataweave")])
result = runtime.execute("1 to 10 map log($)", None)
assert result == list(range(1, 11))
assert entries[0].message == "1"

log(value) and log("label", value) use the warn level for compatibility with the existing Python implementation. The level-specific functions use debug, info, warn, or error; logWith("debug", "label", value) selects a level dynamically (unknown levels default to info). Logger callbacks see all levels; injected Python logging.Logger instances apply their own filters. With loggers=None, Python uses standard Python logging. Pass loggers=[] to silence script logs. Configured sinks replace the default sink.

Sinks are isolated by execution, including nested and concurrent runs. Messages emitted before an execution error are delivered as well. Native Python-extension and WASM bridges deliver captured entries after evaluation; the Python interpreter and direct Rust sinks deliver them during evaluation. An exception in a Python or JavaScript logger callback propagates to the caller.

Rust embedders use ExecutionContext::with_logger, repeatedly for multiple sinks:

use dwpy_core::{compile, ExecutionContext, ExecutionOptions, LogEntry};
use serde_json::Value;

let context = ExecutionContext::new(None, None, None)?
    .with_logger(|entry: &LogEntry| eprintln!("{:?}: {}", entry.level, entry.message));
let output = compile("logInfo(\"value\", payload)")?
    .execute_with_context(Value::from(42), context, &ExecutionOptions::default())?;
# Ok::<(), dwpy_core::DwError>(())

Direct Rust and result-only WASM APIs are silent without injected sinks. The WASM export run_dataweave_request_with_logs is opt-in and returns a JSON envelope with result or error, plus logs and logs_truncated; the existing run_dataweave_request contract is unchanged. Captures retain up to 1,000 entries and approximately 1 MiB of text, with 16 KiB per message and 1 KiB per prefix. The DataWeave playground displays these records in its Logs tab, including records produced before an error. Each run replaces the previous logs.

Running Tests

The project includes comprehensive test coverage:

# Run all tests
pytest

# Run specific test file
pytest tests/test_runtime_basic.py

# Run with verbose output
pytest -v

# Run with coverage
pytest --cov=dwpy

Browser WASM (Pyodide)

The project includes a browser-worker runtime for WASM execution with Pyodide and wheel-based loading.

  • Worker bootstrap: web/pyodide-worker.mjs
  • Python entrypoint: dwpy.wasm_entry.run_dataweave(...)
  • Full instructions: docs/WASM_PYODIDE.md

Language Server (LSP)

The project now includes a stdio Language Server for DataWeave:

  • Command: dwpy-lsp
  • Module: dwpy.lsp.server
  • Python LSP engine: dwpy.lsp.engine
  • Browser/Node source completions: dwpy_core::completion via complete_dataweave_request

Both completion paths preserve local function overloads, show signatures, and insert argument-name snippets. Local declarations take precedence over builtin names. The browser recovers header functions and variables even when the body is incomplete, using the runtime lexer for comment, delimiter, and multiline boundaries. It also suggests parameters within their header function body. Completion never runs script initializers or function bodies. Cursor positions use zero-based UTF-16 units.

The playground and Python LSP query the active native/WASM engine for function completions. No frontend builtin list or manually regenerated function catalog is used. Cargo automatically discovers callable names and arities from Rust dispatch syntax and enriches signatures from bundled module declarations on every engine build. A new supported Rust builtin appears after rebuilding the engine; no catalog-maintenance command is required.

Completion also discovers keyword operators handled directly by the expression evaluator, including update. These appear as operators without function-call parentheses, using the same native/WASM source of truth.

Invocation snippets follow expression context: {name: up…} inserts a prefix call such as upper(text), while {values: payload ma…} prioritizes infix map ((item, index) -> …). Supported infix operators come from the runtime; callback parameters come from their signatures. Imported aliases retain this behavior, local functions retain their own call signatures, and existing call arguments or infix right-hand expressions are preserved.

Document functions are discovered on every completion request, including nested do blocks, closures, lambda-valued variables, overloads, and lexical shadowing. Imports support wildcard/selective forms, function aliases, module aliases and qualified calls. The host may pass module_sources (module name → current DW source) to discover imported declarations without rebuilding WASM. The Python LSP reads referenced module files again on each request and invalidates cached module metadata when files change or are added. No initializer or function body is run.

Selector completion also follows collection callback inputs: payload map $. suggests fields from the payload's array elements, and named parameters such as item work too. Nested callbacks use their nearest input; fields are combined across sampled records, including CSV rows. Selectors and shape-preserving collection pipelines are inspected without running callbacks or initializers. Inline object and array literals also supply their static fields, including nested selectors such as ({person: {name: "E"}}).person.. Field values and computed/interpolated keys are never executed to obtain suggestions. The then callback uses the whole preceding value, so {name: "E"} then $. also suggests name, including after chained selector projections.

The browser still uses Monaco for keyword/snippet presentation and input-field completion through Rust's format readers. Full hover and signature-help parity between browser and Python LSP remains separate language-service work.

Install

Install the LSP extra:

uv pip install "dataweave-py[lsp]"

Sidecar context files

For structure-aware payload/vars completion in .dwl files, place these JSON files next to the script:

  • <file>.payload.json
  • <file>.vars.json

Example for transform.dwl:

  • transform.dwl.payload.json
  • transform.dwl.vars.json

If sidecars are missing or invalid, the server falls back to script-only inference.

VS Code client (example)

{
  "languageserver": {
    "dataweave-py": {
      "command": "dwpy-lsp",
      "filetypes": ["dataweave", "dwl"]
    }
  }
}

Neovim client (example)

require("lspconfig").dwpy_lsp.setup({
  cmd = { "dwpy-lsp" },
  filetypes = { "dataweave", "dwl" },
})

Project Structure

dataweave-py/
├── crates/                    # Rust workspace
│   ├── dwpy-core/             # Core Rust value model and engine foundation
│   ├── dwpy-python/           # PyO3 extension exposed as dwpy._dwpy_rust
│   └── dwpy-wasm/             # WASM wrapper foundation
├── dwpy/                      # Main Python package
│   ├── __init__.py           # Package exports
│   ├── parser.py             # DataWeave parser
│   ├── runtime.py            # Runtime backend facade
│   ├── _python_runtime.py    # Legacy Python interpreter backend
│   └── builtins.py           # Built-in functions
├── tests/                     # Test suite
│   ├── test_runtime_basic.py # Core functionality tests
│   ├── test_builtins.py      # Built-in function tests
│   └── fixtures/             # Test data and fixtures
├── runtime-2.11.0-20250825/  # Original JVM runtime reference
├── docs/                      # Documentation
├── pyproject.toml            # Project configuration
└── README.md                 # This file

Development

Setting Up Development Environment

# Create virtual environment
uv venv --python 3.12
source .venv/bin/activate

# Install Python development dependencies
UV_CACHE_DIR=.uv-cache uv sync --extra dev

# Build and install the Rust-backed Python bridge in editable mode
UV_CACHE_DIR=.uv-cache uv run maturin develop --release

Running the Test Suite

# Run all tests
UV_CACHE_DIR=.uv-cache uv run --extra dev pytest

# Force strict Rust backend
DWPY_BACKEND=rust UV_CACHE_DIR=.uv-cache uv run --extra dev pytest

# Run Rust workspace tests
cargo test --workspace

Code Style

The project follows standard Python conventions:

  • PEP 8 style guide
  • Type hints where appropriate
  • Comprehensive docstrings
  • Two-space indentation for consistency with Scala codebase

Comparison with JVM Runtime

DataWeave-Py aims to provide feature parity with the official JVM-based DataWeave runtime. Key differences:

Feature JVM Runtime DataWeave-Py
Language Scala Rust core with Python bridge
Performance High (compiled/JIT) Native Rust engine through PyO3
Startup Time Slower (JVM warmup) Fast native extension loading
Memory Usage Higher (JVM overhead) Lower native runtime footprint
Integration Java/Mule apps Python apps, Rust crate, future WASM wrapper
Module System Full support Rust-native support for the current suite
Type System Static typing Rust-backed inference plus Python API helpers

Roadmap

Current Status (v0.1.0)

  • ✅ Core language parser
  • ✅ Expression evaluation
  • ✅ 60+ built-in functions
  • ✅ Pattern matching
  • ✅ Collection operators

Planned Features

  • 🔄 Full module system support
  • 🔄 Import statements
  • 🔄 Custom function definitions
  • 🔄 XML/CSV format support
  • 🔄 Streaming for large datasets
  • 🔄 Type validation
  • 🔄 Performance optimizations

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Write tests for your changes
  4. Ensure all tests pass (pytest)
  5. Commit your changes (git commit -m 'feat: add amazing feature')
  6. Push to the branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

License

See the original DataWeave runtime license terms. This project is a reference implementation for educational and development purposes.

Resources

Support

For questions, issues, or contributions:

  • Open an issue on GitHub
  • Check existing documentation in the docs/ directory
  • Review test cases in tests/ for usage examples

Note: This is an independent Python implementation and is not officially supported by MuleSoft. For production use cases requiring full DataWeave compatibility, please use the official JVM-based runtime.

Live debugger

The Rust engine and browser/WASM runtime include live debugging through the Debug Adapter Protocol (DAP). The native CLI starts an adapter with dw dap. The playground provides breakpoints, stepping, stack and variable inspection, read-only watches, and live execution logs. See Debugger usage and supported language features for client setup, embedding APIs, and v1 limitations, and the support tracker for progress toward full debugger coverage.

To override a script's output directive, pass output_mime_type to DataWeaveRuntime.execute, for example:

result = runtime.execute(script, payload, output_mime_type="application/yaml")

The override selects the writer and its defaults; writer properties in the script's output directive are discarded. render_output=False takes precedence and returns the unrendered value. The WASM request accepts the same output_mime_type field. Rust callers can use dwpy_core::compile_with_output_mime_type before executing the compiled script.

Metadata

Release files for dataweave-py 1.4.0

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

Source distribution (sdist)

Source distribution for dataweave-py 1.4.0
File Size Uploaded Provenance Actions
dataweave_py-1.4.0.tar.gz 468.7 kB With provenance Details for dataweave_py-1.4.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for dataweave-py 1.4.0
File Actions
dataweave_py-1.4.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for dataweave_py-1.4.0-cp310-abi3-win_amd64.whl
dataweave_py-1.4.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for dataweave_py-1.4.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
dataweave_py-1.4.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for dataweave_py-1.4.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
dataweave_py-1.4.0-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 10.12+ x86-64, macOS 11.0+ ARM64, macOS 10.12+ universal2 (ARM64, x86-64) Details for dataweave_py-1.4.0-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Total release size: 12.0 MB

Release files / dataweave_py-1.4.0.tar.gz

Download URL dataweave_py-1.4.0.tar.gz
Size 468.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9cfcb11b91853f2dd8ef2dffe50188fa2aa642e5186f8cae94a04d5b21f6ac55
BLAKE2b-256 checksum
How to use checksums
368b53c93f5c8ae46f1b385338e87e0636d0b4c88b0cae4a22dae4122020bb3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / dataweave_py-1.4.0-cp310-abi3-win_amd64.whl

Download URL dataweave_py-1.4.0-cp310-abi3-win_amd64.whl
Size 2.2 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
749176919a44d47cf5665992ac163d7320d693058f92fd37081bb616159f77ed
BLAKE2b-256 checksum
How to use checksums
42081faaa22e2f791b1fce1c7e91d0482c75aa13fee932a5562323a19498e7da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / dataweave_py-1.4.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL dataweave_py-1.4.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 2.5 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
342b979363d845ab1fba149baa030bc5bbdd82ceedc2ffbfe0acb31c1da5c066
BLAKE2b-256 checksum
How to use checksums
13124472503b6b399285e0a4b09f4cd5361c4806cb13b6c23f1cf8d14ed8ee8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / dataweave_py-1.4.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL dataweave_py-1.4.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 2.5 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
9a6eea92aed53d646854a8927c8b199de357e69fc4df329151e747b5b75ff0aa
BLAKE2b-256 checksum
How to use checksums
5602f81a27944399e12d7906b8acf7ba71c20684cb6dd7d02acfe2a46357f881
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / dataweave_py-1.4.0-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Download URL dataweave_py-1.4.0-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
Size 4.4 MB
Tags CPython 3.10 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b44fc400ed9b3aab18379414a83916431f58cbcb207572954f7a989c435f4220
BLAKE2b-256 checksum
How to use checksums
b73e163eae1e4b131e308a3d695085bc40db9f7ba93a2b17745acc68af34e018
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Security for dataweave-py 1.4.0

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.

Full provenance

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for dataweave_py-1.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

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