cd /news/artificial-intelligence/from-scratch-in-python · home › topics › artificial-intelligence › article
[ARTICLE · art-162150] src=robcox2910.github.io ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

From Scratch in Python

Developer Rob Cox has published a free series of 18 from-scratch Python projects, aimed at curious people aged 12 and up, that let readers build working versions of an operating system (PyOS), a programming language (Pebble), a database, a search engine (PySearch), a version-control system (PyGit), an HTTP web server (PyWeb), a message queue (PyMQ), and a language model (PyLLM). Each project runs and is documented with source on GitHub, with PyLLM building on Pebble and PyStack joining all the projects together at the end. The series is pitched as a way to see how everyday software works without hidden "magic boxes," with every component written out to read, change, and break.

read2 min views2 publishedNov 1, 2026
From Scratch in Python
Image: source

Ever wondered what's really going on inside your computer? How does it run lots of programs at once? How does a search box find one word in a million pages? How does a chatbot write a sentence? Here you build each of those things yourself, one small step at a time, and find out.

A series of 18 projects that build real things from scratch, so you can see how they work. They're all free, and written for curious people aged 12 and up.

Why build it yourself? #

  • It really works. Every project runs. Switch on your own little operating system and type commands into it, write a program in your own programming language, or ask your own database questions.
  • Explained with everyday things. Databases are explained with trading cards, search engines with a librarian, and Git with fingerprints and a diary. Grown-ups who never got to look inside are very welcome too.
  • No magic boxes. Nothing important is hidden away. Every clever bit is written out for you to read, change and even break.
  • Small steps. Each idea builds on the one before, so you're never thrown in at the deep end.

How to start #

Pick PyOS (a pretend computer you can switch on and type into) or Pebble (your very own programming language) and have a play. After that, follow whatever sounds fun: each card says which projects it builds on. PyStack, at the very end, joins everything together.

Start here #

Storage #

Systems #

PyCrypt Cryptography. Source #

PyNet Computer networking. Source #

PyWeb HTTP web servers. Builds on PyNet, PyCrypt. Source #

PyGit Version control. Source #

PySearch Search engines. Source #

PyMQ Message queues. Builds on PyNet. Source #

PyLLM Language models (the brain). Builds on Pebble. Source #

PyScheduler Job scheduling. Builds on PyDB, PyNet, PyWeb, PyMQ. Source

Putting it together #

Made by Rob Cox. Found a mistake or have an idea? Open an issue on any project's repository.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @rob cox 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/from-scratch-in-pyth…] indexed:0 read:2min 2026-11-01 · —