Picture Pytigon not as a monolithic beast but as a finely tuned orchestra, where every instrument knows its part and can play solo or in harmony with others. The architecture breathes the principle of separation of concerns while allowing fluid recombination — like Lego bricks that can form a castle, a spaceship, or a robot, all from the same set.
Pytigon decomposes into three fundamental layers, each with its own soul:
| Layer | Role | Soul |
|---|---|---|
| Client | The face of the application | Eye candy, user interaction, local computation |
| Server | The brain | Business logic, orchestration, data processing |
| Database | The memory | Persistent state, the source of truth |
What makes Pytigon special is that these layers can live on a single machine — a developer's laptop pounding coffee at 2 AM — or spread across continents, connected by nothing but TCP packets and hope.
The system doesn't impose a single topology. Instead, it offers a spectrum:
[row] This flexibility means you can start prototyping with SQLite embedded in a desktop app, and when the investors come knocking, pivot to a cloud PostgreSQL backed by Gunicorn and Nginx — without rewriting a single line of business logic.
At the core of the server beats Django. Pytigon doesn't wrap Django in bubble wrap; it extends it with surgical precision:
models.Model with a JSON column that acts as a flexible schema extension. Think of it as Django models wearing comfortable stretch pants..ihtml files compile into standard Django templates. The indentation-based syntax eliminates the visual noise of {% endblock %} tags, turning template code from a verbose contract into readable prose.Between client and server flows a river of protocols:
Pytigon speaks two client languages natively:
Beneath the visible layers hums a virtual filesystem that abstracts storage into a uniform interface. Files can live on disk, in the database, on remote servers, or in memory — and the application code never needs to know the difference.
Pytigon is not a closed garden. Extension points are everywhere:
The architecture document for specific components continues in the subsequent chapters. For now, remember this: Pytigon is what you get when a Django developer, tired of writing boilerplate, decides to build a framework that does the boring stuff so you can focus on the interesting stuff.