Skip to main content

Tabler Icons library for Python

Project description

tablerpy

PyPI - Version PyPI - Python Version License CI - Tests

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.

Browse at tabler.io/icons →

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, PyQt or PySide.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tablerpy-0.2.0.tar.gz (625.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tablerpy-0.2.0-py3-none-any.whl (2.9 MB view details)

Uploaded Python 3

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

Hashes for tablerpy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ee2053a883ef33f8c42907ee2e74fb2b05802aac3a333609c5ae955447b721cc
MD5 0efe0f8d2ac318bc42793b77d19cdc68
BLAKE2b-256 c316a03c4ca4ff0ba7cca55b903be86da14e5c55e938c4de8eeba8a582c5958c

See more details on using hashes here.

Provenance

The following attestation bundles were made for tablerpy-0.2.0.tar.gz:

Publisher: release.yml on tahv/tablerpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for tablerpy-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 549a75eb2c71e63123d53906023069efcae367a2a1b0b627cf087353d3bb8570
MD5 2b456578dc6bac09a14fe8aefc47bec7
BLAKE2b-256 78413db13a18603dc63ceabe5aea46369d2c729bfd200b8dd53246483cab43f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for tablerpy-0.2.0-py3-none-any.whl:

Publisher: release.yml on tahv/tablerpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page