API Design in Python
Design an API other people can rely on
Eight places, because one person reviews every pull request
Not sure yet? Book a free trial lesson
Who it is for. Developers who already write Python and have never designed an HTTP API on purpose: graduates, self taught developers, and backend developers whose services grew by accident. You can write a function and read a traceback; you need never have written a test that meant anything.
The path
Each step is built around doing the work, with a facilitator who asks rather than lectures. Read about how we teach
- 1
Week 1, Shape: what an API says before it does anything
Resources rather than verbs, and the representation on the wire: what a resource is, in JSON, with times that carry their zone. Status codes that mean something, 201 with a Location, 204, and the difference between 404 and 403 when the answer itself would leak. Validation at the edge with Pydantic, and the first endpoint driven test first against the real application, no mock in sight.
- 2
Week 2, Seams: the database, the clock and the outside world
A deadline is a rule about time, so time becomes something you command rather than wait for. Build Nullable infrastructure in Shore's sense: create_null with configurable responses and output tracking, for the store, the clock and the notifier. Your tests run in milliseconds against your own code, not against a mock of it.
- 3
Week 3, The hard parts: conflicts, repeats and errors
Two people claiming the last of something, and the same request arriving twice: conflict and idempotency, the two problems every real API meets and most tutorials skip. Errors as a contract rather than a stack trace, in the problem details shape. Authorisation that answers who may read whose record, and the design decision hidden inside a 404.
- 4
Week 4, Keeping it honest: architecture, evolution and shipping
An architecture test that forbids a route from touching the database, so the layering survives the next hurried change. Narrow integration tests against a real Postgres, pagination and filtering, and adding a field without breaking a client. Then you ship it, and read your own API back as a stranger would.
What you leave with
Taught live in a small group, remote over video, inside EkoFlow, our open source development environment.
- Twelve evenings over four weeks, three evenings a week, Tuesday, Thursday and Friday, 18:30 to 20:30 Athens time, live in a small group
- One real API, designed and shipped by you, with the awkward parts nobody writes about, conflicts, repeats and the rules that depend on time
- Every line written test first, with no mock anywhere: the database, the clock and the outside world become Nullables you can command
- Your code reviewed by a person between sessions, the way a strong team reviews
- An architecture test that keeps the design honest after you stop looking
- The Solo plan on this platform, yours forever
Your teacher
Anastasios Orfanidis
Founder and lead teacher
Anastasios spent thirteen years shipping production software for regulated clients before founding EkoHacks.
He wrote EkoLite and the EkoHacks CLI, built this dojo, and teaches test driven development and testing without mocks the way he works himself.
“EkoHacks has been innovative and mind changing. It tweaks the way we learn, where we think about speed first rather than understanding what our code is doing. It's no longer about speed and ending up in chaos.”
The Solo plan on this platform, yours forever. Your course work itself earns your belt: merged pull requests, green builds and streaks pay XP from the first week.
After you book
- 1
Your receipt, straight away
Paddle, our merchant of record, takes the payment securely and emails your receipt.
- 2
A message from a person
Within 2 working days we write with everything you need to start: the video link, the team board and how to set up.
- 3
After the last session
Your fork, your belt and your certificate stay yours, with the Solo plan on this platform.
€120 once
Starts when the group is full; write to us for the date
Prices include VAT. Change of mind and cancellation terms are on the refunds page.
Every seat bought here is taught online, live over video. If you hold a Greek training voucher, write to us and we will arrange your place directly. connect@ekohacks.com
€120