Skip to main content

DiamondPack

A simple packager for creating distributable Python applications


Used to create distributable applications in the simplest way possible. Enables Python applications to easily run on systems that don't have Python installed, and without the need for users to know what Python even is.

Features:

  • Build Windows and Linux applications
  • Minimal configuration needed
  • Fast execution, no waiting for libraries to unzip

Install:

Default install: pip install diamondpack

If you don't already have a version of CMake installed, in order to use the "app" mode, install the optional cmake package
pip install diamondpack[app] or pip install cmake

Usage:

1. Configure DiamondPack via your pyproject.toml

[project.scripts]
# Each script named here will generate a new executable
myScript = "examplePackage.myScript:main"

[project.gui-scripts]
# Each script named here will also generate a new executable
# Only makes a difference on Windows.
myGUI = "examplePackage.myGUI:main"

[tool.diamondpack]
mode = "app"

# Prevents specific installed packages from being reduced to only .pyc files
# Some packages complaing about this. This is a list of the MODULE's name, same as it is imported as
# NOT the pip package name
py-cache-blacklist = ["opencv"]

# Prevents specific stdlib packages from being copied to reduce package size
stdlib-blacklist = ["email", "turtle", "unittest"]

# Flag to copy required tk/tcl files
include-tk = false

# Additional data files can be copied into your distribution like this
# File globs are copied to the specified path in the dist.
# You can also just use MANIFEST.in to store data files in your wheel.
data-globs = [
    ["myData/img*.jpg", "destinationDir"],
    ["myData/data.dat", "data"]
]

# Enable some additional logging for the "app" mode
debug-logs = true

[tool.diamondpack.icons]
# Specify the .ico file for your execs named above
# Only works on Windows
myGUI = "path/myGUI.ico"

Mode can be app or script:

  • app will generate a compiled executable (requires CMake and a compiler installed)
  • script will generate a bash (Linux) or batch (Windows) script

2. Build your application into a wheel

python -m build --wheel
Check out the test folder for an example package and its pyproject.toml configuration

3. Run diamondpack

python -m diamondpack or, with a venv activated, simply run diamondpack

4. Profit

Your package will be placed in dist/[package-name]-[version]/

FAQ

Q) Do DiamondPack applications work cross-platform?
A) While DiamondPack itself is cross-platform, packaged applications are only usable in the OS they were packaged on

Q) What is that cool snake doin in that there box?
A) His name is Henry and he protects your packages

Metadata

Release files for diamondpack 1.5.0

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

Source distribution (sdist)

Source distribution for diamondpack 1.5.0
File Size Uploaded
diamondpack-1.5.0.tar.gz 16.0 kB Details

Built distribution (wheel)

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

Total release size: 33.4 kB

Release files / diamondpack-1.5.0.tar.gz

Download URL diamondpack-1.5.0.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c8606550a7f5317b31cc24de9d0e8bf4b0fd9d00392cf52788113ff8423050c4
BLAKE2b-256 checksum
How to use checksums
b6462f3d0ea20fd977f9585ca6f3d9beb1a69ca3c26b6f99cfae3ed14cc622f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Feb 17, 2026.

Transparency log

Release files / diamondpack-1.5.0-py3-none-any.whl

Download URL diamondpack-1.5.0-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
847a851d9fa4d4acd56d4809c8e337c0139d7dadbf8438813eb6bb52268143ff
BLAKE2b-256 checksum
How to use checksums
e95bb81dbc02f75304664c8910c17e4132f019f1307613e3877b8288dad1af60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Feb 17, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files

1.4.5

2 release files

1.4.1

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

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