Skip to main content

IconFinder

Purpose

This package is a simple tool intended to easily, given the path for some executable in any of the "Big Three" most used OSes, provide the path to the icon for that executable.

For example, you can use it to fill a list view for a launcher with the icons from the applications you wish to execute.

Usage

There are two modules in this package. One is 'finder' with Finder class, which, through the constructor iconfinder.Finder('path/to/some/executable') will return the path to the executable icon_filepath. The other is 'extractor' which has the Extractor class, which, through the constructor iconfinder.Extractor('path/to/an/icon') will return the icon as a PIL Image object icon_image. If you use Finder to get the icon path, you can simply use the method grab from the finder instance. For example, under Windows:

>>> from iconfinder import finder
>>> finder_instance = finder.Finder('C:\\Windows\\System32\\notepad.exe')
>>> finder_instance.icon_filepath # this is the path to the icon
>>> finder_instance.grab() # this is the icon as a PIL Image object

Note: on Windows is not necessary to use first class Finder since the icon comes inside the binary.

Dependencies

This library is dependent, under Windows, of the pywin32 package. Under Linux, uses pyxdg, and under the mac, the plistlib, which cames pre-packaged with the Python Standard Library. Of course, Pillow is also a dependency.

Testing from command line

To run the unit tests, clone the repo and execute pytest from the main directory. To get a taste of the library, you can run python -m iconfinder.finder or just iconfinder with the executable path from the main directory. Specifying test as the argument will perform a test with a default executable and quit.

Metadata

Release files for iconfinder 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for iconfinder 0.1
File Interpreter ABI Platform Actions
iconfinder-0.1-py3-none-any.whl Python 3 none any Details for iconfinder-0.1-py3-none-any.whl

Release files / iconfinder-0.1-py3-none-any.whl

Download URL iconfinder-0.1-py3-none-any.whl
Size 2.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dad5798393da5ee93f32f70fb88e58835b7b4212ee1daf724018f3195b755cbf
BLAKE2b-256 checksum
How to use checksums
dfd3b7721b9e6e87238dad7c2fab9dfbe50ae34f559edac18d400f2c0f49170e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.4

Security for iconfinder 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page