Skip to main content

A lightweight and highly customizable Python framework for building web applications

Project description

Mango Framework

License

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

  1. Import the necessary modules and functions from Mango:
from mango import route, run, render, send_json, send_file
  1. Define your routes using the @route() decorator:
@route('/')
def index():
    return "Hello, Mango!"

@route('/greet')
def greet():
    return "Welcome to Mango!"
  1. Run the Mango server:
if __name__ == '__main__':
    run()

Project details


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.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

mango_framework-0.6.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file mango-framework-0.6.0.tar.gz.

File metadata

  • Download URL: mango-framework-0.6.0.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

Hashes for mango-framework-0.6.0.tar.gz
Algorithm Hash digest
SHA256 f1d7165af82e8adff68739553147d884ed88efd9d5095cf0e7d63333ac4c68a3
MD5 801958d55bd565a0184066acbfb19ac7
BLAKE2b-256 918d83b77b2a0679bc3c77a3d781824b7cf8b9d01bf5dcd7a4af10fe9d18baaf

See more details on using hashes here.

File details

Details for the file mango_framework-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mango_framework-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be3addec70943c83cc44d118f3cd421a3df38727edfe4286e5b5123d7909579b
MD5 dbfd64a89b61fd1e7f8dccecbf121550
BLAKE2b-256 fa6a994f022f83ea6c709d1c7299364a31ea5a3940cce9ff5b24798152ffb461

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page