Metadata-Version: 2.3
Name: nercone-momiji
Version: 0.2.0
Summary: Powerful Web Application Framework and Server for Python
Author: Nercone
Author-email: Nercone <nercone@nercone.dev>
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Unix
Classifier: Operating System :: POSIX
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Requires-Dist: nercone-kaede
Requires-Python: >=3.10
Description-Content-Type: text/markdown

![](assets/momiji.png)

# Momiji
A powerful web application framework and server for Python

## What is Momiji?
Momiji is a web application framework and its server for Python.

Momiji has been developed with a focus on being both simple and powerful.
It includes features generally required for web servers, such as response compression and content minification, without any extraneous functionality.

## Features
Due to its simple structure, Momiji is relatively easy to use.

For example, a server that simply returns "Hello, World!" can be created in just a few lines of code:

```python
from momiji import Server, App, Response

class MyApp(App):
    async def on_request(self, request):
        return Response("Hello, World!".encode(), content_type="text/plain")

if __name__ == "__main__":
    server = Server(MyApp())
    server.run()
```

The structure like Server/App/Response is inspired by ASGI.

## (Likely) Frequently Asked Questions

### It's too simple. What is this!
Yes, it is very simple. Is there a problem with that?

### I found a repository called [Aki](https://github.com/nercone-momiji/aki/). It seems related to Momiji... what is it?
Momiji is very simple, but it does not have smart features like FastAPI that "define endpoints and route automatically."

Aki is a library planned for development that aims to make Momiji usable with the same feel as FastAPI.
