mkdir -p plash-tutorial
cd plash-tutorial
Plash is in Beta and we have released it in its semi-stable state to gather early feedback to improve. We do not recommend hosting critical applications yet.
Plash is a next-generation deployment platform for fast, hassle-free Python application hosting. It’s designed to be:
Plash handles all the deployment complexities so you can focus on what matters: building great applications. With Plash, you can deploy any Python app using straightforward commands and configurations, letting you ship your work quickly and reliably.
Whether you’re building web services, APIs, data applications, or tools, Plash provides the infrastructure backbone so you can concentrate on creating a splash with your code.
In this tutorial you will learn how to deploy your first app. This tutorial will explore the basics of using Plash and help you get familiar with it at a high level.
Prerequisites:
Install Plash comandline interface (CLI) with pip:
The CLI lets you manage your whole app’s lifecycle
Authenticate with your Plash account:
This command opens your browser to authenticate with your Plash account. After completing the login process, you’ll see a “complete” confirmation page in your browser.
Return to your terminal where you’ll find the confirmation message:
Authentication successful! Config saved to
/plash_config.json
Create a new directory for your first app:
Next, create the main.py
file:
This is a basic FastHTML app. Plash also supports other popular python frameworks.
And create the requirements.txt
file:
Now that you’ve created your app files, you’re ready to deploy! From your plash-tutorial
directory, run: plash_deploy
This command will:
Initializing deployment...
✅ Upload complete! Your app is currently being built.
It will be live at https://example-app.pla.sh
Note: You’ll see a different url that has been randomly generated for your app.
Your app should be ready a couple of seconds after running the deploy command.
Once your app is ready, you can:
When you visit that page you should see “Hello, World!”
🎉 Congratulations! You deployed your first app on Plash!
Learn more about what Plash has to offer in the rest of the docs at: https://docs.pla.sh