Skip to main content

ubami

A module and CLI for listing and filtering the latest Ubuntu AMIs from cloud-images.ubuntu.com.

For when you'd rather not hard-code an Ubuntu AMI ID.

Installation

pip install ubami

Usage

# find the latest Jammy Jellyfish AMI for amd64+hvm:ebs-ssd in London
ami_id = ubami.find(region='eu-west-2',
                    version='22.04 LTS',
                    arch='amd64',
                    instance_type='hvm:ebs-ssd')[0]['ami_id']
# fetch a list of all the latest official Ubuntu AMIs
ami_list = ubami.list()
# first example as a shell command
ubami --region=eu-west-2 --version='22.04 LTS' --arch=amd64 --instance-type=hvm:ebs-ssd | jq -r '.[0].ami_id'
# second example as a shell command
ubami

Release files for ubami 0.1.2

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

Source distribution (sdist)

Source distribution for ubami 0.1.2
File Size Uploaded
ubami-0.1.2.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ubami 0.1.2
File Interpreter ABI Platform
ubami-0.1.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size:5.7 kB

Release files / ubami-0.1.2.tar.gz

Download URL ubami-0.1.2.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
83216c2aa505278eebdf12c92bf4ec93fbf6cc4e3e17ef83693f45d5670d6a60
BLAKE2b-256 checksum
How to use checksums
ae49d56932ca6ae5e3063f6052b3a9d2faf5c442cfbd91eb053ae67eff723f54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / ubami-0.1.2-py2.py3-none-any.whl

Download URL ubami-0.1.2-py2.py3-none-any.whl
Size 3.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
4803dac4754a4f74f8165ee1ed729a64e690bafc0bc76ef5822944058a148b1f
BLAKE2b-256 checksum
How to use checksums
1db60474b9a487e11ddf17b91662b1ad87e416ee3d72c3bbc574df301c2964ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.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