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
- Handling of basic form 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.6.7.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file mango-framework-0.6.7.tar.gz
.
File metadata
- Download URL: mango-framework-0.6.7.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60ecb51feffe36eb013338d2dfc64c5e0be316436a6946a7c8f4ad7d4bfb08e8 |
|
MD5 | 4b7e38cc6a987188f94472e7da1f8cd5 |
|
BLAKE2b-256 | 335710a4dd2c05bffe60ed39cb71caec1b6eed13edc5e43a6d60a76cc68c6ca7 |
File details
Details for the file mango_framework-0.6.7-py3-none-any.whl
.
File metadata
- Download URL: mango_framework-0.6.7-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85bab96ab711276e7a4af6a0a983af20f9e61c62de2237a9759ed163e92e41e1 |
|
MD5 | 7af88f422852af6fb2d22091ef90d6b5 |
|
BLAKE2b-256 | 36291a9e7e08b526cbe7b14900c52bbbe5ff3de049283fbc284d3428ea663aec |