Skip to main content

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

Project description

icon-gen-ai

Python 3.10+ License: MIT Tests Coverage PyPI version TestPyPI version GitHub last commit

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

Features

  • Access 200,000+ icons from Iconify
  • Customize colors, sizes, and backgrounds
  • Gradient color option for icons and backgrounds
  • Adjustable border radius
  • Export to SVG, PNG, or WEBP format
  • Simple and intuitive CLI and Python API
  • AI-assisted icon search and generation

Installation

pip install icon-gen-ai

(Optional) AI features:

pip install icon-gen-ai[ai]

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_ai_icons_on_bg.py - Generate icons on different backgrounds
  • generate_judge_icon.py - Generate legal/law icons
  • ai_simple_usage.py - Use natural language to search and generate icons
  • ai_icon_search.py - Use natural language to search and generate icons with custom style

Development

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

# Install all dependencies (including dev tools)
uv sync
uv sync --extra ai

# Run tests
uv run pytest --cov=src --cov-report=term-missing

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.2.1.tar.gz (23.6 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.2.1-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for icon_gen_ai-0.2.1.tar.gz
Algorithm Hash digest
SHA256 87f3ff1e1478718f6dabdfdff34d286a5ec092745927d6f0237e0db6630a954d
MD5 a8678e8703d84bdfd35823ca075ffe0b
BLAKE2b-256 b3ebd9d080d95e860328ca3e0087e45acd62bcbb9d86a9c270f4016de197210a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for icon_gen_ai-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 73193c1d5f9b6ea5a9543bd6ba3ce057f010687c6f3c2dec13043db29d0ed1f6
MD5 60565d7cc260a38372d5d7957218b6b6
BLAKE2b-256 16e1f06dc5a251f525bfef7d27deab5752e2683d281cc89d338cbb4b4ae8251e

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