WyFlask
WyFlask is a modular, production-grade web framework built on top of Flask and Werkzeug. It provides enterprise architecture patterns, consistent API responses, built-in security, standard middleware, and a developer CLI without hiding Flask's core flexibility.
Key Features
- 🏗️ Application Factory: Robust
create_app()with automatic template/static path resolution. - ⚙️ Config Management: Class-based and environment-driven (
WYFLASK_ENV). - 🧩 Module System & Registry: Clean abstraction over Flask Blueprints with centralized registration.
- 🛡️ Built-in Security: Cryptographic password hashing (
hash_password,verify_password) and access decorators (@login_required,@role_required). - 📦 Clean Architecture: Out-of-the-box base classes for
ServiceandRepositorypatterns. - 🎯 Standard API Responses: Unified
success()anderror()JSON payloads. - 🚨 Global Error Interception: Automatic JSON formatting for domain exceptions (
NotFoundError,ValidationError,AuthenticationError,AuthorizationError). - ⏱️ Request Lifecycle Middleware: Automatic
X-Request-IDtracing,X-Process-Timelatency headers, and HTTP security headers. - 🛠️ Developer CLI: Fast scaffolding with
wyflask new,wyflask module create, andwyflask routes.
Quick Installation
pip install wyflask
Quickstart
# 1. Create a new project
wyflask new myapp
cd myapp
# 2. Run the development server
wyflask run
Documentation
Full documentation is available in the docs/ folder:
- Documentation Index
- Installation Guide
- Quickstart Guide
- Architecture & Design
- Configuration Management
- Modules & Routing
- API Responses & Error Handling
- Middleware & Request Lifecycle
- Authentication & Security
- Services & Repositories
- Database Integration
- Developer CLI Reference
- Testing Guide
- Production Deployment
- End-to-End Tutorial
License
MIT License. See LICENSE for details.
Release files for wyflask 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wyflask-0.1.3.tar.gz | 16.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wyflask-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.6 kB
Release files / wyflask-0.1.3.tar.gz
| Download URL | wyflask-0.1.3.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e61e4d385edf7343ea65abf396cdd5d88941f18a45091fefec5107dd9033312
|
|
BLAKE2b-256 checksum How to use checksums |
7d6b7529f76bd93b552ee04b4e2ca038b7e60fa7e3450684b4081614685d9159
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.0
|
Release files / wyflask-0.1.3-py3-none-any.whl
| Download URL | wyflask-0.1.3-py3-none-any.whl |
|---|---|
| Size | 17.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9bd65fedcd7d7761e4344972dc3c88e14852ff0b76df7e1389604abe25a18405
|
|
BLAKE2b-256 checksum How to use checksums |
e1473d7718342f02e20583558537d9c13663b82da88394b0d79528cf8c4a9b59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.0
|