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.kernel
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 kernels 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 kernels, 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.
Metadata
Release files for moruna 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| moruna-0.4.2-cp314-cp314t-manylinux_2_39_x86_64.whl | CPython 3.14 | CPython 3.14 free-threading | Linux glibc 2.39+ x86-64 | Details for moruna-0.4.2-cp314-cp314t-manylinux_2_39_x86_64.whl |
| moruna-0.4.2-cp314-cp314t-macosx_11_0_arm64.whl | CPython 3.14 | CPython 3.14 free-threading | macOS 11.0+ ARM64 | Details for moruna-0.4.2-cp314-cp314t-macosx_11_0_arm64.whl |
| moruna-0.4.2-cp314-cp314-manylinux_2_39_x86_64.whl | CPython 3.14 | CPython 3.14 | Linux glibc 2.39+ x86-64 | Details for moruna-0.4.2-cp314-cp314-manylinux_2_39_x86_64.whl |
| moruna-0.4.2-cp314-cp314-macosx_11_0_arm64.whl | CPython 3.14 | CPython 3.14 | macOS 11.0+ ARM64 | Details for moruna-0.4.2-cp314-cp314-macosx_11_0_arm64.whl |
Total release size: 284.3 MB
Release files / moruna-0.4.2-cp314-cp314t-manylinux_2_39_x86_64.whl
| Download URL | moruna-0.4.2-cp314-cp314t-manylinux_2_39_x86_64.whl |
|---|---|
| Size | 75.3 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.39+ x86-64 |
|
SHA-256 checksum How to use checksums |
2766f3ab46b7ec76bc8d61bc725042a152b0ae553fdaf28178a2d230fd023f4e
|
|
BLAKE2b-256 checksum How to use checksums |
88ad80b02a13df4fc4eec3e09a9654cc4fae1bb5e733b2ed8cd14f9a77ee95d4
|
| 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 Oct 5, 2026.
Transparency logRelease files / moruna-0.4.2-cp314-cp314t-macosx_11_0_arm64.whl
| Download URL | moruna-0.4.2-cp314-cp314t-macosx_11_0_arm64.whl |
|---|---|
| Size | 66.9 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
da9671b906bccfe0c01c1b49505e50039e773efb7803e45edffe9f0fa5799ba6
|
|
BLAKE2b-256 checksum How to use checksums |
3454df3186719e62777b064ca9ab232769bf93f1cfcf8b498cf0f2c83432af15
|
| 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 Oct 5, 2026.
Transparency logRelease files / moruna-0.4.2-cp314-cp314-manylinux_2_39_x86_64.whl
| Download URL | moruna-0.4.2-cp314-cp314-manylinux_2_39_x86_64.whl |
|---|---|
| Size | 75.3 MB |
| Tags | CPython 3.14 Linux glibc 2.39+ x86-64 |
|
SHA-256 checksum How to use checksums |
9781d3684dffaf6bcd0deedbbec6f2dce83e911ee4950e664688c3be98f70e34
|
|
BLAKE2b-256 checksum How to use checksums |
c7ea347c306c56c5fcc4f50322b27e5f0fc4d947b6c91db267dab47b8d91a07a
|
| 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 Oct 5, 2026.
Transparency logRelease files / moruna-0.4.2-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | moruna-0.4.2-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 66.9 MB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
1dd6e57964bc8f8e6b92983448fc8a9325b0eb9c2b2fa619e134b69f3469449a
|
|
BLAKE2b-256 checksum How to use checksums |
9a2ffb09ae9bd5e2792829bd2d1620974c21a82b806979ea7b4dc35a8a6af719
|
| 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 Oct 5, 2026.
Transparency logSecurity for moruna 0.4.2
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 4 files in this release have been uploaded with provenance metadata.
Attestation for moruna-0.4.2-cp314-cp314t-manylinux_2_39_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 Oct 5, 2026.
Transparency logA 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.