A python development boilerplate generator
Project description
boilrpy is a Python project automation tool that simplifies the process of creating new Python projects. It generates a standardized project structure, including essential files and configurations, allowing developers to quickly start working on their Python projects.
Installation
You can install boilrpy directly from PyPI:
pip install boilrpy
Quick Start
Create a new Python project with boilrpy:
from boilrpy import create_project
create_project(
name="my_awesome_project",
version="0.1.0",
license="MIT",
use_poetry=True
)
Or use the command-line interface:
boilrpy
Features
- Create a new Python project with a standardized structure
- Generate essential files (LICENSE, .gitignore, README.md, etc.)
- Initialize a Git repository
- Set up dependency management (Poetry or pip)
- Create a Dockerfile and .dockerignore
- Support for multiple license types
- Configurable project
Usage
To create a new Python project using the CLI, run:
boilrpy
Follow the prompts to configure your project. You'll be asked for:
- Project name
- Version
- License type
- Dependency management preference (Poetry or pip)
- And more...
Project Structure
boilrpy generates the following project structure:
Without flask
your_project/
├── Dockerfile (if using Docker)
├── .dockerignore (if using Docker)
├── .pylintrc (if using pylint)
├── .gitignore
├── LICENSE
├── README.md
├── CHANGELOG.md
├── pyproject.toml (if using Poetry)
├── poetry.lock (if using Poetry)
├── requirements.txt
├── main.py (project entrypoint)
└── tests/
└── __init__.py
With flask
your_project/
├── Dockerfile (if using Docker)
├── .dockerignore (if using Docker)
├── .pylintrc (if using pylint)
├── .gitignore
├── .env
├── LICENSE
├── README.md
├── CHANGELOG.md
├── pyproject.toml (if using Poetry)
├── poetry.lock (if using Poetry)
├── requirements.txt
├── app.py (flask entrypoint)
├── static/ (assets folder)
│ └── css/
│ | └── style.css
│ └── js/
│ └── script.js
├── templates/ (html files)
│ └── base.html
| └── index.html
└── tests/
└── __init__.py
Run this command to launch server:
flask run
By default your flask app is accessible at this address: http://127.0.0.1:5000 (see app.py)
This configuration is for development
Configuration
Boilrpy uses sensible defaults, but you can customize the project creation process by answering the prompts during project creation.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
If you encounter any problems or have any questions, please open an issue on the GitHub repository.
Links
Project details
Release history Release notifications | RSS feed
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 boilrpy-0.7.0b1.tar.gz.
File metadata
- Download URL: boilrpy-0.7.0b1.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fe7c33ea23d3cf8e85a436eac11cabfc1a4c3c17bd0c5fbcd1f95cf64daf3ef
|
|
| MD5 |
2d36ef2aeaff00f3f908226787dc1492
|
|
| BLAKE2b-256 |
f31ad3072c16167daa17c885c04ef278c6aa7f201168ec3038d4a6c7292dd514
|
File details
Details for the file boilrpy-0.7.0b1-py3-none-any.whl.
File metadata
- Download URL: boilrpy-0.7.0b1-py3-none-any.whl
- Upload date:
- Size: 23.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24bb3e29c876c5802687ba58955e61c0a1f94f26b32196e14a93f2c0b10a8e8e
|
|
| MD5 |
b23d7b890ed00a2e7c024c3702a6de68
|
|
| BLAKE2b-256 |
fac21ec968702d0663fe5a24647899655c044e32840cdd3bf767923e0f5de43d
|