Yousof Selim Résumé
All projects

DataPassport

Open source · Python + DuckDB

Portable dataset fingerprints, privacy-safe profiles, diffs and CI contracts powered by DuckDB.

  • Python
  • DuckDB
  • Parquet / Arrow
  • Polars
  • pandas
114pytest tests passing, plus ruff and mypy clean across 24 source files
10Mrows benchmarked across 26 tasks with zero errors
8/8quickstart Jupyter notebook cells executing cleanly against the built wheel

Benchmarked and verified locally on macOS Apple Silicon (DuckDB 2.0.1) on 25 Nov 2026. CI runs the tests on Linux, macOS and Windows for Python 3.11 to 3.14.

In short

I built a Python SDK, CLI and GitHub Action that gives every dataset version a stable content fingerprint, a privacy-safe profile, schema/row diffs and self-contained HTML reports—benchmarked up to 10 million rows.

Read the full overview

Data pipelines silently break when upstream schemas drift, rows duplicate or distributions shift, yet sharing raw sample rows across teams risks leaking sensitive records. DataPassport computes a deterministic dp-fp/1 content fingerprint over CSV, Parquet, JSON, Polars, pandas and DuckDB sources, generates privacy-safe profiles with 101 quantiles, compares versions with rename detection and keyed diffs, enforces YAML/JSON/TOML data contracts and renders self-contained HTML and Jupyter reports. Open source on GitHub; benchmarked on 1M and 10M rows with 0 failures across 26 tasks.

The problem

Teams need portable proof of what changed between dataset versions without copying sensitive rows into CI logs or tickets.

  1. 1

    File-level SHA-256 hashes change on harmless Parquet re-writes or row reordering.

  2. 2

    Schema renames, null spikes and silent row drops often slip past basic row-count checks.

  3. 3

    Data-quality tools often require heavy hosted infrastructure just to gate a pull request.

My part

What I did

  • Order-independent dp-fp/1 fingerprint specification, SQL engine and Python reference vectors
  • Multi-source adapters (CSV, JSON, Parquet, Polars, pandas, Arrow, DuckDB)
  • Profiling, schema/keyed diffing, YAML/JSON/TOML contracts and OpenLineage/Pandera integrations
  • Self-contained burgundy-seal HTML and Jupyter reports, 1M/10M-row benchmarks and test suite

Not mine

  • DuckDB, Arrow and the other open-source tools it is built on.
  • It is not on PyPI yet, so you install it from a source checkout.

Solo, with AI coding agents: dp-fp/1 spec, DuckDB SQL engine, contracts, HTML/Jupyter reports, CLI, benchmarks and tests · Solo · 2026-11 – Present

Hard parts

1Cross-version DuckDB bit-shift compatibilityOn DuckDB 1.1.0, md5_number() returns signed HUGEINT instead of UHUGEINT, causing right-shift sign extension and ConversionException on CAST to UBIGINT.

What I weighed

  • Drop DuckDB 1.1 support
  • Mask the shifted upper lane explicitly with & 18446744073709551615 before casting

What I did

Masked the shifted 64-bit upper lane in engine.py and verified identical lane sums against DuckDB 1.1.0 and 2.0.1.

The cost

One extra bitwise AND in the fingerprint SQL expression.

How I checked

Ran isolated wheel tests on DuckDB 1.1.0 (112/114 pass; 2 known DuckDB 1.1 edge cases documented) and DuckDB 2.0.1 (114/114 pass).

Result

Identical dp-fp/1 fingerprints across DuckDB 1.1 and 2.x.

Screens

Testing

114 unit, integration, property and malformed-input tests, strict mypy across 24 files, isolated wheel CLI check and full notebook execution.

24source files checked cleanly by mypy with zero issues
26benchmark tasks verified across 1M and 10M rows (Parquet & CSV)

Notebook widget dependency bug fixed

Running the Jupyter quickstart in an isolated wheel environment exposed a missing optional widget dependency when rendering HTML reports inline; fixed and verified across all 8 notebook cells.

What I learned

What worked

  • Testing the built wheel in a clean isolated environment caught both the Jupyter widget bug and the DuckDB 1.1 HUGEINT sign-extension bug.

What I underestimated

  • Subtle SQL return-type differences (HUGEINT vs UHUGEINT) across minor DuckDB releases.

What I’d do next

  • Push to GitHub for the cross-OS CI matrix and publish 0.1.0 to TestPyPI and PyPI on approval.

Hiring graduates for 2027?

I’m looking for software engineering roles from August 2027, anywhere across the stack, and I’m happy to relocate.