Skip to main content

Package containing icons taken from ionicons website.

Project description

🌿ionicons_python

🍃Description

This package containing the icons taken from ionicons website for using those easily in Python. You will not only get the basic icons from this package, but also get the social icons too, for example Linkedin, GitHub, Twitter, etc.

🍃Installation

Stable release

To install ionicons_python, run this command in your terminal:

$ pip install ionicons_python

This is the preferred method to install ionicons_python, as it will always install the most recent stable release.

If you don't have pip installed, this Python installation guide can guide

you through the process.

pip: https://pip.pypa.io

Python installation guide: http://docs.python-guide.org/en/latest/starting/installation/

🍃Usage

After the installation is complete, use it with any of your favourite framework like Flet, Streamlit etc. Here I am giving an example of using Flet.

from ionicons_python.ionicons_icons import *
import flet as ft

def main(page: ft.Page):
   page.add(ft.Image(linkedin_icon, width=24, height=24))

ft.app(target=main)

Don't use this icons with Iconbutton or Icon of Flet. Those only take flet inbuilt icons.

for Streamlit, below is an example:

import streamlit as st
from ionicons_python.ionicons_icons import *

st.image(python_icon, width=30)

in the version 0.1.5, you can get some colored icons too. Those icons are available in the extra_icons module. The usage of it in Flet and Streamlit are shown below respectively.

Flet
from ionicons_python.colored_icons import *
import flet as ft


def main(page: ft.Page):
    page.add(ft.Image(google_color_icon, width=24, height=24))


ft.app(target=main)
Streamlit
import streamlit as st
from ionicons_python.colored_icons import *

st.image(python_color_icon, width=30)

if you want to know which colored icons are available, see the Releases section. All the icons provided here is in .svg format. So, if you change the size of the icon, it will still looks sharp.

if you want to see all the ionicons icons available, visit this website.

🍃Releases

1.0.3
  • fixed path error while using colored icons.
1.0.2
  • This library is now Stable. You can also see some new colored icons which are taken from icons8, flaticons, etc. The icons are listed below.

    • chatgpt_icon
    • gmail_icon
    • google_color_icon
    • google_docs_icon
    • google_sheets_icon
    • google_drive_icon
    • google_slides_icon
    • streamlit_icon
    • python_color_icon
0.1.4
  • bugs fixed and done improvements.
0.1.3
  • previously the icons are only working with the desktop app of the Flet, not in the website. Now this bug is fixed.
0.1.2
  • First release in PyPI in Pre-Alpha Stage.

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

ionicons_python-1.0.3.tar.gz (285.5 kB view details)

Uploaded Source

File details

Details for the file ionicons_python-1.0.3.tar.gz.

File metadata

  • Download URL: ionicons_python-1.0.3.tar.gz
  • Upload date:
  • Size: 285.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/1.26.15 tqdm/4.65.0 importlib-metadata/6.6.0 keyring/23.13.1 rfc3986/1.5.0 colorama/0.4.6 CPython/3.10.2

File hashes

Hashes for ionicons_python-1.0.3.tar.gz
Algorithm Hash digest
SHA256 c7330a0bbce026f3dc2ff8e74d086a73648984d9a568a1b1f5bbecfcb5cc8fe9
MD5 2010faa4e198c7bf99116b4af6383847
BLAKE2b-256 c674f2a846bdcbda9de7b871b7a1840979a4760465424d5e10eaa56302a9776d

See more details on using hashes here.

Supported by

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