popolo - code simple..


popolo - code simple..

Masonite Project - Python Web Framework Installation

Masonite Project - Python Web Framework Installation

Theodoros Kafantaris's photo
Theodoros Kafantaris
·Apr 15, 2022·

2 min read

Table of contents

  • Some Notable Features Shipped With Masonite
  • Requirements
  • Installation
  • Activating Our Virtual Environment

In this series of posts, I want to present a Python web framework that I found and I believe it makes sense to see how it handles things. The very interesting thing for me is that it brings Laravel (php web framework) goods to Python world. According to Masonite Documentation:

Stop using old frameworks with just a few confusing features. Masonite is the developer focused dev tool with all the features you need for the rapid development you deserve. Masonite is perfect for beginners getting their first web app deployed or advanced developers and businesses that need to reach for the full fleet of features available. Masonite works hard to be fast and easy from install to deployment so developers can go from concept to creation in as quick and efficiently as possible. Use it for your next SaaS! Try it once and you’ll fall in love.

Some Notable Features Shipped With Masonite

  • Mail support for sending emails quickly.
  • Queue support to speed your application up by sending jobs to run on a queue or asynchronously.
  • Notifications for sending notifications to your users simply and effectively.
  • Task scheduling to run your jobs on a schedule (like everyday at midnight) so you can set and forget your tasks.
  • Events you can listen for to execute listeners that perform your tasks when certain events happen in your app.
  • A BEAUTIFUL Active Record style ORM called Masonite ORM. Amazingness at your fingertips.
  • Many more features you need which you can find in the docs!

These, among many other features, are all shipped out of the box and ready to go.


In order to use Masonite, you’ll need:

  • Python 3.7+
  • Latest version of OpenSSL
  • Pip3


We are creating a folder where we will install Masonite.

$ mkdir blog
$ cd blog

Activating Our Virtual Environment

$ python -m venv venv
$ source venv/bin/activate


Now we are ready to install Masonite.

pip install masonite


Then start a new project:

$ project start .


This will create a new project in the current directory.


Once installed you can run the development server:

python craft serve


So we are ready to open the browser to the following url and access the homepage.


Congratulations! You have done it!

Share this