REV. 5.0 — Masonite 5 is here Read the changelog
MASONITE 5 · THE PYTHON FRAMEWORK FOR BUILDERS

We laid the foundation. You craft the app.

Masonite is batteries-included Python — mail, queues, an Active Record ORM, task scheduling, a powerful craft CLI and crystal-clear docs. Go from foundation to deploy, fast.

REQUIRES PYTHON 3.10–3.13
FIG. 01 Simple to learn. Built to scale.

Conventions you can read. Architecture that holds weight.

01

Simple to understand

Clear conventions and readable code, from your first route to a deployed app.

02

Built to scale

Queues, caching, scheduling, events and a clean service-container architecture grow with you to production SaaS.

03

The power of Python

The whole Python ecosystem behind a batteries-included framework.

04

Docs anyone can follow

Famously clear docs and step-by-step tutorials.

FIG. 02 Developer experience

An expressive workflow, by design.

The craft CLI

Scaffold controllers, models and migrations from one command — convention over configuration.

Facades

Reach core services through a clean, static-style API — no manual wiring.

›_

Tinker REPL

An interactive shell with your whole app loaded. Poke at models and queries live.

Service container

A clean IoC container resolves and injects dependencies so your code stays decoupled.

FIG. 02 — app/
from masonite.routes import Route

Route.get("/", "WelcomeController@show")
Route.get("/users/@id", "UserController@show")
from masonite.views import View
from masonite.controllers import Controller

class WelcomeController(Controller):
    def show(self, view: View):
        return view.render("welcome")
from masoniteorm.models import Model

class User(Model):
    __fillable__ = ["name", "email"]

# Active Record, expressive queries
users = User.where("active", 1).order_by("name").get()
FIG. 03 · ASSEMBLING SCALE 1:1
FIG. 03 From foundation to deploy

Four commands. One running server.

1
pip install masonite-frameworkINSTALL
2
project start .CREATE PROJECT
3
project installINSTALL DEPS
4
python craft serveRUN DEV SERVER
Read the full guide
REV. 5.0 What's new in 5.0

A new logging system, a modern runtime, a new home.

Masonite 5 ships the biggest changes since 4.0 — and moves the whole project to masonite.dev.

Read the changelog
LOG.SYS
New logging systemLog facade: terminal, single, daily, stack, syslog & slack drivers.
RUNTIME
Python 3.10–3.13A modern, supported runtime across the board.
ORM 3.X
Masonite ORM 3.xUpdated core dependencies, including Pendulum 3.
PKG
New packageInstall with pip install masonite-framework.
FIG. 05 — GET STARTED

Lay your first brick.

The power of Python on a batteries-included framework — with docs anyone can follow.