Pyjo.HelloWorld - Hello World!

from Pyjo.HelloWorld import HelloWorld

hello = HelloWorld()
hello.start()

# Or import the module, as in Google Python Style Guide

import Pyjo.HelloWorld

hello = Pyjo.HelloWorld.new()
hello.start()

Pyjo.HelloWorld is the default application of Pyjo.Server, used mostly for testing. It answers every request with Your Pyjo is working!, and is a Pyjo.App without Pyjoyment, whose counterpart is Pyjoyment.HelloWorld.

See also

Pyjo.App, Pyjoyment.HelloWorld, https://mojolicious.org.

Inspired by Mojo::HelloWorld of Mojolicious 9.49, an application of Mojolicious, which Pyjoyment.HelloWorld ports.

Classes

class Pyjo.HelloWorld.Pyjo_HelloWorld(attrs: dict[str, Any] | None = None, /, **kwargs: Any)[source]

Pyjo.HelloWorld inherits all attributes and methods from Pyjo.App and implements the following new ones.

handler(tx: Any) → None[source]
hello.handler(Pyjo.Transaction.HTTP.new())

Handle the request of the transaction with the response Your Pyjo is working!.