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. Learn more →
Top 23 Python Boilerplate Projects
-
cookiecutter-django
Cookiecutter Django is a framework for jumpstarting production-ready Django projects quickly.
-
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.
-
-
fastapi-react
🚀 Cookiecutter Template for FastAPI + React Projects. Using PostgreSQL, SQLAlchemy, and Docker
-
-
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 | libhunt.com/r/copier-org/copier | 2023-05-05 -
Project mention: [Python] How to implement a transactional decorator in FastAPI + SQLAlchemy - with reviewing other approaches | dev.to | 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: https://github.com/teamhide/fastapi-boilerplate/blob/master/core/db/session.py 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 🚀
-
-
Wagtail-Pipit
Pipit is a Wagtail CMS boilerplate which aims to provide an easy and modern developer workflow with a React-rendered frontend.
-
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 -
-
-
-
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.
The Github repose doesn't have a compose file, and I came across another one here. Still no luck.
-
-
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)
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.
-
-
-
-
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
Python Boilerplate related posts
- su (Super User) tools: Lightweight CLI, Logging, and Benchmarking Utilities
- Serverless Lambda Rest-API is good?
- Data Classification: Does Python still have a need for class without dataclass?
- What new Python features are the most useful for you?
- GitHub Actions for Python Development
- FastAPI REST API pre-configured with a database. This will get you up and running with CRUD operations quickly. Use this starter, boilerplate for all your new FastAPI projects.
- FastAPI REST API pre-configured with a database. This will get you up and running with CRUD operations quickly. Use this starter, boilerplate for all your new FastAPI projects.
-
A note from our sponsor - Sonar
www.sonarsource.com | 5 Jun 2023
Index
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 |