single-file-python-script

Create full-stack Python applications in a single .py file.

1|Updated May 29, 2026
One-click install
npx skills add https://github.com/DeluxeOwl/skill-single-file-python-script --skill single-file-python-script
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: single-file-python-script
Source: https://github.com/DeluxeOwl/skill-single-file-python-script/tree/main/.agents/skills/single-file-python-script
Command: npx skills add https://github.com/DeluxeOwl/skill-single-file-python-script --skill single-file-python-script

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the overhead of complex project scaffolding, multiple configuration files, and build steps when building Python applications, letting you create full-stack tools with backend, frontend, and database all contained in one .py file.

Core Features & Use Cases

  • Single-file architecture: All application code, dependencies, and assets live in one Python file, managed via uv script headers for automatic dependency resolution.
  • Full-stack capabilities: Includes pre-configured FastAPI backend with SQLite persistence, inline React frontend with CDN-loaded libraries, and built-in testing support.
  • Use case: Rapidly prototype a todo list app, internal tool, or small web service without setting up separate frontend/backend projects, package managers, or build pipelines.

Quick Start

Use the single-file-python-script skill to build a working full-stack todo app with API endpoints, database storage, and an interactive UI in one Python file with no project setup.

Frequently Asked Questions about single-file-python-script

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a full-stack Python app in a single file without project scaffolding?

You can build a single-file full-stack Python app by combining a FastAPI backend, SQLite persistence, and inline React frontend loaded via CDN, with automatic uv-based dependency management in the script header.

Can I use FastAPI and SQLite together in one Python file with no build steps?

Yes, FastAPI and SQLite can run together in one Python file using uv script headers for automatic dependency resolution, eliminating the need for separate build steps or complex project configuration.

What is the best way to prototype a small web tool with React and FastAPI quickly?

The best way to rapidly prototype a small web tool is creating a single-file Python application, utilizing an inline React frontend via CDN and a FastAPI backend with SQLite persistence without setting up separate projects.

Do I need to manually install dependencies for a single-file Python script?

No, you do not need to manually install dependencies, because the single-file Python script uses uv script headers to automatically manage and resolve dependencies like FastAPI during execution.

When should I avoid building a full-stack application in a single Python file?

You should avoid single-file full-stack applications for large-scale projects requiring complex package managers or build pipelines, as this approach is designed specifically for rapid prototyping and small tool development.

Does a single-file Python script support an interactive UI with a database backend?

Yes, a single-file Python script supports an interactive UI by loading inline React libraries via CDN, while utilizing FastAPI endpoints and SQLite to handle the database persistence backend.