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.
Conventions you can read. Architecture that holds weight.
Simple to understand
Clear conventions and readable code, from your first route to a deployed app.
Built to scale
Queues, caching, scheduling, events and a clean service-container architecture grow with you to production SaaS.
The power of Python
The whole Python ecosystem behind a batteries-included framework.
Docs anyone can follow
Famously clear docs and step-by-step tutorials.
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.
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()
Four commands. One running server.
pip install masonite-frameworkINSTALLproject start .CREATE PROJECTproject installINSTALL DEPSpython craft serveRUN DEV SERVEREverything you need, out of the box.
Use what you need, when you need it. Hover any tool to see it built.
Active Record ORM
A beautiful, expressive ORM — relationships, migrations and query builder included.
→Routing
Clean, expressive routes.
→Controllers
Organize logic in classes.
→Auth
Sign-in, guards, permissions.
→Queues & Jobs
Defer slow work to the background.
→Task Scheduling
Cron-like jobs, in code.
→Send email through any driver.
→Notifications
Reach users across channels.
→Events
Decouple with listeners.
→Validation
Rule-based input checks.
→Facades
Clean static access to services.
→Tinker REPL
Explore your app live.
→API Development
Build JSON APIs with ease.
→Caching
Speed up with any store.
→Logging NEW
Multi-driver logging stack.
→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 changelogLog facade: terminal, single, daily, stack, syslog & slack drivers.pip install masonite-framework.Lay your first brick.
The power of Python on a batteries-included framework — with docs anyone can follow.