whatisgithub

What is taipan?

farhanaliraza/taipan — explained in plain English

Analysis updated 2026-05-18

54ZigAudience · developerComplexity · 3/5Setup · easy

In one sentence

A single self-contained executable with Python built in that runs PEP 723 scripts, or bundles them into standalone binaries, on machines with no Python installed.

Mindmap

mindmap
  root((repo))
    What it does
      Runs Python with no install
      Bundles PEP 723 scripts
      Builds standalone executables
    Tech stack
      Zig
      Embedded CPython
      uv for installs
    Use cases
      Run on air gapped machines
      Distribute one file scripts
      Fast repeated warm starts
    Audience
      Developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Run a Python script on a machine with no Python installed and no internet access, using one binary.

USE CASE 2

Bundle a script and its dependencies into a single standalone executable for distribution.

USE CASE 3

Ship a PEP 723 script with inline dependencies that installs itself automatically on first run.

What is it built with?

ZigCPythonuv

How does it compare?

farhanaliraza/taipanandrewrk/zig-general-purpose-allocatorandrewrk/autodoc
Stars545246
LanguageZigZigZig
Last pushed2020-08-082024-03-11
MaintenanceDormantDormant
Setup difficultyeasyeasymoderate
Complexity3/53/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Building from source requires the Zig toolchain, using prebuilt binaries needs no setup.

So what is it?

taipan is a tool that lets you run Python scripts on a computer that does not have Python installed at all. It ships as a single executable file, about 31 megabytes, with a working copy of CPython 3.13 built directly inside it, so there is nothing else to install before running a script. Beyond simply running scripts, taipan understands PEP 723, a standard way of listing a script's dependencies directly inside the file itself using a special comment block. When you run such a script, taipan installs the listed packages using a tool called uv and caches the result, so running the same script again, or a different script with the same dependencies, reuses that cached environment instead of reinstalling anything. This makes repeated runs very fast, around ten milliseconds to start according to the project's own benchmarks. taipan can also package a script together with its dependencies and the Python interpreter into one standalone executable using the taipan build command. The resulting file runs on a matching machine with no Python, no internet connection, and no extra tools required, which is useful for distributing a script to a computer that is locked down or has no network access. Internally, the embedded Python interpreter and its standard library are extracted to a local cache the first time the binary runs, and later runs read a small footer to verify the file has not been tampered with or truncated before reusing that cache. taipan installs are not currently locked to exact versions, so it is recommended to pin dependency versions directly in the PEP 723 block for reproducible results. It currently requires a glibc based Linux system, or macOS or Windows, and does not yet support Alpine Linux's musl based systems. It is not meant to replace project management tools like uv for larger projects with lockfiles and multiple Python versions.

Copy-paste prompts

Prompt 1
Show me how to install taipan and run a PEP 723 script with inline dependencies.
Prompt 2
Explain how taipan caches installed dependencies to make repeated script runs fast.
Prompt 3
Help me use taipan build to bundle my Python script into one standalone executable.
Prompt 4
Compare taipan to uv run and tell me when I should use each one.

Frequently asked questions

What is taipan?

A single self-contained executable with Python built in that runs PEP 723 scripts, or bundles them into standalone binaries, on machines with no Python installed.

What language is taipan written in?

Mainly Zig. The stack also includes Zig, CPython, uv.

How hard is taipan to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is taipan for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.