Skip to main content

Ivaldi

Ivaldi turns a Python project into a platform-specific, one-file launcher. The launcher embeds the project's wheel and configuration, installs a UV-managed Python environment on its first run, and forwards every later invocation to the installed application.

Contributions Welcome | Code Quality and Tests Coverage badge

Configuration

Add ivaldi.toml to the project being wrapped:

[app]
entrypoint = "my_package.cli:main"
include = ["my_package/**/*", "README.md"]

[uv]
version = "0.12.3"
install_args = []
build_args = []

[uvx]
build_args = []

[python]
version = "3.14.5"
install_args = []

[nuitka]
build_args = []
company-name = "Example Company"
product-name = "My Application"
file-description = "My packaged Python application"
icon = "./docs/icon.png"

[darwin]
name = "My Application"
alias = "my-app"
location = "com.example.my-app"
add_to_path = true
admin = false

[linux]
name = "My Application"
alias = "my-app"
location = "my-app"
add_to_path = true
admin = false

[windows]
name = "My Application"
alias = "my-app"
location = "MyApplication"
add_to_path = true
admin = false

The configuration can instead live under [tool.ivaldi] in pyproject.toml. Prefix each normal section with tool.ivaldi, for example:

[tool.ivaldi.app]
entrypoint = "my_package.cli:main"
include = ["my_package/**/*"]

[tool.ivaldi.python]
version = "3.14.5"

...

When no standalone configuration exists, Ivaldi extracts only [tool.ivaldi] and writes it to a project-root ivaldi.toml before building. Generated files include a schema directive and are refreshed when [tool.ivaldi] changes; a hand-written standalone file remains authoritative. The formal configuration definition is available in ivaldi.schema.json, and the same schema describes the object nested under [tool.ivaldi].


Configuration Flags

All default settings and flags are visible in the ivaldi settings dataclass

app.entrypoint: 
  description: The entrypoint for your application. Can be a module e.g. `mycli` or a specific command, e.g. `mycli:main`
  type: str
  example: mycli:main
app.include: 
  description: Controls which source files are copied to Ivaldi's clean wheel-build stage. 
  note: `pyproject.toml` is always included. Add any files referenced by the build configuration, such as a README or license.
  type: list[glob]
  example: ["*.py"]
app.exclude: 
  description: Specify files to exclude by a matching pattern. 
  note: If a file would be excluded, but a more specific include would include it, it is superseded by include
  type: list[glob]
  example: ["*.pyc"]
[uv,python].version:
  description: Which Python or UVX version to use for your application. 
  No compatability checks are performed, and the wrapped executable does not compile with these versions. 
  `ivaldi build` will use local Python and UV, fetching only UV if required.
[uv,uvx,python].install_args:
  description: Are passed through to the corresponding UV, UVX, Python, and Nuitka commands. 
  note: Overwrites defaults, does not merge them.
  type: list[flag]
  example: ["--compile",]
[uv,uvx,python].build_args:
  description: Are passed through to the corresponding UV, UVX, Python, and Nuitka commands. 
  note: Overwrites defaults, does not merge them.
  type: list[flag]
  example: ["--compile",]
add_to_path:
  description: When true, Ivaldi copies the launcher into the platform bin directory (e.g. `~/.local/bin`, `~/.bin`)
  type: bool
alias: 
  description: In Unix-like systems, adds an idempotent managed alias pointing to that copy.
  note: Attempts to locate the active shell's startup file (`.zshrc`, `.bash_profile`, `.bashrc`, Fish's `config.fish`, or `.profile` as applicable). 
  When false, no command alias is installed. Your command might still be accessible if `add_to_path` was `true`
  type: string
admin: 
  description: Requires sudo/administrator privileges for installation or application runs.
  note: Ivaldi does not elevate itself. It stops and asks to be rerun with sudo (or as Administrator on Windows). 
  values: 
    - `install` requires sudo only for first-run installation. exits after installation so the application can subsequently be run without elevation.
    - `run` requires sudo only for running the installed application.
    - `true` requires sudo for running and installation.
    - `false` never requires them. 
  type: Literal[true, false, 'install', 'run']
nuitka:
  description: Nuitka metadata is passed as `--company-name`, `--product-name`, and `--file-description`. 
  note: Relative icon paths are resolved from the wrapped project and translated to the platform-specific Nuitka icon option.
  name: 
    description: The name to give your executable program
    type: str
    example: mycli
  company: 
    description:
    type: str
    example: My Company
  icon: 
    description: The icon for your program. Will only be visible on Windows, some Linux distro's, and if your application launches a GUI of some kind. 
    type: str(path)
    example: ./static/mycli.png

Build and run

From the wrapped project:

ivaldi build

The command builds the project wheel in an isolated environment, places the wheel and ivaldi.toml in the embedded payload, optionally collects dependency wheels, and invokes Nuitka. The generated launcher is written to the project's dist/ directory using the current platform's alias. Nuitka uses cached onefile extraction under a cache directory named by the platform's location value.

If dependency wheels are requested, Ivaldi uses uv from PATH when available. Otherwise it downloads the configured UV release into a versioned local tool cache and uses that copy.

On the launcher's first run, Ivaldi downloads UV and the configured Python, creates a dedicated virtual environment in the platform data directory, installs the embedded wheel, and runs the configured entrypoint. Subsequent runs skip installation and forward their arguments through UV to that managed Python environment.

Metadata

Release files for ivaldi 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ivaldi 0.3.3
File Size Uploaded
ivaldi-0.3.3.tar.gz 19.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ivaldi 0.3.3
File Interpreter ABI Platform
ivaldi-0.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 42.9 kB

Release files / ivaldi-0.3.3.tar.gz

Download URL ivaldi-0.3.3.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4984eef0107fe29f5ed4761e2b5390711affbbdb9110d739a4efe7a693abaf8f
BLAKE2b-256 checksum
How to use checksums
ac59c4d29dd6c54ba6721aed761fbdc8b08ad2e5e987a2c3bdafb91b3c32578b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.

Transparency log

Release files / ivaldi-0.3.3-py3-none-any.whl

Download URL ivaldi-0.3.3-py3-none-any.whl
Size 23.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ec3bbabf286cc72201a24785306cd104473807ebbbb0d499c44b931e5488f1d
BLAKE2b-256 checksum
How to use checksums
da97f8a7ec53007fb84d7a991284e7db1b942490566000ae5b18ab8f6a04d449
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.

Transparency log

Release history Release notifications | RSS feed

0.4.0

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

This release

0.3.3 This release

2 release files

0.3.2

2 release files

0.2.8

2 release files

0.1.7

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page