Skip to main content

sphinx-ubuntu-images

sphinx-ubuntu-images is a Sphinx extension that provides a custom directive to generate bulleted download lists of supported Ubuntu distro images for specific release ranges, suffixes, image-types, and architectures.

Basic usage

To generate a list of Ubuntu images, add the ubuntu-images directive to your document:

.. ubuntu-images::

This will generate a bulleted list of all supported Ubuntu images with download links.

Filtering options

The directive supports various filtering options:

Filter by release

.. ubuntu-images::
   :releases: jammy-

Examples of valid release values:

  • jammy - Just the 22.04 release
  • jammy, noble - Just the 22.04 and 24.04 releases
  • focal-noble - All releases from 20.04 to 24.04
  • jammy- - All releases from 22.04 onwards
  • -noble - All releases up to 24.04

Filter by architecture

.. ubuntu-images::
   :archs: armhf, arm64

Filter by image type

.. ubuntu-images::
   :image-types: preinstalled-server

Filter by suffixes

.. ubuntu-images::
   :suffixes: +raspi

The special value - matches images with no suffix.

Choose the flavor

.. ubuntu-images::
   :flavor: xubuntu

Images for flavors other than the default ubuntu are fetched from the flavor's own directory on cdimage.ubuntu.com (e.g. https://cdimage.ubuntu.com/xubuntu/releases/...), and only filenames with a matching prefix are included.

Releases the flavor never published are skipped. Note that support data follows mainline Ubuntu, whose LTS time-frames (and ESM) outlast those of most flavors, so consider an explicit :releases: range.

LTS releases only

.. ubuntu-images::
   :lts-only:

Handle empty results

.. ubuntu-images::
   :empty: No images available at this time

Complete examples

All supported raspi images from jammy onwards:

.. ubuntu-images::
   :releases: jammy-
   :suffixes: +raspi

All supported LTS armhf and arm64 images:

.. ubuntu-images::
   :archs: armhf, arm64
   :lts-only:

All Xubuntu minimal desktop images from resolute onwards:

.. ubuntu-images::
   :flavor: xubuntu
   :releases: resolute-
   :image-types: minimal

Project setup

sphinx-ubuntu-images can be installed with:

pip install sphinx-ubuntu-images

After installation, update your Sphinx's conf.py file to include sphinx-ubuntu-images as one of its extensions:

extensions = [
    "sphinx_ubuntu_images"
]

Directive Options Reference

The ubuntu-images directive supports the following options:

  • :releases: releases (list of ranges) - A comma or space-separated list of partial dash-delimited release ranges (as release codenames). If unspecified, all releases will be included.

  • :lts-only: (no value) - If specified, only LTS releases will be included in the output. Interim releases are excluded.

  • :image-types: image types (list of strings) - Filter images by their "type". This is the string after the release version, and before the architecture. The list may be comma or space separated. If unspecified, all image types are included.

  • :archs: architectures (list of strings) - Filter images by their architecture. The list may be comma or space separated. If unspecified, all architectures are included.

  • :suffix: image +suffix (string) - Filter images by their (plus-prefixed) suffix. If unspecified, any suffix (including images with no suffix) will be included. If specified but blank, only images with no suffix will be included.

  • :matches: regular expression (string) - Filter images to those with filenames matching the specified regular expression. Use of this filter is discouraged; try using other filters first.

  • :empty: string - If no images match the specified filters, output the given string instead of reporting an error and failing the build. The string may be blank for no output.

Advanced Usage

Regular Expression Filtering

For complex filtering requirements, you can use regular expressions:

.. ubuntu-images::
   :matches: .*server.*arm64.*
   :empty: No ARM64 server images found

Combining Multiple Filters

You can combine multiple filters for precise control:

.. ubuntu-images::
   :releases: focal-jammy
   :archs: arm64
   :image-types: preinstalled-server, live-server
   :suffix: +raspi
   :empty: No Raspberry Pi images found for the specified criteria

Community and support

You can report any issues or bugs on the project's GitHub repository.

sphinx-ubuntu-images is covered by the Ubuntu Code of Conduct.

sphinx-ubuntu-images is released under the GPL-3.0 license.

© 2025 Canonical Ltd.

Metadata

Release files for sphinx-ubuntu-images 0.3.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 sphinx-ubuntu-images 0.3.0
File Size Uploaded Provenance Actions
sphinx_ubuntu_images-0.3.0.tar.gz 113.2 kB With provenance Details for sphinx_ubuntu_images-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sphinx-ubuntu-images 0.3.0
File Interpreter ABI Platform Actions
sphinx_ubuntu_images-0.3.0-py3-none-any.whl Python 3 none any Details for sphinx_ubuntu_images-0.3.0-py3-none-any.whl

Total release size: 144.3 kB

Release files / sphinx_ubuntu_images-0.3.0.tar.gz

Download URL sphinx_ubuntu_images-0.3.0.tar.gz
Size 113.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4d72062da0a0c07b289da90047567530e4daeb3e414b106b5bb6ec9cf6fac77d
BLAKE2b-256 checksum
How to use checksums
22deaeb1aceba2014ea222124605532f4877706dddfb01ddf3edbfabe35750a0
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 Sep 30, 2026.

Transparency log

Release files / sphinx_ubuntu_images-0.3.0-py3-none-any.whl

Download URL sphinx_ubuntu_images-0.3.0-py3-none-any.whl
Size 31.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3fd8d48234fd230bebd7c0715d1e5981e7fc03496337b9bcd7890a1d0b5e4f0b
BLAKE2b-256 checksum
How to use checksums
f7ab7b19b0eea1f130b78fa19fddb5cf7024b98cbd6eacadb42f14c58900f196
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 Sep 30, 2026.

Transparency log

Security for sphinx-ubuntu-images 0.3.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sphinx_ubuntu_images-0.3.0.tar.gz

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 Sep 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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