Python Boilerplate

Open-source Python projects categorized as Boilerplate

Top 23 Python Boilerplate Projects

  • cookiecutter-django

    Cookiecutter Django is a framework for jumpstarting production-ready Django projects quickly.

    Project mention: Is there an easy approach of deploying Celery? | /r/django | 2023-05-09
  • attrs

    Python Classes Without Boilerplate

    Project mention: Starlite updates March '22 | 2.0 is coming | /r/Python | 2023-03-26

    Pydantic is by far not the only library of its kind, with prominent members of the same class being attrs, cattrs or even plain dataclasses for some use cases.

  • Sonar

    Write Clean Python Code. Always.. Sonar helps you commit clean code every time. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • flask-base

    A simple Flask boilerplate app with SQLAlchemy, Redis, User Authentication, and more.

  • fastapi-react

    🚀 Cookiecutter Template for FastAPI + React Projects. Using PostgreSQL, SQLAlchemy, and Docker

  • cookiecutter-django-rest

    Build best practiced apis fast with Python3

  • cruft

    Allows you to maintain all the necessary cruft for packaging and building projects separate from the code you intentionally write. Built on-top of, and fully compatible with, CookieCutter.

    Project mention: copier VS cruft - a user suggested alternative | | 2023-05-05
  • fastapi-boilerplate

    FastAPI boilerplate for real world production (by teamhide)

    Project mention: [Python] How to implement a transactional decorator in FastAPI + SQLAlchemy - with reviewing other approaches | | 2023-05-29

    from typing import Optional from contextvars import ContextVar from sqlalchemy.ext.asyncio import ( create_async_engine, async_scoped_session, async_sessionmaker, AsyncSession, ) from ..config import config # some hints from: db_session_context: ContextVar[Optional[int]] = ContextVar( "db_session_context", default=None ) engine = create_async_engine(url=config.DB_URL) def get_db_session_context() -> int: session_id = db_session_context.get() if not session_id: raise ValueError("Currently no session is available") return session_id def set_db_session_context(*, session_id: int) -> None: db_session_context.set(session_id) AsyncScopedSession = async_scoped_session( session_factory=async_sessionmaker(bind=engine, autoflush=False, autocommit=False), scopefunc=get_db_session_context, ) def get_current_session() -> AsyncSession: return AsyncScopedSession()

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

  • flaskSaaS

    A great starting point to build your SaaS in Flask & Python, with Stripe subscription billing 🚀

  • PySpark-Boilerplate

    A boilerplate for writing PySpark Jobs

  • Wagtail-Pipit

    Pipit is a Wagtail CMS boilerplate which aims to provide an easy and modern developer workflow with a React-rendered frontend.

  • fastapi-layered-architecture

    FastAPI Layered Architecture

    Project mention: FastAPI Repository Pattern - cookiecutter template | /r/FastAPI | 2023-03-23

    After some time looking for the best FastAPI structure and getting inspired from existing resources like FastAPI Best practices and FastAPI Layered architecture I created this template.

  • cookiecutter-poetry

    A modern cookiecutter template for Python projects that use Poetry for dependency management

    Project mention: Here are 5 Python project starter templates after digging through 100s of them that I think are spot o | /r/Python | 2022-06-29
  • python-webpack-boilerplate

    Django Webpack boilerplate & Flask Webpack boilerplate

  • FastAPI-Production-Boilerplate

    A scalable and production ready boilerplate for FastAPI

    Project mention: Structured and Opinionated FastAPI Boilerplate | /r/Python | 2023-02-23
  • python-django-drf-boilerplate

    Django Boilerplate for starting fresh new DRF projects

  • mkdocs-material-boilerplate

    MkDocs Material Boilerplate (Starter Kit) - Deploy documentation to hosting platforms (Netlify, GitHub Pages, GitLab Pages, and AWS Amplify Console) with Docker, pipenv, and GitHub Actions.

    Project mention: Working docker-compose.yml file for mkdocs-material? | /r/selfhosted | 2023-01-29

    The Github repose doesn't have a compose file, and I came across another one here. Still no luck.

  • paprika

    Paprika is a python library that reduces boilerplate. Heavily inspired by Project Lombok.

  • cookiecutter-django-mysql

    Cookiecutter Django is a framework for jumpstarting production-ready Django projects quickly.

  • fastapi-boilerplate

    FastAPI REST API pre-configured with a database. This will get you up and running with CRUD operations quickly. (by WMRamadan)

    Project mention: GitHub Actions for Python Development | | 2022-12-21

    Our example will include a FastAPI application, using pytest to run our tests, pylint for linting check, on python versions (3.8, 3.9, 3.10, 3.11) with (Windows, Mac, Linux) platforms. You can find this example on GitHub here.

  • ptb-django-cookiecutter

    A simple cookiecutter to create Python Telegram bots, wrapped with Django.

  • goli

    A sophisticated boilerplate generator based on best practices and modern useful templates

  • django_boilerplate

    Django ready-made web applications for various purposes.

  • rasa-sample-nlu-bot

    A sample RASA powered NLU chatbot boilerplate which showcases the various different messaging features of MACHAAO Chat Apps Platform via a custom connector

    Project mention: Is an automated support chatbot powered by GPT-3 a bad idea? | /r/GPT3 | 2022-11-04
  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-05-29.

Python Boilerplate related posts


What are some of the best open-source Boilerplate projects in Python? This list will help you:

Project Stars
1 cookiecutter-django 10,547
2 attrs 4,763
3 flask-base 2,885
4 fastapi-react 1,650
5 cookiecutter-django-rest 1,406
6 cruft 882
7 fastapi-boilerplate 570
8 flaskSaaS 558
9 PySpark-Boilerplate 388
10 Wagtail-Pipit 191
11 fastapi-layered-architecture 190
12 cookiecutter-poetry 177
13 python-webpack-boilerplate 123
14 FastAPI-Production-Boilerplate 106
15 python-django-drf-boilerplate 101
16 mkdocs-material-boilerplate 98
17 paprika 60
18 cookiecutter-django-mysql 29
19 fastapi-boilerplate 27
20 ptb-django-cookiecutter 22
21 goli 20
22 django_boilerplate 17
23 rasa-sample-nlu-bot 7
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives