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.2.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file mango-framework-0.6.2.tar.gz
.
File metadata
- Download URL: mango-framework-0.6.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3fb630ddced9f3598f32fbc0cff697dbd49aabe53b460b475613b2da7cc87f6 |
|
MD5 | ece13d52a0d205e86aeae731620e1079 |
|
BLAKE2b-256 | 2b1ac7cb77f2cbd511dfe781e18a4ca756a7ad0798e325824d79be9a834bc3a2 |
File details
Details for the file mango_framework-0.6.2-py3-none-any.whl
.
File metadata
- Download URL: mango_framework-0.6.2-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 | 9fde738d8f0825c120808faeadae328c36614aeac346d295db6764cce5b61858 |
|
MD5 | 5ef67b5d12f6ae1a2a9ab3c6a2b63137 |
|
BLAKE2b-256 | c241587e8d86aa53ecadfc7f042eeb7a8211b4d957d77cbaa3f1a5e52849c2c5 |