Install¶
H2O Nitro can be installed from PyPI:
Prerequisites¶
You will need Python 3.7 or later installed on your system.
Hello World!¶
To build apps with Nitro, you'll also need to install one of Flask, Tornado, or Starlette to host WebSocket connections.
Using Flask¶
Download hello_flask.py
, then:
Play with the app
Go to http://localhost:5000/.
Using Tornado¶
Download hello_tornado.py
, then:
Play with the app
Go to http://localhost:5000/.
Using Starlette¶
Download hello_starlette.py
, then:
Play with the app
Go to http://localhost:5000/.
Summary¶
Nitro is a library, and plugs into Flask, Tornado, Starlette and other popular frameworks.
There's no need to start a brand new project either, you can easily use it in your existing applications, too!
Next steps¶
- Install the CLI: The Nitro CLI makes it easy to set up and play around with apps.
- Get the live docs: Play around with an interactive version of these docs.
- Read the guide: Deep-dive into what Nitro can do for you.
- Try more sample apps: Learn, modify and share your creations with the community.