JustMyResource pack for Lucide icons - provides access to 1500+ SVG icons from the Lucide icon library
Project description
justmyresource-lucide
JustMyResource pack for Lucide icons - provides access to 1500+ SVG icons from the Lucide icon library.
Installation
pip install justmyresource-lucide
This package requires:
justmyresource(>=0.1.0,<0.2.0)lucide(>=1.1.3,<2.0.0)
Usage
Basic Usage
from justmyresource import ResourceRegistry
# Create registry with lucide as default prefix
registry = ResourceRegistry(default_prefix="lucide")
# Get an icon (bare name with default_prefix)
content = registry.get_resource("lightbulb")
svg_text = content.text # SVG as string
# Or use explicit prefix
content = registry.get_resource("lucide:lightbulb")
# Or use the short alias
content = registry.get_resource("luc:lightbulb")
# Or use fully qualified name
content = registry.get_resource("justmyresource-lucide/lucide:lightbulb")
Listing Icons
from justmyresource import ResourceRegistry
registry = ResourceRegistry()
# List all icons in the lucide pack
for resource_info in registry.list_resources(pack="lucide"):
print(f"{resource_info.name}") # e.g., "lightbulb", "a-arrow-down"
# List all icons from all packs
for resource_info in registry.list_resources():
if resource_info.pack == "justmyresource-lucide/lucide":
print(f"{resource_info.name}")
Working with SVG Content
from justmyresource import ResourceRegistry
registry = ResourceRegistry(default_prefix="lucide")
content = registry.get_resource("activity")
# Access as text (SVG markup)
svg_markup = content.text
# Access as bytes
svg_bytes = content.data
# Content type is always "image/svg+xml"
assert content.content_type == "image/svg+xml"
assert content.encoding == "utf-8"
Icon Names
Icons use kebab-case naming (e.g., a-arrow-down, alarm-clock-check, lightbulb).
You can browse all available icons at lucide.dev/icons.
Upstream Sources
This package is a resource pack adapter that provides access to icons from:
- Lucide Icons: https://lucide.dev/ - 1500+ SVG icons (ISC License)
- lucide Python Package: https://github.com/franciscobmacedo/lucide - Django/Jinja template integration (MIT License)
See NOTICE for full license and attribution information.
License
This adapter package is licensed under the MIT License. See LICENSE for details.
The Lucide icons themselves are licensed under the ISC License, with portions derived from Feather Icons (MIT License). See NOTICE for complete attribution.
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 justmyresource_lucide-0.1.0.tar.gz.
File metadata
- Download URL: justmyresource_lucide-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.10.6 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b08d2cf2479c15002d364fca19d3d939526a491548e93899318e52e0190a3be4
|
|
| MD5 |
94b248fe519ce9aa043d8df783c84a4b
|
|
| BLAKE2b-256 |
e5bae52b1049b434f7121ed07353611c6628f7cf3c6607d935bb98d044010475
|
File details
Details for the file justmyresource_lucide-0.1.0-py3-none-any.whl.
File metadata
- Download URL: justmyresource_lucide-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.10.6 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53708ab2c6189eef8f73152c5fa784a21e6f4f2c6a13f029f1fe9ba62b2d1e3a
|
|
| MD5 |
e47564ccb4decdb7e81f5dc8b2354db5
|
|
| BLAKE2b-256 |
c9555f5e5824eb15fd53e678feaf13682c19d6ce7f678eced989922995b4b489
|