Tabler Icons library for Python
Project description
tablerpy
Tabler Icons library for Python.
Tabler Icons is a set of free MIT-licensed high-quality SVG icons. Each icon is designed on a 24x24 grid and a 2px stroke.
Installation
pip install tablerpy
Usage
The function tablerpy.get_icon accepts a OutlineIcon | FilledIcon
and return a Traversable (pathlib.Path) to the icon .svg file.
from tablerpy import OutlineIcon, FilledIcon, get_icon
outline_icon_path = get_icon(OutlineIcon.BRAND_GITHUB)
filled_icon_path = get_icon(FilledIcon.BRAND_GITHUB)
Icon names match those on tabler.io/icons,
except they are uppercased and hyphens - are replaced with underscores _.
For example, brand-github
becomes BRAND_GITHUB.
Contributing
Generating icons and enums
To keep up with Tabler Icons releases, most of this package is generated using a script.
$ python scripts/generator.py --help
usage: generator.py [-h] --version VERSION [--package PACKAGE]
Download Tabler Icons release from github.com/tabler/tabler-icons and generate Python files.
options:
-h, --help show this help message and exit
--version VERSION Tabler Icons release version
--package PACKAGE Target package directory
For instance, to generate files from Tabler Icons Release 3.29.0:
python scripts/generator.py --version 3.29.0
Acknowledgements
- pytablericons
for providing inspiration.
The package include features for using icons with
Pillow,PyQtorPySide.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tablerpy-0.2.0.tar.gz.
File metadata
- Download URL: tablerpy-0.2.0.tar.gz
- Upload date:
- Size: 625.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee2053a883ef33f8c42907ee2e74fb2b05802aac3a333609c5ae955447b721cc
|
|
| MD5 |
0efe0f8d2ac318bc42793b77d19cdc68
|
|
| BLAKE2b-256 |
c316a03c4ca4ff0ba7cca55b903be86da14e5c55e938c4de8eeba8a582c5958c
|
Provenance
The following attestation bundles were made for tablerpy-0.2.0.tar.gz:
Publisher:
release.yml on tahv/tablerpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tablerpy-0.2.0.tar.gz -
Subject digest:
ee2053a883ef33f8c42907ee2e74fb2b05802aac3a333609c5ae955447b721cc - Sigstore transparency entry: 174119597
- Sigstore integration time:
-
Permalink:
tahv/tablerpy@cd7fec9ffe4f12b6c9128daf8794393d5fd9ac60 -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/tahv
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@cd7fec9ffe4f12b6c9128daf8794393d5fd9ac60 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tablerpy-0.2.0-py3-none-any.whl.
File metadata
- Download URL: tablerpy-0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
549a75eb2c71e63123d53906023069efcae367a2a1b0b627cf087353d3bb8570
|
|
| MD5 |
2b456578dc6bac09a14fe8aefc47bec7
|
|
| BLAKE2b-256 |
78413db13a18603dc63ceabe5aea46369d2c729bfd200b8dd53246483cab43f8
|
Provenance
The following attestation bundles were made for tablerpy-0.2.0-py3-none-any.whl:
Publisher:
release.yml on tahv/tablerpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tablerpy-0.2.0-py3-none-any.whl -
Subject digest:
549a75eb2c71e63123d53906023069efcae367a2a1b0b627cf087353d3bb8570 - Sigstore transparency entry: 174119599
- Sigstore integration time:
-
Permalink:
tahv/tablerpy@cd7fec9ffe4f12b6c9128daf8794393d5fd9ac60 -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/tahv
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@cd7fec9ffe4f12b6c9128daf8794393d5fd9ac60 -
Trigger Event:
push
-
Statement type: