Skip to main content

simplepycons

PyPI Simple Icons version Latest Simple Icons Release License pdm-managed

Python wrappers for simple-icons inspired by the wonderful work of sachinraja.

As latter project seems to be no longer maintained, this project starts as being compatible to simple-icons 13.x

Usage

The simplepycons namespace contains the following types:

  • Icon: The basic icon class, from which all Icons are inherited. It is abstract and hence cannot be inherited.
  • all_icons: A collection of all icons found.
  • IconFactory: A simple wrapper providing a callable interface and a prototype.

as well as a class for each icon provided.

So, you can run:

from simplepycons import all_icons, PythonIcon

icon1 = PythonIcon()
icon2 = all_icons.get_python_icon()
icon3 = all_icons["python"]

All calls should provide a new Icon instance of the python icon.

For all simple-icons, a get icon method is provided using the name of the icon.

An instance of Icon offers the following properties:

  • name (str): The name of the icon, i.e. the name of the simple-icon id.
  • original_file_name (str): The name of the file it was created from.
  • title (str): The name of the brand
  • primary_color (str): The primary color of the brand.
  • raw_svg (str): The RAW SVG graphics as string.
  • guidelines_url (str | None): The url to the usage guidelines (optional).
  • license (tuple[str | None, str | None]): The license as a tuple. The first element is the SPDX identifier, the second element is the URL to the license document (optional).
  • source (str): The source URL of the icon.
  • aliases (Iterable[str]): A list of aliases used as alternative titles

An instance of Icon offers the following methods:

  • svg_tree() (xml.ElementTree.Element): The SVG as XML Element
  • customize_svg(**svg_attr: str) (xml.ElementTree.Element): The SVG with custom attributes on the root node.
  • customize_svg_as_bytes(**svg_attr: str) (bytes): The SVG with custom attributes on the root node, converted to a bytes object.
  • customize_svg_as_str(**svg_attr: str) (str): The SVG with custom attributes on the root node, converted to string.
  • customize_svg_as_data_url_(**svg_attr: str) (str): The SVG with custom attributes on the root node, converted to a base64 encoded data url.

The svg_attr keyword arguments can be used to add any arbitrary svg attribute to the SVG root node. If fill is not used, the primary_color is used.

Metadata

Release files for simplepycons 1!16.38.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 simplepycons 1!16.38.0
File Size Uploaded Provenance Actions
simplepycons-1!16.38.0.tar.gz 2.6 MB Without provenance Details for simplepycons-1!16.38.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for simplepycons 1!16.38.0
File Interpreter ABI Platform Actions
simplepycons-1!16.38.0-py3-none-any.whl Python 3 none any Details for simplepycons-1!16.38.0-py3-none-any.whl

Total release size: 8.0 MB

Release files / simplepycons-1!16.38.0.tar.gz

Download URL simplepycons-1!16.38.0.tar.gz
Size 2.6 MB
Tags Source
SHA-256 checksum
How to use checksums
d2ae9455dc7769c7b87cd0dfc75a31d59df517a5d43a20276695040ccc5b24bb
BLAKE2b-256 checksum
How to use checksums
3dd7134a50eb5337ae0e0cc646eaba34c790c9dfc46fc3d337f463ad54d8a600
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.29.7 CPython/3.15.2 Linux/7.0.0-1019-azure

Release files / simplepycons-1!16.38.0-py3-none-any.whl

Download URL simplepycons-1!16.38.0-py3-none-any.whl
Size 5.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
4dccea8abf743d7ac25d2c10d01d424cc12dead3166f500dea8c0e0eb1664ddd
BLAKE2b-256 checksum
How to use checksums
827c3c77ad06c4e0b396bf213b9dd76aeac2525d6058754499375d2b3ced0039
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.29.7 CPython/3.15.2 Linux/7.0.0-1019-azure

Security for simplepycons 1!16.38.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

1!16.38.0 This release

2 release files No 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