Skip to main content

An Apache Wicket-like component based WSGI framework

Project description

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

https://img.shields.io/pypi/v/ayame.svg https://github.com/hattya/ayame/actions/workflows/ci.yml/badge.svg https://ci.appveyor.com/api/projects/status/67nbqb4ej84liu9m?svg=true https://codecov.io/gh/hattya/ayame/branch/master/graph/badge.svg

Requirements

  • Python 3.10+

  • Werkzeug

  • secure-cookie

Example Application

app.wsgi
app/
    HelloWorld.html

app.wsgi

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

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ayame="http://hattya.github.io/ayame">
  <head>
    <title>HelloWorld</title>
  </head>
  <body>
    <p ayame:id="message">...</p>
  </body>
</html>

License

Ayame is distributed under the terms of the MIT License.

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

ayame-0.4.tar.gz (91.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ayame-0.4-py3-none-any.whl (47.6 kB view details)

Uploaded Python 3

File details

Details for the file ayame-0.4.tar.gz.

File metadata

  • Download URL: ayame-0.4.tar.gz
  • Upload date:
  • Size: 91.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for ayame-0.4.tar.gz
Algorithm Hash digest
SHA256 fae10c04b727ef1f509604d41e865d1d11bd9663ffdf68ffbec1db6e978dce6c
MD5 bf13fc168ee411009188871086c26881
BLAKE2b-256 fa6b0c4c0f4148995e096fd281d0c1aaeec1e213c087f0320e2639077889cd32

See more details on using hashes here.

File details

Details for the file ayame-0.4-py3-none-any.whl.

File metadata

  • Download URL: ayame-0.4-py3-none-any.whl
  • Upload date:
  • Size: 47.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for ayame-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 85d7ce73130c080a87e2fc73b09f508e77ec60b2db973c1bdba5f0edb97ea593
MD5 ae904e6cbee093bd6b582ec60ad6311b
BLAKE2b-256 8f04a8358f334a4ef5bbde1932efa7c33cd4ad223c7aaa252d9b1c33ba108244

See more details on using hashes here.

Supported by

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