Tim

Tim · Software developer · Python

Practical software, built from the request to the database.

I use Python to turn product rules into dependable APIs and cloud systems. My work focuses on secure boundaries, explicit data models, and tests that exercise the real failure cases.

01 / Interaction lab

Interfaces you can control without touching the screen.

Gesture Control Lab turns webcam landmarks into stable, semantic UI commands. Recognition runs locally in the browser, then a separate intent layer filters noisy detections before they reach familiar controls.

View gesture-control ↗
Local camera Processing on device
Detected gesture ✋ Raised hand Stable · 742 ms
Popup Button group Tabs

From movement to intent

  1. 01DetectMediaPipe finds hand landmarks in each frame.
  2. 02ClassifyScale-aware heuristics identify pose or movement.
  3. 03StabiliseHold, cooldown, and re-arm rules reject noise.
  4. 04OperateSemantic commands control accessible UI components.

Gesture vocabulary

  • ✋Arm / resume
  • ✊Pause / select
  • 👍Activate
  • ↔Swipe
  • 🔍Pinch zoom
  • 🙏Two-hand pose

TensorFlow.js · Hand Pose Detection · MediaPipe Hands · Vanilla JavaScript

02 / Python

Packages are useful when they solve a real constraint.

The stack changes with the problem. For cloud authentication, Python connects managed AWS services and keeps security rules small enough to audit. For a booking system, it defines an HTTP contract and protects database invariants under concurrent requests.

  • API contractsFastAPI · Pydantic
  • Data integritySQLAlchemy · PostgreSQL · Alembic
  • Cloud systemsboto3 · AWS Lambda · DynamoDB
  • Verificationpytest · unittest · LocalStack · HTTPX

03 / Selected work

Two Python systems, from package choice to real usage.

Live cloud application

AWS passwordless authentication

A serverless sign-in flow that sends a one-time magic link and six-digit code, consumes either credential exactly once, and issues a JWT for protected API access. The system is deployed on AWS and managed as Terraform infrastructure.

AWS authentication system architecture A user reaches API Gateway through Route 53 and a custom domain. API Gateway invokes request, verification, authorization, and protected backend Lambda functions. The functions use DynamoDB and email delivery to complete the authentication flow. User browser Route 53 Custom domain auth.ti5g.com API Gateway HTTP boundary Request link Lambda Verify link Lambda JWT authorizer Lambda Protected API Lambda Email delivery One-time link + code DynamoDB Atomic challenges
Architecture adapted from the project README. Credentials are stored as keyed digests, and paired link/code records are consumed in one DynamoDB transaction.

Python packages in practice

  • boto3

    Writes challenge records, performs conditional DynamoDB transactions, and reads managed secrets.

  • PyJWT

    Issues short, signed authorization tokens and validates them at the protected API boundary.

  • resend

    Delivers the login link and code while keeping the provider credential outside source control.

  • unittest

    Covers parsing and security rules; LocalStack integration tests exercise replay and concurrency.

Real usage

  1. 01A user requests access with an email address.
  2. 02The service sends two ways to prove possession.
  3. 03The first valid link or code wins atomically.
  4. 04A signed JWT unlocks the protected endpoint.
  • Single-use under concurrency
  • Bounded code attempts
  • Terraform-managed AWS deployment

Local production-shaped API

Hotel booking API

A FastAPI and PostgreSQL service for hotel search, room availability, booking creation, and reference-based lookup. It is designed to run locally with Docker Compose while preserving production concerns such as migrations, typed settings, transactions, and concurrent booking safety.

POST /api/v1/bookings 201 Created
{
  "hotel_id": "0000…0001",
  "guest_name": "Ada Lovelace",
  "guest_count": 2,
  "check_in_date": "2027-09-01",
  "check_out_date": "2027-09-03",
  "room_type": "double"
}
Booking created Room 204 · Double ref_7d6f…e1a2

Python packages in practice

  • FastAPI

    Defines thin HTTP routes, dependency injection, error responses, and generated OpenAPI documentation.

  • SQLAlchemy

    Keeps async database queries in repositories and locks candidate rooms inside the booking transaction.

  • Pydantic

    Validates request and response contracts and loads environment-aware application settings.

  • Alembic + asyncpg

    Version the PostgreSQL schema and provide the async driver used by the API at runtime.

Real usage

  1. 01Search hotels and filter rooms for a full date range.
  2. 02Select the smallest suitable available room.
  3. 03Create a booking inside a locked transaction.
  4. 04Retrieve it later using a public reference.
  • PostgreSQL overlap constraint
  • Deterministic seed and reset
  • Ruff, mypy, pytest, and integration checks

04 / Contact

Have a useful problem to solve?

Start a conversation ↗