A lightweight full-stack web framework on top of Flask
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypaze-0.1.0.tar.gz.
File metadata
- Download URL: pypaze-0.1.0.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
348eabf2178438cf4b7da8a51c5fbbd4c57f833cf2677b8cf00a9956a8ecef19
|
|
| MD5 |
f2f5bf9a881787274065e4c3b772a45a
|
|
| BLAKE2b-256 |
62ebfe79de9479e63d927c7a492cea8419882a5dcb627e7e9014c02832cb9316
|
File details
Details for the file pypaze-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pypaze-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1d7c4d4457f97c7096a349b83849f05aafbb1c7623efd59d50dd3c2e73dc193
|
|
| MD5 |
767bba96a338849b55bc0d3791702a09
|
|
| BLAKE2b-256 |
b706c2fadd72660a4b731cec48ad032aedf03fe2c9c5028fc3f17e0da4855717
|