Quickstart

From zero to a Streamlit app querying real data in about five minutes.

You’ll create a project, register a data source, and ship a working in-browser Streamlit app that talks to it.

1. Create a project

Sign in to app.pycorner.dev, click New Project, pick the stlite type. You’ll land in the editor with an app.py and a requirements.txt.

2. Register a Resource

Resources are named connections that your apps address by name. Three kinds:

KindReachAuth held by
DatabaseServer-side driver (postgres / mysql)PyCorner backend
APIHTTP proxy to any upstream URLPyCorner backend
TunnelRaw TCP to a target behind your firewallYour tunnel agent

Open the Resources tab and create one. For this quickstart we’ll do an API resource pointing at httpbin so you can run it without any database.

Save.

3. Write the app

Back in the editor, replace app.py with:

import pycorner
import streamlit as st

st.title("My first PyCorner app")

api = pycorner.api("httpbin")
r = api.get("/headers")

st.write(f"HTTP {r.status_code}")
st.json(r.json())

requirements.txt stays empty — pycorner is auto-injected by the editor, and the rest is stdlib + streamlit.

Click Save. The preview on the right remounts and the script runs against your real resource. The response JSON will show the X-From: pycorner header injected by the backend.

4. Where to go from here

Things to know