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.2

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.2
File Size Uploaded
wyflask-0.1.2.tar.gz 16.2 kB Details

Built distribution (wheel)

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

Release history Release notifications | RSS feed

0.1.3

2 release files

This release

0.1.2 This release

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