A lightweight and highly customizable Python framework for building web applications
Project description
Mango Framework
Introduction
Mango is a lightweight Python framework for building web applications. It provides a simple and intuitive way to handle routing, render HTML templates, and serve files. With Mango, you can quickly set up a web server and define routes to handle different HTTP requests.
Features
- Easy routing configuration
- Rendering HTML templates
- Serving static files
- Handling JSON data
- Lightweight and minimal dependencies
- Suitable for small to medium-sized web applications
- Human readible code even beginners could modify
- Integrated basic ORM for DB functions
Installation
Mango can be easily installed via pip:
pip install mango-framework
Usage
- Import the necessary modules and functions from Mango:
from mango import route, run, render, send_json, send_file
- Define your routes using the @route() decorator:
@route('/')
def index():
return "Hello, Mango!"
@route('/greet')
def greet():
return "Welcome to Mango!"
- Run the Mango server:
if __name__ == '__main__':
run()
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
mango-framework-0.5.0.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for mango_framework-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c3ddf0fa38df70add9daad427bf58d6fd2544c77fb929281bb996e6d4049eb9 |
|
MD5 | 41b2c0cfbb757965ac6e5706fc089402 |
|
BLAKE2b-256 | 073db37acdc440e86ac7c1d38238e07bf6602ad02ad19866567a12d9615cb2f9 |