Skip to main content

geometric-banner

Make geometric banner images, e.g. for a LinkedIn profile banner.

According to LinkedIn, the optimal size for a profile banner is 1128 by 191 pixels. According to me, the best shape is the hexagon.

Sample results

sample hexagon tiling from this script

sample triangle tiling from this script

sample Gaussian process pattern from this script

Usage

Run it without installing anything, using uv:

uvx geometric-banner

Or install it as a tool so geometric-banner is always on your PATH:

uv tool install geometric-banner
geometric-banner

(pip install geometric-banner works too.) Either way, the command writes geometric_banner.svg and geometric_banner.png to the current directory.

Everything is optional; the defaults produce a LinkedIn-sized hexagon banner colored by a Gaussian process in viridis. Pass --seed to make a result reproducible — with the same installed versions of numpy and scikit-learn, that is; the Gaussian process sampler goes through floating-point linear algebra, so upgrading those can shift the result slightly.

geometric-banner --shape triangle --colormap magma --seed 42
Option Values Default
--shape hexagon, triangle hexagon
--pattern gaussian_process, random gaussian_process
--colormap viridis, magma, inferno, plasma viridis
--seed any integer none (a fresh random result each run)
--scale shape size in pixels 10
--padding-factor center-to-center spacing as a multiple of scale; below 1 the shapes overlap 1.1
--width, --height canvas size in pixels 1128, 191

geometric-banner --help lists the same options.

Development

Requires uv and just.

just sync    # create the virtualenv and install everything
just check   # lint, format check, type check, and tests with coverage
just help    # list every recipe

Metadata

Release files for geometric-banner 0.1.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 geometric-banner 0.1.0
File Size Uploaded Provenance
geometric_banner-0.1.0.tar.gz 23.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for geometric-banner 0.1.0
File Interpreter ABI Platform
geometric_banner-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 48.3 kB

Release files / geometric_banner-0.1.0.tar.gz

Download URL geometric_banner-0.1.0.tar.gz
Size 23.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c9e48946a1257ab2be663ddf1170ec7e089e4ab818074acd9791e180805679bd
BLAKE2b-256 checksum
How to use checksums
38943b13e7410dff626b640eede97bab7abaeb8dd79da249cb2e49caa8ead4fd
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 15, 2026.

Transparency log

Release files / geometric_banner-0.1.0-py3-none-any.whl

Download URL geometric_banner-0.1.0-py3-none-any.whl
Size 24.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c77cb8bbe6227b4e88f8d61ae4cd6b797c3eef20563d9f0a9843b9ce6c8791f6
BLAKE2b-256 checksum
How to use checksums
b4ce2724893281b37a0ab6d1f036694a12378a1c5592523241694a1508eaa3f4
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 15, 2026.

Transparency log

Security for geometric-banner 0.1.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 geometric_banner-0.1.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 15, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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