Skip to main content

Pypaze

Pypaze is a lightweight, full-stack web framework built on top of Flask, inspired by Next.js. It offers file-based routing, dynamic templates, middleware support, and easy configuration, making it ideal for building modern web applications.

Features

  • File-based Routing: Automatically registers routes based on the directory structure, simplifying navigation.

  • Dynamic Routing: Supports dynamic route parameters and catch-all routes.

  • Middleware: Add global or route-specific middleware to handle requests.

  • Templating: Uses Jinja2 for rendering templates.

  • Hot-reloading: Automatically reloads routes when files are modified during development.

  • CLI: Comes with a built-in CLI for running the server.

Installation

To install Pypaze, run:

pip install pypaze

Initialize Project

To initialize Pypaze Project, run:

pypaze init --project-name project-name

Usage

Create a simple app with Pypaze:

from pypaze import create_app

# Initialize the app
app = create_app()

# Run the app
if __name__ == "__main__":
    app.run(debug=True)

Directory Structure

  • pypaze/: Contains the framework code.

  • routes/: Contains route definitions. Routes are automatically registered based on the file structure.

  • templates/: Store your Jinja2 HTML templates.

  • static/: Static files such as CSS and images.

  • example/: Example app for quick reference.

Running the App

You can start your app from the command line:

python app.py

Or use the built-in CLI:

pypaze run

License

MIT License. See the LICENSE file for details.

Made with ❤️ by TheVixhal

Metadata

Release files for pypaze 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypaze 0.1.0
File Size Uploaded
pypaze-0.1.0.tar.gz 9.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pypaze 0.1.0
File Interpreter ABI Platform
pypaze-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.8 kB

Release files / pypaze-0.1.0.tar.gz

Download URL pypaze-0.1.0.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
348eabf2178438cf4b7da8a51c5fbbd4c57f833cf2677b8cf00a9956a8ecef19
BLAKE2b-256 checksum
How to use checksums
62ebfe79de9479e63d927c7a492cea8419882a5dcb627e7e9014c02832cb9316
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.1

Release files / pypaze-0.1.0-py3-none-any.whl

Download URL pypaze-0.1.0-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1d7c4d4457f97c7096a349b83849f05aafbb1c7623efd59d50dd3c2e73dc193
BLAKE2b-256 checksum
How to use checksums
b706c2fadd72660a4b731cec48ad032aedf03fe2c9c5028fc3f17e0da4855717
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.1

Release history Release notifications | RSS feed

This release

0.1.0 This release

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