🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

pypaze

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pypaze

A lightweight full-stack web framework on top of Flask

0.1.0
Maintainers
1

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts