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.7.1.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file mango-framework-0.7.1.tar.gz
.
File metadata
- Download URL: mango-framework-0.7.1.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 | e45d2acea519d89ceab7d10bc7f2cf95d7c5799e33040be00ffee570552c6ec9 |
|
MD5 | 3411b36fd246af9a3752b88941455775 |
|
BLAKE2b-256 | 3439626955908e31265a4db467e2d3b84752bb7416dda0d763ba1944a4b215ee |
File details
Details for the file mango_framework-0.7.1-py3-none-any.whl
.
File metadata
- Download URL: mango_framework-0.7.1-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 | 5ba90eaeea6e3f15db1b5a25bee54cde5b4bc4e18a0e0f2caca8c21af0269615 |
|
MD5 | fa004b6b9eeba1d1a9bb2969c2b8991a |
|
BLAKE2b-256 | 123659b320ab58329690f4b6024304d61f69d5aa62a02cb51575961ecc521968 |