Ray S.

Python data automation · PostgreSQL RLS security audits

Data you can check line by line.

Messy CSV exports, PDFs nobody wants to retype, or a multi-tenant database you are not sure is isolated? I write rerunnable Python that cleans and checks your data, sends rows that fail a check to a review list with a reason, and gives you a report you can check line by line.

4self-built demos, synthetic data only
35–254automated tests per demo
62merged PRs on a production SaaS
UTC+8Taiwan. I work by message.
§ 1

What I can do for you

CSV

CSV cleanup and validation

Deduplicate, normalize dates and amounts, and check required fields and totals against rules we agree in writing.

PDF → Excel

PDF tables to Excel

Invoices, quotes and statements into one workbook, with an OCR fallback for scanned pages. Rows that fail a check and every OCR value go to a review sheet.

PostgreSQL

Multi-tenant security review

A read-only Row-Level Security audit plus a live cross-tenant probe that runs inside a transaction that is always rolled back.

LLM

Privacy gate for LLM features

Redact emails, phone numbers and ID numbers before a prompt leaves your system, block prompts that contain card numbers, and keep an audit log that stores counts only.

§ 2

Work

OrderFlow cover: 18 source records become 7 ready, 9 needs review and 2 excluded
OrderFlow HTML report overview OrderFlow before and after comparison

Exhibit 01

OrderFlow: Order CSV Validation & Exception Routing

A reproducible Python workflow that turns an order CSV into normalized records, an exception queue, and an audit trail.

  • Checks required fields, dates, amounts, payment status, and duplicate IDs; every flagged row gets a plain-language reason.
  • HTML report with filtering, before/after comparisons, and CSV exports.
  • In the included synthetic dataset, 18 rows become 7 ready, 9 review, and 2 excluded records; every row is accounted for.
  • Rule-based, Python standard library only, tested against malformed inputs and conflicting duplicates.
35 testsPythonData validationRule-based

Independent portfolio demo with synthetic data. Developed with AI assistance; no client data or claimed business results.

pdf2excel cover: 20 synthetic PDFs, 62 clean rows plus 3 sent to review, 211 tests
Invoice PDF to Clean sheet rows Scanned page OCR values in the Exceptions sheet

Exhibit 02

PDF Tables to Excel with an Exceptions Sheet

Invoice, quote and statement PDFs in, one Excel workbook out.

  • Rule-based extraction (pdfplumber + YAML column mapping), not AI. Amounts saved as numbers.
  • Checks dates, required fields, qty × price = line total and line totals = document total.
  • Failed checks and scanned pages (read with local Tesseract OCR) go to an Exceptions sheet with a reason.
  • Reruns skip rows already exported; a ChangeLog records every fix-up.
211 testsPythonData extractionOCRExcel

Self-built demo, synthetic PDFs only. Developed with AI assistance; no client data or claimed business results.

Multi-tenant PostgreSQL isolation audit cover: 12 RLS checks, live probe, 65 tests
RLS audit report excerpt LLM egress gateway redaction demo

Exhibit 03

Multi-tenant PostgreSQL Isolation Audit (RLS + Live Probe)

A demo on a fictional B2B SaaS database, showing how I check whether one customer can see another customer's data.

  • 12 read-only checks on PostgreSQL row-level security: missing RLS, USING (true) policies, BYPASSRLS roles, leaky views, SECURITY DEFINER functions. Each finding comes with evidence, impact and a copy-paste SQL fix.
  • A live probe connects as the app role for tenant A, counts other tenants' rows it can see and tries one cross-tenant insert per tenant table. Everything is rolled back. On the sample schema it confirmed 5 leaking objects.
  • An LLM egress gateway that redacts emails, phone numbers and Taiwan national IDs before a prompt leaves the network, and blocks prompts that contain card numbers. Its audit log stores counts only.
  • Report in HTML (printable to PDF) plus JSON for CI.
65 tests · 4 on real PostgreSQLPostgreSQLDatabase securityData privacy

Self-built demo on a fictional schema. Developed with AI assistance; no client data or claimed business results.

Shelf count reconciliation cover: 12 exception rules, stress set of 28 planted faults, 254 tests
Annotated shelf image with an unknown object flagged Exceptions sheet and stress test results

Exhibit 04

Shelf Image Counts to Excel Stock Reconciliation

Shelf images and an expected-count CSV in, per-row counts and an Excel reconciliation out.

  • Counter: COCO-pretrained RF-DETR Small, no fine-tuning. It can't tell brands or SKUs apart; the shelf row decides the SKU.
  • 12 exception rules, e.g. count mismatch, unknown object, low confidence.
  • Stress set: 28 planted faults; 17 flagged, 8 no effect, 3 missed.
  • Test objects are drawn by code and tuned to the model: a workflow demo, not detection accuracy.
254 testsPythonComputer visionExcel

Self-built demo. Developed with AI assistance; no client data or claimed business results.

§ 3

Beyond the demos

62

merged pull requests as a backend contractor on a production multi-tenant SaaS (client name withheld, Apr–Aug 2026). PostgreSQL Row-Level Security audits: found that CI ran as a superuser, so RLS was never exercised in tests, and helped fix it. Built a privacy gate for LLM features.

~80

Python/Node.js scripts on the Shopify Admin API that automated the operations of my own small online store, including storefront health checks with alerts.

M.S.

Automation and Control, National Taiwan University of Science and Technology.

§ 4

How I work

  1. You send a de-identified sample and a written list of what "correct" means.
  2. I turn it into a fixed scope and an acceptance checklist before any work starts.
  3. You get the script, a sample run, documentation and a recorded walkthrough. No live meetings needed.
  4. After you accept, I fix bugs in the delivered scope for 14 days.

§ 5 · Contact

Send a few sample rows and what “done” looks like.

Or one PDF. I will reply with a fixed-price estimate.