Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

lakefreight

Latest version: v0.5.1

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
PyPI package Publisher: sidbhaumik
1 Stars
0 Forks
7 Versions
235 Downloads
Python Repo language

Scan summary

lakefreight was last scanned on 27 Nov 2026 at version 0.5.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 7 versions; the latest 5 were published within 3 days (25–27 Nov 2026).
  • Findings: No rules fired in version 0.5.1.
  • Downloads: 235 downloads.

Versions

7 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.5.1 LATEST 27 Nov 2026 No rules fired
0.5.0 26 Nov 2026 No rules fired
0.4.2 26 Nov 2026 No rules fired
0.4.1 26 Nov 2026 Not shown
0.4.0 25 Nov 2026 Not shown

No rules fired in 0.5.1

Findings

Findings for v0.5.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.5.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

lakefreight

CI PyPI Python 3.11 | 3.12 | 3.13 | 3.14 License: MIT Code style: ruff

Bulk-move warehouse tables into open lakehouse files on cloud storage, so any engine can read them.

lakefreight unloads thousands of tables from a source warehouse into Parquet files on object storage, in a layout that Databricks, Snowflake, Redshift and BigQuery can all load or query. It plans the work from your metadata, keeps sensitive data in separate zones, and reconciles every extract before it is released.

It is built for the hard version of the job: thousands of tables, petabytes of data, many years of history, a fixed deadline, and a hand-off to storage owned by another cloud account in another region. The same method works for much smaller moves.

Support matrix

Supported today On the roadmap
Source Snowflake Other warehouses
Target storage Amazon S3 Google Cloud Storage, Azure Data Lake Storage
File format Parquet, with a manifest and schema sidecar per table
Table format Delta Lake or Apache Iceberg, registered over the same Parquet files without rewriting them Incremental re-registration after a re-extract
Readers Any engine that reads Parquet, Delta or Iceberg: Databricks, Snowflake, Redshift, BigQuery One-step registration in each engine's catalog
Orchestration AWS Step Functions, deployed with Terraform or OpenTofu

Status: alpha. The Snowflake path (discover, plan, unload, reconcile, register as Delta and Iceberg) has been run end to end on a live Snowflake account, with every table read back at exactly Snowflake's row counts. The Delta tables were read back in Databricks with identical counts and values. The AWS deployment ran end to end: Snowflake unloaded into S3 through the zone roles, and the tables were registered and read back from S3.

Known limitation: Snowflake writes Parquet timestamps in milliseconds, so finer digits are lost on unload.

What it does

lakefreight architecture: metadata drives a chunk planner and work items; Snowflake unloads Parquet into sensitivity zones; reconciled chunks get a manifest, are replicated to the target account, and are registered as Delta Lake or Iceberg tables

  • Discovers your tables. lakefreight discover reads sizes, columns and types from Snowflake, and flags personal data using Snowflake's own sensitive data classification plus any tags or column-name rules you add. Columns Snowflake has never classified are treated as sensitive.

  • Generates extract SQL from metadata. One COPY INTO per table, or per date chunk for large tables. Nothing is hand-written.

  • Routes by sensitivity. Three zones, each with its own stage, bucket location, key and role:

    • RESTRICTED: tables with tokenized identifiers, such as government ID numbers, that must leave in clear form
    • PII: tables with other personal data
    • INTERNAL: tables explicitly classified as non-sensitive

    Unknown classification is treated as sensitive.

  • Splits large tables into even chunks. Months are packed to a target size, and the predicates cover every possible value, including NULL dates.

  • Detokenizes restricted columns through a cross-reference table, with checks that the join neither drops nor duplicates rows.

  • Reconciles before release. A manifest is written only when the unloaded row count equals the source count; the receiving side loads only what has a manifest.

  • Restarts at chunk level. Every table or chunk is a tracked work item.

  • Registers open table formats. lakefreight register turns a table's unloaded files into a Delta Lake or Apache Iceberg table without rewriting them. Only files named in a committed manifest are included; it refuses incomplete tables, files still replicating, schema drift between chunks, and nanosecond timestamps that Spark and Iceberg v2 can't read.

Install

pip install lakefreight

Add the extra for the table format you want to register:

pip install "lakefreight[delta]"
pip install "lakefreight[iceberg]"

To read metadata straight from Snowflake, add the connector:

pip install "lakefreight[snowflake]"

