Skip to main content

Pyramz

PyPI Python versions CI License

Original SVG icons for Python, in outline and duotone styles with round or sharp corners.

Pyramz returns clean, accessible SVG markup for web pages, templates, notebooks and files. It has no dependencies and supports Python 3.9+. Browse every icon in the gallery.

Installation

pip install pyramz

PNG export is optional: pip install "pyramz[png]".

Usage

import pyramz

pyramz.icon("home")
pyramz.icon("bell", size=32, stroke_width=1.5)
pyramz.icon("heart", style="duotone", accent="#e11d48")
pyramz.icon("folder", corners="sharp")
pyramz.icon("search", title="Search")  # accessible label

pyramz.search("money")  # find icons by name or tag
pyramz.set_defaults(stroke_width=2)  # project-wide defaults

pyramz.icon() returns an Icon that behaves like a string of SVG markup. It renders directly in Jinja2 and Django templates (no |safe needed) and in Jupyter, and it can be saved with .save("home.svg"), .to_data_uri() or .to_png("home.png").

Options

Option Default Description
size 24 Width and height: a number or a CSS length
color "currentColor" Stroke colour
stroke_width 1.75 Stroke width in grid units
style "outline" "outline" or "duotone"
accent same as color Duotone tint colour
accent_opacity 0.22 Duotone tint opacity
corners "round" "round" or "sharp"
absolute_stroke False Keep the stroke the same width in pixels at any size
title None Accessible label; leave it out for decorative icons
class_ None Extra CSS classes

Any other keyword becomes an SVG attribute, with underscores turned into dashes (data_testid="x" → data-testid="x").

More

  • pyramz.names(), pyramz.categories() and pyramz.info(name) list and describe icons.
  • pyramz.icons.arrow_right() gives attribute access with tab completion.
  • pyramz.sprite([...]) builds an SVG sprite sheet for <use href="#pyramz-home"/>.
  • pyramz.register(name, paths) adds your own icons.

Command line

pyramz list
pyramz search arrow
pyramz show heart --style duotone
pyramz export -o svg/ --size 32
pyramz gallery -o gallery.html

Contributing

Contributions are welcome. See CONTRIBUTING.md.

License

Licensed under the Apache License, Version 2.0.

Metadata

Release files for pyramz 0.4.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 pyramz 0.4.0
File Size Uploaded Provenance Actions
pyramz-0.4.0.tar.gz 33.6 kB With provenance Details for pyramz-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 64.4 kB

Release files / pyramz-0.4.0.tar.gz

Download URL pyramz-0.4.0.tar.gz
Size 33.6 kB
Tags Source
SHA-256 checksum
How to use checksums
339ad0cb02618e4e054955164d7f663a16a1ff7673a147a310a633a79fb383be
BLAKE2b-256 checksum
How to use checksums
5a1a47bef28d34360f68f28e0797da6e0376a08d17de67c222c96caab89b817c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / pyramz-0.4.0-py3-none-any.whl

Download URL pyramz-0.4.0-py3-none-any.whl
Size 30.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c9a6935ddf08bc83b841ef5ab905da811629f67490649f969cb95186837d2ee
BLAKE2b-256 checksum
How to use checksums
20d18142dee0dc0fd5ddf0b7355c2a716979868cfc06a3bc53fb3310ec4ba2f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Security for pyramz 0.4.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pyramz-0.4.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 Nov 25, 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.4.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