Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hattya/ayame

An Apache Wicket-like component based WSGI framework
https://github.com/hattya/ayame

python web-framework wsgi

Last synced: about 1 month ago
JSON representation

An Apache Wicket-like component based WSGI framework

Awesome Lists containing this project

README

        

Ayame
=====

Ayame is a component based WSGI framework. It is inspired by
`Apache Wicket`_, `Apache Click`_ and Flask_.

.. image:: https://img.shields.io/pypi/v/ayame.svg
:target: https://pypi.org/project/ayame

.. image:: https://github.com/hattya/ayame/actions/workflows/ci.yml/badge.svg
:target: https://github.com/hattya/ayame/actions/workflows/ci.yml

.. image:: https://ci.appveyor.com/api/projects/status/67nbqb4ej84liu9m?svg=true
:target: https://ci.appveyor.com/project/hattya/ayame

.. image:: https://codecov.io/gh/hattya/ayame/branch/master/graph/badge.svg
:target: https://codecov.io/gh/hattya/ayame

.. _Apache Wicket: https://wicket.apache.org/
.. _Apache Click: https://click.apache.org/
.. _Flask: https://palletsprojects.com/p/flask

Requirements
------------

- Python 3.9+
- Werkzeug
- secure-cookie

Example Application
-------------------

::

app.wsgi
app/
HelloWorld.html

app.wsgi
~~~~~~~~

.. code:: python

from ayame import Ayame, Page
from ayame.basic import Label

class HelloWorld(Page):

def __init__(self):
super().__init__()
self.add(Label('message', 'Hello World!'))

application = Ayame(__name__)

map = application.config['ayame.route.map']
map.connect('/', HelloWorld)

HelloWorld.html
~~~~~~~~~~~~~~~

.. code:: html





HelloWorld


...



License
-------

Ayame is distributed under the terms of the MIT License.