Skip to main content

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 Service and Repository patterns.
  • 🎯 Standard API Responses: Unified success() and error() JSON payloads.
  • 🚨 Global Error Interception: Automatic JSON formatting for domain exceptions (NotFoundError, ValidationError, AuthenticationError, AuthorizationError).
  • ⏱️ Request Lifecycle Middleware: Automatic X-Request-ID tracing, X-Process-Time latency headers, and HTTP security headers.
  • 🛠️ Developer CLI: Fast scaffolding with wyflask new, wyflask module create, and wyflask 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:


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)

Source distribution for wyflask 0.1.3
File Size Uploaded
wyflask-0.1.3.tar.gz 16.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wyflask 0.1.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page