Then create a settings file to edit, and run lakefreight --help for the commands:

lakefreight config --write

Typical workflow

  1. Discover the tables and their sensitivity. This uses a connection from ~/.snowflake/connections.toml; add --sql-only to get the query and run it yourself instead.

    lakefreight discover --database SALES --database HR --out metadata.csv
  2. Plan the work: one COPY INTO per table or date chunk, routed by zone.

    lakefreight plan --metadata metadata.csv --out generated
  3. Unload with the generated SQL, or at scale with the Step Functions pipeline. infra/ deploys it: buckets, keys, Snowflake roles and stages, the Lambda functions and the state machine.

  4. Register each table as Delta Lake or Iceberg once its chunks have landed.

    lakefreight register --format delta --table-root s3://my-egress/internal/SALES/PUBLIC/ORDERS

Try it in two minutes

No Snowflake or AWS account needed. Clone the repo for the sample data; this generates extract SQL for five sample tables from a fictional travel company:

git clone https://github.com/sidbhaumik/lakefreight.git
cd lakefreight && python3 -m venv .venv && .venv/bin/pip install -e ".[dev]"
.venv/bin/lakefreight plan --metadata examples/metadata_sample.csv --profiles examples/profiles_sample.csv --out generated

Output:

5 tables -> 17 work items in generated/
  status: NEEDS_PROFILE 1, READY 16
  ready by zone: INTERNAL 1, PII 2, RESTRICTED 13
  note: TRAVEL.WEB.CLICK_EVENTS: chunk column EVENT_TS: confirm it prunes before using it
  note: TRAVEL.LEGACY.MISC_NOTES: table PII/RESTRICTED flag missing; treated as sensitive

Open generated/RESTRICTED/TRAVEL.BOOKINGS.RESERVATION/0002_202203_202204.sql to see an unload with the xref join and its two reconciliation queries.

To register a table's unloaded files as Delta Lake (Iceberg works the same way with --format iceberg, a catalog and a table name):

.venv/bin/lakefreight register --format delta --table-root s3://my-egress/internal/TRAVEL/BOOKINGS/RESERVATION

Run the tests:

.venv/bin/python -m pytest -q

Documentation

Document Read it when
Migration guide You have a migration like this to run and want the method, step by step
Design decisions You want to know why it is built this way, and what was rejected
Live validation You want to see what was proven on a real Snowflake account, and what that run found

Claude skill

The repo includes a Claude Code skill that drives the generator. Open the repo in Claude Code and ask, for example, "generate extract SQL for the tables in my_metadata.csv". Claude normalizes the file, runs the generator, and reports which tables need a decision.

Repository layout

Path Purpose
src/lakefreight/cli.py The lakefreight command
src/lakefreight/discover.py lakefreight discover: the metadata CSV from Snowflake's metadata and classification
src/lakefreight/generate.py lakefreight plan: metadata CSV in, SQL files out
src/lakefreight/chunk_planner.py Packs months into chunks with gap-free predicates
src/lakefreight/renderer.py Renders the unload, source-count and unmatched-token SQL
src/lakefreight/templates/copy_unload.sql.j2 The COPY INTO template
src/lakefreight/reconcile.py Pass/fail rules, manifest and schema sidecar
src/lakefreight/planning.py Creates work items in Snowflake from the control tables
src/lakefreight/handlers.py Lambda handlers: list, submit, poll, reconcile, summarize
src/lakefreight/register.py lakefreight register: Delta Lake or Iceberg metadata over the unloaded files
infra/terraform/ Terraform/OpenTofu for the AWS and Snowflake side; see infra/README.md
infra/build_lambda.sh Builds the Lambda package
stepfunctions/extract_lane.asl.json State machine, one execution per lane
sql/ddl/ Control tables and the script that seeds them from metadata
src/lakefreight/defaults.toml Default settings: thresholds, zones, lanes, xref names. lakefreight config --write makes an editable copy
examples/ Sample metadata and month profiles
.claude/skills/ The Claude skill

Not included

  • A single-pass PARTITION BY unload for large tables with no date column.
  • Replication tracking, egress purge, and the delta pass for tables that change during the migration.
  • Adding a re-extracted chunk to a table that is already registered. Today, delete the table metadata and register again.

Contributing

See CONTRIBUTING.md. Changes are listed in CHANGELOG.md.

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases lakefreight

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229