Skip to main content

Generate customizable icons from Iconify with easy export to PNG, SVG, WebP

Project description

icon-gen

Python 3.10+ License: MIT Tests Coverage

Generate customizable icons from Iconify with easy export to PNG, SVG, WebP formats.

Features

  • Access 200,000+ icons from Iconify
  • Customize colors and sizes
  • Custom backgrounds
  • Adjustable border radius
  • Export to SVG format
  • Simple and intuitive API
  • CLI and Python API

Installation

pip install icon-gen

Quick Start

from icon_gen import IconGenerator

# Initialize generator
generator = IconGenerator(output_dir="output")

# Generate multiple icons at once
ai_icons = {
    'openai': 'simple-icons:openai',
    'gemini': 'simple-icons:googlegemini',
    'mistral': 'simple-icons:mistralai',
    'claude': {
        'url': 'https://upload.wikimedia.org/wikipedia/commons/b/b0/Claude_AI_symbol.svg'
    }
}

generator.generate_batch(ai_icons, color='white', size=256)

Example Output

Claude Gemini Mistral OpenAI

Finding Icons

Browse available icons at Iconify

Icon naming format: collection:icon-name

  • simple-icons:openai - Company logos
  • mdi:github - Material Design Icons
  • fa6-solid:scale-balanced - Font Awesome icons
  • heroicons:scale - HeroIcons

Examples

Check out the examples/ directory for more use cases:

  • generate_ai_icons.py - Generate AI model icons (Claude, OpenAI, Gemini)
  • generate_judge_icon.py - Generate legal/law icons

Development

# Clone the repository
git clone https://github.com/yauheniya-ai/icon-gen.git
cd icon-gen

# Install all dependencies (including dev tools)
uv sync

# Run tests
uv run pytest

License

MIT License - see LICENSE file for details

Author

Yauheniya Varabyova (yauheniya.ai@gmail.com)

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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

icon_gen_ai-0.1.4.tar.gz (166.1 kB view details)

Uploaded Source

Built Distribution

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

icon_gen_ai-0.1.4-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file icon_gen_ai-0.1.4.tar.gz.

File metadata

  • Download URL: icon_gen_ai-0.1.4.tar.gz
  • Upload date:
  • Size: 166.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for icon_gen_ai-0.1.4.tar.gz
Algorithm Hash digest
SHA256 c16d086e461b1808dce362ba50c87cec510d79830d4ff471e7d5d2c2af42a4a1
MD5 27403761c103f0127b1c84935f10a2e1
BLAKE2b-256 cf8cf9df7bd7e4709f36da295406ebc58a0ea74af40bf2a228b9058507a16718

See more details on using hashes here.

File details

Details for the file icon_gen_ai-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: icon_gen_ai-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for icon_gen_ai-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 02873d55058885976474eab10b6d6bfd6e9024f8d7fc6150ec04e0b53be72fa5
MD5 4baea214f5f4098e9474bab95eecd261
BLAKE2b-256 9d64ef97938aa50ec0239468051108ceca0fbf66327113f7521a4bb08106dc07

See more details on using hashes here.

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