Pyramz
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()andpyramz.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.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyramz-0.5.0.tar.gz | 33.8 kB | With provenance | Details for pyramz-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyramz-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for pyramz-0.5.0-py3-none-any.whl |
Total release size: 64.8 kB
Release files / pyramz-0.5.0.tar.gz
| Download URL | pyramz-0.5.0.tar.gz |
|---|---|
| Size | 33.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e48b9194171ca15937be52df0a2fe107dda1121e5a1a2406c367887b5eb22684
|
|
BLAKE2b-256 checksum How to use checksums |
2af3d67d495f831b4da68aec82fbb9b652206b0888b21726bd3fda5d7f79068c
|
| 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 26, 2026.
Transparency logRelease files / pyramz-0.5.0-py3-none-any.whl
| Download URL | pyramz-0.5.0-py3-none-any.whl |
|---|---|
| Size | 31.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d781c2bbdda1ad4eaff797e24ccbb1806690ab0c6804837b571ffc6d5ba7dd5c
|
|
BLAKE2b-256 checksum How to use checksums |
757ab0d2d423bf7ea04ad67a6d9c1cb21c5dfa27ba3c54f885eb9ce22d5bc623
|
| 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 26, 2026.
Transparency logSecurity for pyramz 0.5.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.
Attestation for pyramz-0.5.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 26, 2026.
Transparency logA 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.