Generate boilerplate for apps, web pages, and components.
Project description
devboiler
Fast boilerplate generator for applications, web pages, and components. Use it as a Python library and a CLI.
Installation
pip install devboiler
CLI usage
List all available boilerplates:
devboiler list
Quick examples:
# Python class
devboiler create python-class User
# HTML page
devboiler create html index --title "My Homepage"
# React component (function or class)
devboiler create react-component Navbar --type function
# Python project skeleton
devboiler create project my_app --type python
# Flask app (app.py)
devboiler create flask-app my_flask
# FastAPI app (main.py)
devboiler create fastapi-app my_api
# Node.js script (index.js)
devboiler create node-script my_script
# Express.js app (server.js)
devboiler create express-app my_express
# Python CLI (argparse)
devboiler create python-cli my_cli
# React component with CSS module
devboiler create react-component-css Navbar
Interactive wizard:
# Fully interactive (prompts for framework, docker, tests, linters)
devboiler new
# Non-interactive with flags
devboiler new my_app --framework fastapi --db none --docker --tests --linters
Get help with examples:
devboiler --help
Python API
from devboiler import (
create_python_class,
create_html_page,
create_react_component,
create_project,
create_flask_app,
create_fastapi_app,
create_node_script,
create_express_app,
create_python_cli,
create_react_component_with_css,
scaffold_project,
)
create_python_class("User")
create_html_page("index", title="My Homepage")
create_react_component("Navbar", type="function")
create_project("my_app", type="python")
# High-level scaffold
scaffold_project(
name="my_service",
framework="fastapi",
db="none",
include_docker=True,
include_tests=True,
include_linters=True,
)
Extending
Templates live under devboiler/templates. Add or customize them to fit your needs.
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file devboiler-0.3.0.tar.gz.
File metadata
- Download URL: devboiler-0.3.0.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16a72073e1f547c8b26fdba4ad4000fcf8d5466614d07d6d1f26cd9303e606b9
|
|
| MD5 |
5c23fd5ebc263352492cfdbca0fad7e5
|
|
| BLAKE2b-256 |
3d04805ec7bbab686bfdd7e89205f4b77f13cdd32d009c3f3d18cadd91d8da83
|
File details
Details for the file devboiler-0.3.0-py3-none-any.whl.
File metadata
- Download URL: devboiler-0.3.0-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83bdf3a662da154e1643bbc9a5ebebcb34b4f9a09ad529e61cc48e515c7bec25
|
|
| MD5 |
eba723a5ac11312be1b982a93b124794
|
|
| BLAKE2b-256 |
17dc1ce05b9e90057dc2402f0d562036b269dac6a600e779b5aaf0c60c8e6037
|