CLI tools to accelerate Wagtail web development with RhamaaCMS
Project description
Rhamaa CLI
Simple CLI tool for Wagtail development with prebuilt apps and project scaffolding.
🚀 Features
- Quick Project Setup - Create Wagtail projects instantly
- Prebuilt Apps - Install ready-to-use applications
- Simple Commands - Just two main commands
- Rich UI - Beautiful terminal interface
📦 Available Apps
| App | Category | Description |
|---|---|---|
| mqtt | IoT | MQTT integration for real-time messaging |
| users | Auth | Advanced user management system |
| articles | Content | Blog and article management |
| lms | Education | Learning Management System |
| ecommerce | Commerce | E-commerce functionality |
🛠 Installation
pip install rhamaa
📖 Usage
Create Project
rhamaa start MyProject
Create Apps
# Minimal Django app (default)
rhamaa startapp blog
# Wagtail app with templates
rhamaa startapp pages --type wagtail
# Install prebuilt app
rhamaa startapp iot --prebuild mqtt
# List available prebuilt apps
rhamaa startapp --list
Quick Start
# Create project
rhamaa start MyBlog
cd MyBlog
# Install blog functionality
rhamaa startapp articles --prebuild articles
# Add to INSTALLED_APPS and run migrations
python manage.py makemigrations
python manage.py migrate
🏗 Project Structure
rhamaa/
├── __init__.py # Package initialization
├── cli.py # Main CLI entry point and help system
├── registry.py # App registry management
├── utils.py # Utility functions (download, extract)
└── commands/ # Command modules directory
├── __init__.py # Commands package init
├── add.py # 'add' command implementation
├── start.py # 'start' command implementation
└── registry.py # 'registry' command implementation
🔧 Development
Adding New Apps to Registry
Edit rhamaa/registry.py:
APP_REGISTRY = {
"your_app": {
"name": "Your App Name",
"description": "App description",
"repository": "https://github.com/RhamaaCMS/your-app",
"branch": "main",
"category": "Category"
}
}
Testing Commands
# Test main command
rhamaa
# Test project creation
rhamaa start TestProject
# Test app installation
rhamaa add mqtt
# Test registry commands
rhamaa registry list
rhamaa registry info mqtt
Building Distribution
# Build distribution packages
python setup.py sdist bdist_wheel
# Install from local build
pip install dist/rhamaa-*.whl
🎯 Use Cases
For Wagtail Developers
- Quickly bootstrap new projects with proven architecture
- Add common functionality without writing from scratch
- Standardize project structure across team
For Teams
- Consistent project setup across developers
- Reusable components and applications
- Faster development cycles
For IoT Projects
- MQTT integration with
rhamaa add mqtt - Real-time data monitoring and management
- Wagtail admin integration for IoT devices
🤝 Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
📄 License
This project is part of the RhamaaCMS ecosystem.
🔗 Links
- Documentation: GitHub Wiki
- Issues: GitHub Issues
- RhamaaCMS: Main Repository
Made with ❤️ by the RhamaaCMS team
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
rhamaa-0.3.0.tar.gz
(57.2 kB
view details)
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
rhamaa-0.3.0-py3-none-any.whl
(20.9 kB
view details)
File details
Details for the file rhamaa-0.3.0.tar.gz.
File metadata
- Download URL: rhamaa-0.3.0.tar.gz
- Upload date:
- Size: 57.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6abef5ed03a9b4c25f8625b7a18033bde974e682f5c767be74a60470a95534ef
|
|
| MD5 |
3478c4e4a40122cf10bc6df555f175dc
|
|
| BLAKE2b-256 |
2a15209f9188a6fcbb3c045eef7fa6b0687160009cba411c734f0cd4e70f728d
|
File details
Details for the file rhamaa-0.3.0-py3-none-any.whl.
File metadata
- Download URL: rhamaa-0.3.0-py3-none-any.whl
- Upload date:
- Size: 20.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eef8ada51d255a2f4f117f5748148db7139c6e60997e32c2fcc7a67b0219e093
|
|
| MD5 |
b35056a078a0656d58e0be7eeac81ca3
|
|
| BLAKE2b-256 |
ad381337b9938b97923870ff2b35cace3b0fa1f141a47d7c84d29006e59d7cdc
|