Skip to main content

MoJ Data Loader (MoDaL)

MoJ Data Loader provides an easy to use, config-driven way to load files from S3 into Athena.

Install in Your Project

MoDaL is distributed as the moj-data-loader Python package on PyPI. It requires Python 3.12 or newer. Install it in the repository that owns your pipelines; you do not need to clone this repository.

For a project managed with uv, run from your project root:

uv add moj-data-loader
uv run moj-data-loader --help

Alternatively, install it in a virtual environment with pip:

python -m venv .venv
source .venv/bin/activate
python -m pip install moj-data-loader
moj-data-loader --help

The package name and CLI command are moj-data-loader, not modal.

Use Your Own Pipeline Repository

Keep your pipeline YAMLs in your own repository:

your-project/
	pyproject.toml
	pipelines/
		your_domain/
			your_database/
				your_table.yml

Run from that repository's root:

uv run moj-data-loader load your_table --env test

With an activated pip environment, omit uv run. Configure AWS credentials and permissions for the source S3 data and Athena destination before loading data.

By default, MoDaL searches ./pipelines/, not the installed package's directory. Use --configs-dir /path/to/pipelines or MODAL_CONFIG_DIR to select another config root, retaining the domain/database/table.yml layout.

Existing pipelines in this repository can continue to use the monorepo and its Airflow image during the transition. New pipelines will soon no longer be accepted here: create them in your own repository using the PyPI package, and plan to migrate existing pipelines there too. See the migration guide.

Releases

The Airflow container workflow runs on pushed tags without /. A monorepo tag such as monorepo-v2.1.25 builds the container without publishing to PyPI; use this for interim pipeline-only releases.

For a package release, update the version in pyproject.toml and the lockfile, then push a version tag such as v2.1.25 matching the package version. This publishes to PyPI and also builds the container. A manually dispatched PyPI workflow publishes to TestPyPI only. Configure the GitHub release environment and PyPI trusted publisher for production publishing.

Usage guidance

You can find usage guidance in docs/user_guide

Pipeline YAML specification is documented in docs/pipeline_config.md.

Migration notes

v2.0 is a breaking release.

  • Supported CLI: moj-data-loader
  • Supported environment variables: MODAL_*
  • Removed in v2.0: airflow-file command alias and AFFILE_* environment variables

For migration steps and old-to-new mappings, see:

  • Documentation can be found at the Data and Analytics Engineering internal Pages site [here]: TBC
  • Development of this repo is managed via this Project Board

Contributing

To develop MoDaL itself, clone this repository and run:

uv sync
uv run pytest tests/unit

uv sync installs MoDaL in editable mode for development. Users should add the released package to their own project's dependencies instead. Commit your project's dependency manifest and lockfile to keep local, CI, and deployment environments consistent.

Metadata

Release files for moj-data-loader 2.2.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 moj-data-loader 2.2.0
File Size Uploaded Provenance Actions
moj_data_loader-2.2.0.tar.gz 23.0 kB With provenance Details for moj_data_loader-2.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for moj-data-loader 2.2.0
File Interpreter ABI Platform Actions
moj_data_loader-2.2.0-py3-none-any.whl Python 3 none any Details for moj_data_loader-2.2.0-py3-none-any.whl

Total release size: 48.8 kB

Release files / moj_data_loader-2.2.0.tar.gz

Download URL moj_data_loader-2.2.0.tar.gz
Size 23.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b3b17fabdc072139f9de07aaa5c736a8fb4719cb3f115e9cd0aba8c85ff440f8
BLAKE2b-256 checksum
How to use checksums
1272ee759d6fca89ffb9ee163a586cbaaa74f33f2f770984e4686dad8bcd2f5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
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":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 17, 2026.

Transparency log

Release files / moj_data_loader-2.2.0-py3-none-any.whl

Download URL moj_data_loader-2.2.0-py3-none-any.whl
Size 25.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
088a61ab2635e1239c339484269f06ee90d5553eeea7e89f7c690a4c0be555c1
BLAKE2b-256 checksum
How to use checksums
0dcbf0bae89e71568e4432c082557c6930fcc304e830978a102b097f33f2aac4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
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":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 17, 2026.

Transparency log

Security for moj-data-loader 2.2.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for moj_data_loader-2.2.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 Nov 17, 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.

Release history Release notifications | RSS feed

This release

2.2.0 This release

2 release files Full provenance

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