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.2
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.2.tar.gz | 16.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wyflask-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.3 kB
Release files / wyflask-0.1.2.tar.gz
| Download URL | wyflask-0.1.2.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d11f339cff2c6125783da3d3bc4af945f1b79399a6b649254079b8d8b184a14
|
|
BLAKE2b-256 checksum How to use checksums |
dbd13741485abe28163c90da0386b712311cae6c072b01aff145e7fab3e273a1
|
| 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.2-py3-none-any.whl
| Download URL | wyflask-0.1.2-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
30c326a42f5196c463d871fed5ef023fe3ac9e64f6977be25e76b3986f0fa242
|
|
BLAKE2b-256 checksum How to use checksums |
1f5753eade0489c074ec35f86d0ed339d79c3333364e955d06166aa8605b9788
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.0
|