Skip to main content

Moruna

Moruna is a fast, lightweight runtime that runs your Python functions over datasets larger than memory, inside a memory limit you set, and sizes the work itself so the job neither runs out of memory nor leaves the machine idle.

Use cases

Run a model over a large dataset. Apply a tokenizer, a scoring model or any Python function to every row of a Parquet dataset that does not fit in memory, and write the results as Parquet.

Stay inside a memory limit. Give a job a budget, or let Moruna read its container's limit. Moruna measures what your function uses and adjusts batch sizes and workers to stay under it.

Resume a job that was stopped. Restart a long job from its last checkpoint instead of from the beginning. The output is the same as a run that was never interrupted.

Run a job described in a file. Describe the input, functions, output and budget in a job document, then run it with the moruna command from a scheduler, a container or a virtual machine.

Quickstart

pip install moruna
import moruna
import pyarrow as pa

@moruna.function
def shout(batch):
    loud = pa.array([s.as_py().upper() for s in batch.column("text")])
    return batch.append_column("loud", loud)

report = moruna.run(
    moruna.ParquetSource("events/"),
    [shout],
    moruna.ParquetSink("events-loud/"),
    budget="8GiB",
)
print(report)

Moruna requires Python 3.14. On the standard build of Python, add allow_gil=True; on the free-threaded build, Python functions run on every core. The quickstart builds a dataset and runs this end to end.

Documentation

Getting started
Learn the concepts, then run your first job.
Using Moruna
Write functions, run jobs from Python or the command line, and choose where they run.
How it works
Understand how Moruna sizes work, keeps memory under the limit and resumes.
Reference
Look up functions, the job document, commands and the run report.

Read the documentation website.


Contributing · Changelog · Apache-2.0 license

Metadata

Release files for moruna 0.6.4

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 moruna 0.6.4
File Actions
moruna-0.6.4-cp314-cp314t-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64 Details for moruna-0.6.4-cp314-cp314t-manylinux_2_28_x86_64.whl
moruna-0.6.4-cp314-cp314t-manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ ARM64 Details for moruna-0.6.4-cp314-cp314t-manylinux_2_28_aarch64.whl
moruna-0.6.4-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details for moruna-0.6.4-cp314-cp314t-macosx_11_0_arm64.whl
moruna-0.6.4-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details for moruna-0.6.4-cp314-cp314-manylinux_2_28_x86_64.whl
moruna-0.6.4-cp314-cp314-manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ ARM64 Details for moruna-0.6.4-cp314-cp314-manylinux_2_28_aarch64.whl
moruna-0.6.4-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for moruna-0.6.4-cp314-cp314-macosx_11_0_arm64.whl

Total release size: 470.8 MB

Release files / moruna-0.6.4-cp314-cp314t-manylinux_2_28_x86_64.whl

Download URL moruna-0.6.4-cp314-cp314t-manylinux_2_28_x86_64.whl
Size 80.7 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
37e629597873d29c6127796bbf3407adddce021f365c3a59f950a8f19a8df080
BLAKE2b-256 checksum
How to use checksums
72048dfd967e5b257c07b7a4c3550f47d9800825e6044d3233762187c41a2253
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Nov 8, 2026.

Transparency log

Release files / moruna-0.6.4-cp314-cp314t-manylinux_2_28_aarch64.whl

Download URL moruna-0.6.4-cp314-cp314t-manylinux_2_28_aarch64.whl
Size 83.7 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
0049bd50da7a8410af6d9ba4f30974791d8db31385f3c773b67199d764c9bced
BLAKE2b-256 checksum
How to use checksums
4df744ec9300cfa4199b3e3cbb18c6a408cfd1819069ffe74a09067182193e54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Nov 8, 2026.

Transparency log

Release files / moruna-0.6.4-cp314-cp314t-macosx_11_0_arm64.whl

Download URL moruna-0.6.4-cp314-cp314t-macosx_11_0_arm64.whl
Size 71.0 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5183fe9cb8df9c5e23aeaa1038e30e0c348c6d2907880daac7e7bc7532e11c71
BLAKE2b-256 checksum
How to use checksums
9cfa23b0878d1abb8d51829b2ed23ae7da0c92180cf415c924813b6d8ea4ddaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Nov 8, 2026.

Transparency log

Release files / moruna-0.6.4-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL moruna-0.6.4-cp314-cp314-manylinux_2_28_x86_64.whl
Size 80.8 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
2c667cd6b6f0193cd09ea3554c5b361f78e0135d89a4bf68e17fe05297ea7080
BLAKE2b-256 checksum
How to use checksums
58b2ac94cff83b4cb7d1a98d96e56cbcd994133cca122f8d8a64117836d63f2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Nov 8, 2026.

Transparency log

Release files / moruna-0.6.4-cp314-cp314-manylinux_2_28_aarch64.whl

Download URL moruna-0.6.4-cp314-cp314-manylinux_2_28_aarch64.whl
Size 83.7 MB
Tags CPython 3.14 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
025047bb763c55b2fe29e64ed3fc3eef41652daeb43b0a9b50516d51b97e3715
BLAKE2b-256 checksum
How to use checksums
8decd3a9cb0f3b13ee14c9ecfe7c641bc99f06ad697d67b958e99788acdd6d9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Nov 8, 2026.

Transparency log

Release files / moruna-0.6.4-cp314-cp314-macosx_11_0_arm64.whl

Download URL moruna-0.6.4-cp314-cp314-macosx_11_0_arm64.whl
Size 71.0 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
88f492ab3d4e4611fe37583fee73af1f44d04c0b507d825f94666347222c6de6
BLAKE2b-256 checksum
How to use checksums
e9b1f96982f0e689faea37bf059b5cb58fde91b13586856c51beb07c2933f39f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Nov 8, 2026.

Transparency log

Security for moruna 0.6.4

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 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for moruna-0.6.4-cp314-cp314t-manylinux_2_28_x86_64.whl

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 Nov 8, 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