Skip to main content

A python development boilerplate generator

Project description

Logo

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.

PyPI version License: MIT Python Coverage

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

boilrpy-0.6.2.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

boilrpy-0.6.2-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file boilrpy-0.6.2.tar.gz.

File metadata

  • Download URL: boilrpy-0.6.2.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for boilrpy-0.6.2.tar.gz
Algorithm Hash digest
SHA256 83bb705cacb8b0c9ecb9d1ced70a8b91cebf132bcca6043c7ae9cb1a64bc1e79
MD5 832aa7aab09d5afd0d375c62b507c12b
BLAKE2b-256 b64fe5fe6193c92d90d159c07267472cc3cbfb119c98a8e6776fb87fa34778b0

See more details on using hashes here.

File details

Details for the file boilrpy-0.6.2-py3-none-any.whl.

File metadata

  • Download URL: boilrpy-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 23.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for boilrpy-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d197d5df65df671ce7396358b3c5dcb2214719be1dbd30d1a2f1813cb65f115b
MD5 cd0175b9fe94306ad7a4847a04fead95
BLAKE2b-256 749fee31cba51de784ac58abdb8ea9f48dbc5d51e8ec641ec3123d05d0a2deb4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page