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.1.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file mango-framework-0.6.1.tar.gz
.
File metadata
- Download URL: mango-framework-0.6.1.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 | 6f5079666bb5b856395d847480d957c79d4073cd36331b7aaf134fab54d5b483 |
|
MD5 | 5dd3ff2acad8fad1a3748041ca5becba |
|
BLAKE2b-256 | 6fb75f85a427899322ea51726e9bd5b65eecd0db89aff8d420f4d208ea8d2791 |
File details
Details for the file mango_framework-0.6.1-py3-none-any.whl
.
File metadata
- Download URL: mango_framework-0.6.1-py3-none-any.whl
- Upload date:
- Size: 4.8 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 | facc1464e3937211cf84c7172bbd2b626a56d5f177c571f838cfd7eb851ad705 |
|
MD5 | b3f38b2bdef9965ffda28e1a0b6560bb |
|
BLAKE2b-256 | d408c3838ef62be8abb9fdbbc6d26ff78217c571c4283ce4c746b540d1b550ef |