vscode-icons 1.0.0

Creator: bradpython12

Last updated:

Add to Cart

Description:

vscodeicons 1.0.0

vscode-icons
Django app to provide vscode icons for web application.
Please refer to original author for more detail.
Installation
Following command will help to install the package.
pip install vscode-icons

Setup

Add the app to setting.py file in INSTALLED_APPS section.

INSTALLED_APPS = [
...
'vscode_icons',
]

Usage
from vscode_icons.vscode import VSCodeIcons

vsi = VSCodeIcons()

# Getting file path
file_name = 'image.png'
file_icon_path = vsi.findFileIcon(file_name)
print(f'File Icon:\t {file_icon_path}')

# Getting directory path
dir_name = 'Documents'
dir_icon_path = vsi.findDirectoryIcon(dir_name)
print(f'Directory Icon:\t {dir_icon_path}')

Output
File Icon: vscode_icons/icons/file_type_image.svg
Directory Icon: vscode_icons/icons/default_folder.svg

Author
Tahir Rafique
Releases



Date
Version
Summary




15-Jun-23
v1.0.0
Initial build

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.