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.HelloWorldinherits all attributes and methods fromPyjo.Appand implements the following new ones.