Get Started
Quickstart
Get up and running with the Preswald SDK in under 5 minutes
1
Install the Preswald SDK
Need the latest version? Upgrade anytime:
2
Set Up Your First Project
Run these commands to bootstrap your first Preswald app:
This will create a scaffolded project with the following:
hello.py
: A starter Python script to get you going.preswald.toml
: Your app’s configuration settings.secrets.toml
: A secure place for sensitive data..gitignore
: Pre-configured to exclude sensitive files from version control.
3
Write Your First App
Open hello.py
and edit it with the following content:
Run It Locally
Launch your app locally with this command:
Open your browser and navigate to http://localhost:8501. Your app will be live, ready for you to explore and iterate on.
4
Deploy Your App
When you’re ready to deploy your app, Preswald gives you flexibility:
Deploy Locally
If you just want to test your container locally:
Or simply:
This performs a local “dry run” by building the container locally.
Was this page helpful?