fa6-icons
This module provides the free icons from Font Awesome v6 in a python-friendly form.
The actual SVGs and associated data are licensed on the same terms as the originals – this package only adds a little on top to make them easier to use from Python.
Install
pip install fa6_icons
…or…
conda install -c fastai fa6_icons
How to use
Two objects are provided, svgs and dims.
from fa6_icons import svgs,dims
These are both AttrDict objects, which behave as dicts, but can also be accessed with dotted-attrs. They contain the same keys. To search them, use standard python dict approaches, e.g:
[o for o in svgs if 'addr' in o]
['address_book', 'address_card']
Each style is available as a key for each SVG and dims entry, e.g:
dims.address_card
{'regular': (512, 576), 'solid': (512, 576)}
In a notebook environment, SVGs are displayed:
svgs.address_card.regular
To make attr access more convenient, hyphens are replaced with underscores, and icon names starting with a digit are prefixed with an underscore.
Use width to view the svg in a notebook with a different width (it
defaults to 300px).
svgs._9.solid.width(25)
When stringified, the SVG text is returned:
print(svgs._9.solid)
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M64 192a96 96 0 1 0 192 0A96 96 0 1 0 64 192zm87.5 159.8C67.1 347.4 0 277.5 0 192C0 103.6 71.6 32 160 32s160 71.6 160 160c0 2.6-.1 5.3-.2 7.9c-1.7 35.7-15.2 70-38.4 97.4l-145 171.4c-11.4 13.5-31.6 15.2-45.1 3.8s-15.2-31.6-3.8-45.1l63.9-75.6z"/></svg>
Metadata
Release files for fa6-icons 0.0.3
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 |
|---|---|---|---|---|
| fa6_icons-0.0.3.tar.gz | 618.5 kB | Without provenance | Details for fa6_icons-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fa6_icons-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for fa6_icons-0.0.3-py3-none-any.whl |
Total release size: 1.2 MB
Release files / fa6_icons-0.0.3.tar.gz
| Download URL | fa6_icons-0.0.3.tar.gz |
|---|---|
| Size | 618.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b547b6a8f632735abaac285d0806a1556ae8a3d121daec8207092f25e1bd2d7a
|
|
BLAKE2b-256 checksum How to use checksums |
370a534f2d05ed5ac7f1412553fcc064ceaf3639a7afa479864450ac6b98f1f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / fa6_icons-0.0.3-py3-none-any.whl
| Download URL | fa6_icons-0.0.3-py3-none-any.whl |
|---|---|
| Size | 624.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7beea45ceca72cd74730247e80b44f900be5819f65fa8cd2bc5eb72772bee61
|
|
BLAKE2b-256 checksum How to use checksums |
7d3f81b1a6319d3f219d4e75928b1ea702969435c002fb6349d307a88254812d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Security for fa6-icons 0.0.3
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.