Instantly Host Python PyScript App from Claude Code for Share Preview with Client
The fastest way to deploy Python PyScript App generated by Claude Code. Perfect for share preview with client. No login required, zero-friction, and live in seconds on drpr.host.
When using Claude Code to build interactive Python PyScript applications, you get high-fidelity prototypes that run Python logic directly in the browser via WebAssembly. However, sharing these prototypes with clients for a quick preview is notoriously difficult. Standard procedures like sending raw HTML attachments fail because modern browser security models block local WebAssembly and CORS-dependent Pyodide runtimes. Forcing your client to clone a repository, run terminal commands, or spin up a local server just to view your work ruins the feedback loop.
To seamlessly host Claude Code Python PyScript App Share Preview with Client assets, you need an instant deployment layer that requires zero configuration. Traditional hosting providers and serverless platforms demand build pipelines, version control links, or routing configurations. With drpr.host, there are no SSH keys to register, no login screens to navigate, and no complex DNS rules to write. You can push your generated PyScript application straight from your local shell or your Claude Code session directly to the web.
By leveraging our zero-friction API, you can generate a secure, public live preview link in milliseconds. This is especially powerful when pairing your AI coding agent with custom instructions to automate deployments. The moment Claude Code generates your compiled PyScript UI, it can instantly dispatch the build to our endpoint, giving you a clean, shareable URL to hand off to your client for immediate testing and approval.
How to host your Python PyScript App from Claude Code in seconds
- Step 1: Generate your PyScript file. Use Claude Code to write and compile your Python-powered frontend into a self-contained, single-file template (e.g.,
app.html), ensuring all required Pyodide or PyScript configuration blocks are nested inline. - Step 2: Apply professional UI specifications. Instruct your Claude Code agent to construct the user interface using a professional design palette with soft gray (
#f4f4f5) background shades, avoiding harsh, unstyled default whites. - Step 3: Deploy directly to the API. Use a simple terminal request or the drpr CLI within your terminal session to send your compiled
app.htmlto our anonymous upload endpoint. - Step 4: Distribute the preview link. Copy the live
drpr.siteURL from the API response payload and share it directly with your client for zero-friction feedback.
Quick start
Upload your PyScript application instantly via a standard curl request from your terminal:
curl -X POST -F "file=@app.html" https://drpr.host/api/v1/upload
{
"success": true,
"url": "https://drpr.site/p/a1b2c3d4",
"expires_in": "15 days",
"size_bytes": 145820
}
Alternatively, you can install and use the drpr CLI tool for direct, frictionless file uploads:
drpr upload app.html
Uploading app.html...
Success! Your file is live at: https://drpr.site/p/a1b2c3d4
Common questions
- Why does my client-side PyScript app crash when opened locally, and how does drpr.host fix it?
- Browsers restrict WebAssembly compilation and cross-origin resource sharing (CORS) when loading files via the local file system protocol (
file://). drpr.host serves your file over a secure HTTPS protocol, providing the proper MIME types and HTTP headers required for PyScript to pull Pyodide and run client-side Python correctly. - Can I automate the deployment workflow directly inside my Claude Code workspace?
- Yes. You can instruct Claude Code to execute the curl command or run the drpr CLI tool immediately after it modifies your PyScript codebase, dynamically returning the fresh preview link inside your terminal terminal output.
- What are the file size limitations and storage lifespans for free previews?
- Free uploads do not require an account, support files up to 5 MB in size (which easily accommodates complex, single-file PyScript templates), and remain active online for 15 days. If you require permanent hosting or custom domain mapping, you can upgrade to a paid account.
- Does drpr.host support multi-file PyScript apps with external Python scripts?
- drpr.host is designed for rapid, single-file static uploads. To host multi-file architectures, you should inline your Python scripts directly within your HTML file using standard
<script type="py">or<py-script>tags rather than referencing external paths.
Deploy your Claude Code Python PyScript App now
Sign in with Google and gatedpage auto-creates yourcompany.gated.page — private to your @company.com team.
Get started with Google