You can edit almost every page by Creating an account and confirming your email.

MicroPie

From EverybodyWiki Bios & Wiki


MicroPie
Developer(s)Harrison Erd
Initial releaseJanuary 2025
Stable release
0.6
Written inPython
Engine
    Operating systemCross-platform
    TypeWeb framework
    LicenseBSD 3-Clause
    Websitepatx.github.io/micropie

    Search MicroPie on Amazon.

    MicroPie is an ultra-lightweight Python web framework designed to simplify web application development. It provides core features such as routing, session management, WSGI support, and optional Jinja2 template rendering. Inspired by frameworks like CherryPy, MicroPie aims to offer a minimalist yet powerful solution for developers who prefer simplicity and performance.

    Features

    • Minimal configuration required.
    • Automatic mapping of URLs to functions.
    • Cookie-based session management.
    • Jinja2 support for dynamic web pages (optional).
    • Deployable with WSGI servers like Gunicorn.

    Installation

    MicroPie can be installed via Python's package manager. Alternatively, the standalone script can be downloaded and used without additional dependencies.

    Usage

    A basic MicroPie application example:

    from MicroPie import Server
    
    class MyApp(Server):
        def index(self):
            return "Hello, MicroPie!"
    
    MyApp().run()
    

    Once the server is running, it can be accessed at `http://127.0.0.1:8080`.

    Core Functionalities

    MicroPie provides a variety of functionalities, including:

    • Routing: Define methods to handle specific URLs.
    • Session Handling: Store and retrieve user data easily.
    • Template Rendering: Use Jinja2 to generate dynamic content.
    • Static File Serving: Serve CSS, JavaScript, and images from the `static` directory.
    • WSGI Compatibility: Deployable using production-ready WSGI servers.
    • Streaming Responses: Handle long-running processes efficiently.
    • Form Handling: Process GET and POST requests seamlessly.

    Licensing

    MicroPie is licensed under the BSD 3-Clause License, which allows for free use and distribution with certain conditions. The full license details can be found on the official website.

    See Also

    References


    This article "MicroPie" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:MicroPie. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.