Three small, transparent Python tools for Windows 11 x86-64 (AMD64). No preinstalled Python or uv. No administrator installation. No global PATH or registry changes. Choose online setup on the target or separate online preparation for an offline application target.
- Download one ZIP from Releases (not GitHub's automatic “Source code” archive).
- Unpack into a new folder on a local fixed drive.
- For the online application and JupyterLab, double-click START.bat. For Preloaded, first follow the two-machine workflow below.
First start downloads and verifies uv and CPython, installs packages into a
local .venv, then runs the example or opens JupyterLab in your browser.
Keep the console open while the program/server is running. First preparation
can take several minutes; unchanged later starts skip package setup.
| ZIP | Purpose | Put your code here |
|---|---|---|
portable-python-one-launcher-0.1.5-windows-x86_64.zip |
Ordinary Python application | application/; entry point __main__.py |
portable-python-jupyterlab-0.1.4-windows-x86_64.zip |
Interactive notebooks | notebooks/; create or copy .ipynb files |
portable-python-preloaded-0.1.9-windows-x86_64.zip |
Prepare a self-contained Python environment for an offline target | application/ in the prepared folder on the online setup machine |
The online editions are usable immediately. The application examples use only the standard library. The notebook example checks its actual interpreter and directory. The ZIPs contain readable text source, not an opaque installer or executable.
- Packaging machine: Extract the starter. Put your code under
application/with__init__.pyand__main__.py. Editpyproject.tomland add any needed project folders. Optionally include a trusteduv.lockgenerated on a developer machine or saved from an earlier target. - Packaging machine: ZIP the contents with
START.batat the top level. Packaging itself needs no Python, uv, or application/launcher execution. Do not include.venv/,.portable-python/, or caches. - Online Windows target: Transfer and extract locally, then run
START.bat. It downloads the runtime and wheels, creates
.venv, and runs your app. Later unchanged starts need no setup downloads.
Optional: generate the lock on the developer machine. With uv 0.13.10
and a compatible Python already available, run this beside the final
pyproject.toml (replace the Python version if you changed the pin):
uv --no-config --no-python-downloads lock --python 3.15.2 --no-build --no-sources --default-index https://pypi.org/simpleThis resolves dependency metadata and writes uv.lock without creating the
target environment or running the app. Ship the lock beside the matching TOML,
not a venv or package cache. On the target, START uses a supplied lock unchanged
with uv sync --locked and fails if uv reports it stale or invalid. If the
lock is absent, START creates it on the target before syncing. The target
downloads and installs its own runtime and wheels in both cases.
- Online setup machine: Extract the Starter ZIP into a short local
path. Edit
pyproject.tomland run SETUP.bat. It creates the prepared folder (bundle/) with verified CPython, uv, wheels as needed, and the offline launcher. It does not create a ZIP or run the application. - Online setup machine: IT reviews the prepared folder and adds
application/(with__init__.pyand__main__.py),input/,workings/andoutput/. ZIP the contents, withSTART.batat the root. Transfer this Transfer ZIP and share its SHA-256 through a trusted channel. Keepsetup.logandbundle-records/on the online setup machine. - Offline target machine: Verify the Transfer ZIP's SHA-256, extract it
into a fresh short local folder, put your files in
input/, and run START.bat. It creates.venvfrom bundled files without network access, then runs the application. Later starts check the environment and skip installation if it is ready.
Keep the prepared environment files unchanged. Code-only updates can be
repackaged without SETUP; Python or dependency changes need fresh preparation.
To reproduce a preparation, use the same Starter ZIP and TOML with the saved
uv.lock; compare the bundle-manifest.json hash in setup.log. The
manually created Transfer ZIP has its own hash.
If the environment is damaged, move only .venv out of the project folder
and rerun START to rebuild offline. Keep target networking blocked by policy
if the application itself must not use it. See the included guide.
This is a Windows-specific bootstrap, not a universal Python distribution. The following applies to all profiles; the application/libraries may add requirements.
| Area | Support / assumption |
|---|---|
| OS | Windows 11, 64-bit. Windows 10/Server are outside the supported target, even if they happen to work. |
| CPU | Intel or AMD x86-64 (x64, AMD64). No 32-bit x86, ARM/ARM64 or RISC-V support, including emulation. |
| Devices | Compatible Windows laptops/desktops. A VM must provide the same environment; no separate VM guarantee. Android/iOS phones/tablets are unsupported. |
| Other systems | Linux, WSL, macOS and their containers are unsupported. Upstream uv supporting them does not make these launchers portable to them. |
| Host tools | 64-bit Windows PowerShell 5.1, its .NET Framework/ZIP support and cmd.exe. BITS is needed only for the bootstrap download fallback. PowerShell 7 is not required. |
| Runtime/build tools | No preinstalled Python, uv, pip, compiler, SDK, Git, Node.js or Docker required. Only compatible wheels are installed; no source compilation. Windows system DLLs remain necessary; extra libraries may need external DLLs/drivers. |
| Storage | Writable local fixed-drive folder, SSD or HDD; SSD is faster. No network/UNC/mapped drives, removable-type drives, junctions or symlinks. Do not move a prepared environment. |
| RAM/CPU/disk | No measured project-wide minimum. Allow resources for Windows, Python, caches, installed libraries and your data. No GPU/CUDA required by the defaults; selected libraries can change this. |
| Network | Online profiles need DNS/HTTPS on first setup. Preloaded needs Internet only on its preparation machine. Ethernet, Wi-Fi or mobile Internet are equivalent if DNS/HTTPS/proxy authentication works. |
| Permissions | Standard user with permission to write the folder and execute downloaded EXEs/DLLs and PowerShell. No administrator install; organization-enforced controls are not overridden. |
| JupyterLab | A modern JavaScript-enabled browser and permitted loopback HTTP/WebSocket connections. Server and browser run locally; no public listening port is required. |
Unchanged later starts need no setup download; offline use still depends on what the app/notebooks do. Package availability, CPU instructions, native DLLs, drivers, resource limits and organization policy are not hidden guarantees. See environment details and limitations.
One-Launcher and Preloaded both pin CPython 3.15.2 and uv 0.13.10. The notebook edition pins CPython 3.13.18, uv 0.13.6, JupyterLab 4.6.4 and ipykernel 7.4.0. User-library lists start empty. These are deliberately selected/tested pins, not an auto-update mechanism.
The application profiles use the stable Python 3.15.2 security release; verify that your native packages have compatible Windows x64 wheels. Review future security patches and rerun acceptance tests rather than freezing a patch indefinitely. Do not self-update the pinned project-local uv. See the version review.
Before first start, edit the supplied pyproject.toml, retaining its metadata:
[project]
name = "portable-python-one-launcher"
version = "0.1.5"
description = "General Windows portable Python application"
requires-python = "==3.15.2"
dependencies = ["openpyxl", "xlrd", "polars"]"pandas" selects a compatible version during setup; "pandas==3.0.5" pins
one; "openpyxl>=3.1,<4" bounds a range. Standard-library imports need no entry.
Only ordinary PyPI requirements with compatible wheels are supported.
For JupyterLab, keep its supplied project name/description and do not replace the infrastructure group with your libraries:
[dependency-groups]
jupyter = ["jupyterlab==4.6.4", "ipykernel==7.4.0"]Own libraries always go in [project].dependencies. Preserve the remaining
tool/index tables. See the README inside each ZIP for version notation and
technical commands. Unavailable Python builds or wheels fail explicitly.
- Application: first START prepares, then runs
python -m application. Existing lockfiles are reused unchanged; stale locks fail. Later starts only validate/run. For changed Python/library/launcher settings, use a fresh extraction with matching TOML and lock (or no lock); source code may change independently. Move only.venvaside to rebuild with the same lock. - JupyterLab: START prepares if needed, then serves on
127.0.0.1with token authentication. To change libraries, stop server/kernels, edit TOML, then START again. Notebooks are retained. Closing the browser does not stop the server; use File > Shut Down or Ctrl+C in the console. - Preloaded: only SETUP resolves/downloads, on a separate online machine.
Offline START initializes or reuses the target's own
.venv.
Jupyter checks installed packages locally before skipping setup and prints installed versions of declared user libraries. Save changes in this extraction's TOML, stop its server, then START again. If the browser does not open, copy the full localhost URL including its token from the console; keep it private.
All distinguish setup failure (overall code 10) from app/server failure
(20), with 0 success and 30 launcher failure. Local JSONL journals record
infrastructure diagnostics in the online profiles. Preloaded's setup.log
records timed preparation phases, download receipts and failures on the
online setup machine. IT computes the Transfer ZIP hash after packaging.
Offline target diagnostics stay in the console. Application output is not
journaled.
All launchers pair Python's -X utf8 with explicit PowerShell UTF-8 decoding
of native stdout/stderr and restore the prior console encoding in finally.
Ordinary Unicode print() calls need no application reconfigure() patch.
No global Windows setting or lossy errors="replace" policy is imposed.
Blank native stderr lines stay blank instead of becoming PowerShell exception
type names. Stderr progress/warnings are not failures by themselves; exit codes
remain authoritative.
Python workers must repeat -X utf8; interpreter flags are not inherited.
Use encoding="utf-8" when capturing their text or reading/writing UTF-8 files.
Legacy file/program encodings, replaced streams, already-corrupted text and
terminal font coverage remain separate concerns. See each ZIP's README.
- Run only trusted application/notebook code and reviewed packages, as a normal Windows user, in a private local project folder. Code runs with that user's filesystem/network permissions; this is not a sandbox or malware scanner.
- The online profiles resolve packages on the target unless One-Launcher is given a matching lock. Preloaded locks and downloads on the setup machine and transfers a hashed install plan and wheels. Starter ZIPs do not contain a pre-audited dependency graph.
- Windows 11 AMD64 with 64-bit Windows PowerShell 5.1 is the tested target. Linux, macOS, ARM64 and 32-bit Windows are not supported.
- Run from a local folder, never directly from a network share or ZIP preview. Spaces/Unicode names are tested; ordinary Windows path limits still apply.
- Downloads use official Astral and PyPI sources, TLS verification and pinned bootstrap checksums. Source builds, custom indexes and direct URL requirements are not supported. See download details.
- A target-generated
uv.lockfreezes the chosen dependency graph; a fresh setup on another date can resolve different transitive versions. A hash verifies bytes, not whether a package is trustworthy. Review package names, publishers, licenses and notebooks before using them. - Jupyter exposes only its project Python kernel. Its extension installer is read-only; automatic news/update requests are disabled. Library changes use TOML/uv, not a second installer inside notebooks.
- The notebook file-browser root and venv are not security sandboxes. Python/notebooks run with your Windows permissions. Do not run untrusted code.
- No telemetry is implemented by these launchers. Setup contacts download/ package services; third-party applications have their own behavior.
- START uses process-scoped PowerShell
ExecutionPolicy Bypassto run the reviewed local launcher. It does not change persistent policy, request admin, disable TLS, or override organization-controlled execution restrictions. - No guarantee of zero vulnerabilities or compatibility with every endpoint security/proxy policy is made. See security policy.
See the review decisions for fixes, accepted tradeoffs and the limits of the security claims. Use a fresh extraction for a new release; do not overwrite an older prepared environment.
python/ application ZIP source
jupyterlab/ notebook ZIP source
preloaded/ offline application preparation/launch source
scripts/ offline release builder
tests/ Windows acceptance tests
docs/ download and security review details
Build machine: Python 3.11+ and PowerShell parser (pwsh or powershell.exe):
python scripts/build.py
This deterministic, network-free build checks the explicit source allowlist,
TOML, Python/notebook syntax and PowerShell syntax, then creates three starter ZIPs
under dist/. Each includes LICENSE and THIRD_PARTY.md. CI additionally runs
fresh Windows setup/application/kernel acceptance, using only upstream Internet
downloads. See testing.
Original project code: MIT. Downloaded components keep their own licenses; see third-party review. There are no bundled third- party binaries in the source repository or these release ZIPs.