Create Django projects and apps with layered architecture.
Project description
Django Layered Start
Django Layered Start is a powerful CLI tool that helps you kickstart your Django projects by automatically creating a clean, SOLID-compliant layered architecture. This package sets up your Django project and apps with separate layers for presentation, application, domain, and infrastructure, providing you with an organized and scalable foundation for your development.
๐ Features
- Automated Project Setup: Instantly generate a new Django project using
django-admin. - Layered App Creation: Create Django apps with a predefined folder structure:
- Presentation: Contains view logic and URL configurations.
- Application: Houses business logic and service layers.
- Domain: Includes domain-specific utilities, selectors, and validators.
- Infrastructure: Manages models and integration with external systems.
- SOLID Principles: Ensures your code remains clean, maintainable, and scalable by following core SOLID design principles.
- Interactive CLI Interface: A guided command-line experience for setting up your project and apps without hassle.
๐ Installation
To install the package from PyPI, run:
pip install django-layered-start
Then Start With This Command:
django-layered-start
Creating The Project
-
Project name: myproject๐ฆ
- Django project "myproject" created!โ
-
App name (or N to stop): accounts ๐งฑ
- App "accounts" created with layered structure.๐
-
Do you want to add another app? (Y/N): Y
- App name (or N to stop): products
-
App "blog" created with layered structure.
- Do you want to add another app? (Y/N): N
The Project Structure Will Be:
myproject/
โโโ manage.py
โโโ myproject/
โ โโโ settings.py
โโโ accounts/
โ โโโ presentation/
โ โ โโโ __init__.py
โ โ โโโ views.py
โ โ โโโ urls.py
โ โโโ application/
โ โ โโโ __init__.py
โ โ โโโ services.py
โ โโโ domain/
โ โ โโโ __init__.py
โ โ โโโ validators.py
โ โ โโโ selectors.py
โ โ โโโ utilities.py
โ โโโ infrastructure/
โ โโโ __init__.py
โ โโโ models.py
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 django_layered_start-0.1.1.tar.gz.
File metadata
- Download URL: django_layered_start-0.1.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c50bd674ce3cc02c8eff6e8ff3895f569b4e709158f93978b22d520728f214d
|
|
| MD5 |
35fd9c86fb592f7b931b1b1a87b11657
|
|
| BLAKE2b-256 |
416c465bd129548a5ea00eda7448b4394dab9b3177124884516cd8aabc0564c0
|
File details
Details for the file django_layered_start-0.1.1-py3-none-any.whl.
File metadata
- Download URL: django_layered_start-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b99b8205e3cde5f2ee2eaf9d0dee04f136e2f225b2c69fbfd095e82a482bfb9
|
|
| MD5 |
7ef95bf2930c73832b8792e2c84ec09b
|
|
| BLAKE2b-256 |
8fec588f89a370d7f4d155570d9d6f9d0459a7227bc6707158b58d3a4372c65c
|